/* ============================================
   PÁGINAS DE DIRECCIONES - CSS ORIGINAL LIMPIO
   InkaBox Express
   ============================================ */

.direccion-page {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}



/* Header de la página */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.header-icon.spain {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Contenido principal */
.direccion-content {
    margin-bottom: 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Card de dirección */
.direccion-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direccion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
    background: #325aa6 !important;
    color: white !important;
    padding: 20px 25px;
    border-bottom: none;
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white !important;
}

.card-header i {
    margin-right: 10px;
    color: white !important;
}

.card-body {
    padding: 30px 25px;
}

/* Información de dirección */
.direccion-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.info-item label i {
    margin-right: 8px;
    color: #007bff;
    width: 16px;
}

.info-item span {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.info-item .highlight {
    background: linear-gradient(120deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #2d3436;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Card de información */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #28a745;
}

.info-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-card h3 i {
    margin-right: 10px;
    color: #28a745;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0;
    color: #495057;
    display: flex;
    align-items: flex-start;
}

.info-list li i {
    color: #28a745;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Imagen de dirección - Sin recuadro */
.direccion-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    padding: 20px 0;
}

.direccion-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* Optimización para imágenes verticales (1587x2245) */
@media (min-width: 1200px) {
    .direccion-image img {
        max-height: 700px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .direccion-image img {
        max-height: 600px;
    }
}

/* Ajuste específico para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .direccion-image img {
        max-height: 500px;
    }
}

/* Sección de pasos */
.steps-section {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 40px;
}

.steps-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.steps-section h2 i {
    margin-right: 15px;
    color: #007bff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.step-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .direccion-page {
        padding-top: 80px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .direccion-image {
        margin-bottom: 20px;
        padding: 10px 0;
    }
    
    .direccion-image img {
        max-height: 400px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item label {
        min-width: auto;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 20px 15px;
    }
    
    .steps-section {
        padding: 30px 20px;
    }
    

}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.direccion-card,
.info-card,
.direccion-image,
.step-card {
    animation: fadeInUp 0.6s ease-out;
}

.direccion-card:nth-child(2) {
    animation-delay: 0.1s;
}

.info-card {
    animation-delay: 0.2s;
}

.direccion-image {
    animation-delay: 0.3s;
}

/* Efectos de hover mejorados */
.info-item:hover {
    background: rgba(0, 123, 255, 0.02);
    border-radius: 8px;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.info-item:hover label i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Estilos para el dropdown activo */
.dropdown-menu .active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-weight: 600;
}

/* Forzar estilo azul sólido para el header */
.direccion-card .card-header,
.direccion-page .card-header {
    background: #325aa6 !important;
    background-image: none !important;
    color: white !important;
}

.direccion-card .card-header h2,
.direccion-page .card-header h2 {
    color: white !important;
}

.direccion-card .card-header i,
.direccion-page .card-header i {
    color: white !important;
}