/* ============================================
   CORRECCIÓN DE ESTILOS DEL HEADER
   ============================================ */

/* Proteger el header del CSS de Bootstrap */
.site-header .container {
    width: min(1100px, 92vw) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

.site-header .header-wrap {
    padding: 12px 0 !important;
}

/* ============================================
   HERO SECTION - UBICACIÓN
   ============================================ */

.hero-ubicacion {
    background: linear-gradient(135deg, #667eea 0%, #2448bd 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-ubicacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title-wrapper {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out;
}

/* ============================================
   SECCIÓN DE INFORMACIÓN Y MAPA
   ============================================ */

.location-info-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* ============================================
   TARJETA DE INFORMACIÓN
   ============================================ */

.info-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.info-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover .info-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(102, 126, 234, 0.3) 100%);
}

.info-content {
    padding: 30px;
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-title i {
    font-size: 1.5rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.3rem;
    color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 5px;
}

.detail-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   TARJETA DEL MAPA
   ============================================ */

.map-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.map-header {
    background: linear-gradient(135deg, #667eea 0%, #2448bd 100%);
    padding: 25px 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-header i {
    font-size: 1.8rem;
}

.map-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.map-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 450px;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #2448bd 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.btn-directions i {
    font-size: 1.1rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .location-info-section {
        padding: 50px 0;
    }

    .info-image-wrapper {
        height: 250px;
    }

    .map-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .hero-ubicacion {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-title-underline {
        width: 80px;
    }

    .location-info-section {
        padding: 40px 0;
    }

    .info-content {
        padding: 20px;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .detail-item {
        padding: 12px;
    }

    .map-header {
        padding: 20px;
    }

    .map-header h3 {
        font-size: 1.3rem;
    }

    .map-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .info-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-item {
        flex-direction: column;
        gap: 10px;
    }
}
