/* ===== HERO SECTION (Se adapta al Navbar sin dejar bloques blancos) ===== */
.hero-section {
    margin-top: 0 !important;
    padding-top: 120px; /* Compensación interna: le da espacio al menú flotante */
    min-height: 85vh; 
    background: linear-gradient(135deg, rgba(18, 27, 37, 0.85) 0%, rgba(44, 62, 80, 0.75) 100%), url('../../img/bg6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    width: 100%;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title .highlight {
    color: #c5a059; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1b2a3a;  
    border-color: #1b2a3a;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SECTIONS GENERALES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    background-color: #ffffff;
    padding: 60px 0;
}

.service-card {
    /* Eliminamos el background-color sólido para liberar el efecto cristal */
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Oscurecemos los textos internos para mejorar el contraste en fondo claro */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #121b25 !important; /* Tu azul corporativo bien marcado */
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #34495e !important; /* Un tono pizarra más oscuro y legible */
    margin-bottom: 0;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(167, 55, 55, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(167, 55, 55, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}


/* ===== ABOUT & HISTORY SECTIONS ===== */
.about-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.about-content {
    padding-right: 2rem;
}

.history-section {
    background-color: var(--white);
    padding: 60px 0;
}

.history-content {
    padding-left: 2rem;
}

.about-image img,
.history-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image img:hover,
.history-image img:hover {
    transform: scale(1.02);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 50px 0;
}

.contact-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.contact-cta .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 12px 25px;
}

.contact-cta .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon,
.faq-item.activo .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fdfdfd;
}

.faq-item.active .faq-answer,
.faq-item.activo .faq-answer {
    max-height: 800px; 
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.02);
}

/* Opcional: Ajuste fino para que los párrafos internos no se encimen en pantallas pequeñas */
@media (max-width: 576px) {
    .faq-answer p {
        font-size: 0.9rem; /* Un pelín más pequeño para ultra legibilidad en iPhone/Android */
        line-height: 1.5;
    }
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.25rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .about-content, .history-content { padding: 0; margin-bottom: 2rem; }
    .contact-cta .text-lg-end { text-align: center !important; margin-top: 2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons .btn { display: block; width: 100%; margin-bottom: 1rem; }
    .hero-buttons .me-3 { margin-right: 0 !important; }
    .section-title { font-size: 2rem; }
    .service-card { margin-bottom: 2rem; }
    .contact-cta h2 { font-size: 1.75rem; }
}

@media (max-width: 576px) {
    .hero-content { padding: 80px 0 60px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.75rem; }
    .service-card { padding: 1.5rem; }
    .service-icon { width: 60px; height: 60px; }
    .service-icon i { font-size: 1.5rem; }
    .faq-question { padding: 1rem; }
    .faq-question h4 { font-size: 1rem; }
}


/* ===== ESTILO CARÁTULAS APPLE MUSIC - CLARO PREMIUM ===== */
.tarjeta-album-clara {
    background-color: #ffffff !important;
    border: 1px solid rgba(18, 27, 37, 0.06) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.wrapper-icono-claro {
    background-color: #f1f3f5;
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: background-color 0.3s ease;
}

.tarjeta-album-clara:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(18, 27, 37, 0.07) !important;
    border-color: rgba(197, 160, 89, 0.4) !important; 
}

.tarjeta-album-clara:hover .wrapper-icono-claro {
    background-color: rgba(197, 160, 89, 0.05);
}

/* COMPONENTE: SCROLL HORIZONTAL COMPACTO */
.contenedor-scroll-horizontal {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.contenedor-scroll-horizontal .col {
    flex: 0 0 auto;
    width: 260px; /* Tamaño de tarjeta perfecto */
}

.contenedor-scroll-horizontal.grabbing {
    cursor: grabbing;
    scroll-behavior: auto; /* Desactiva el smooth nativo en arrastre manual para respuesta instantánea */
}

/* Ocultar barra fea de scroll */
.contenedor-scroll-horizontal::-webkit-scrollbar {
    display: none;
}

/* ARQUITECTURA DE FLECHAS FLOTANTES ELEGANTES */
.contenedor-carrusel-maestro {
    padding: 0 10px;
}

.btn-flecha-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #121b25; /* Tu azul marino corporativo */
    border: 2px solid #c5a059; /* Contorno dorado de distinción */
    color: #c5a059; /* Icono dorado */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Ocultas por defecto */
    visibility: hidden;
}

/* Ubicación espacial milimétrica de las flechas */
.btn-flecha-carrusel.flecha-izq { left: -15px; }
.btn-flecha-carrusel.flecha-der { right: -15px; }

/* Mostrar las flechas suavemente solo cuando el usuario pasa el mouse sobre la sección entera */
.contenedor-carrusel-maestro:hover .btn-flecha-carrusel {
    opacity: 1;
    visibility: visible;
}

/* Efecto Hover interactivo en las flechas */
.btn-flecha-carrusel:hover {
    background-color: #c5a059;
    color: #121b25;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* RESPONSIVE: En celulares se ocultan las flechas porque el dedo es el rey */
@media (max-width: 768px) {
    .btn-flecha-carrusel {
        display: none !important;
    }
    .contenedor-carrusel-maestro {
        padding: 0;
    }
}


/* ===== COMPONENTE: BARRA DE NOTICIAS INFINITA ===== */
.barra-noticias-ticker {
    width: 100%;
    background-color: #121b25; /* Tu azul marino corporativo oscuro */
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden; /* Esconde todo lo que se salga de la pantalla */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

/* El riel que se mueve horizontalmente */
.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: moverTicker 35s linear infinite; /* 35 segundos dura la vuelta completa */
}

/* Pausa la animación si el usuario pone el mouse encima para poder leer con calma */
.barra-noticias-ticker:hover .ticker-wrapper {
    animation-play-state: paused;
}

/* Cada una de las noticias */
.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding-right: 50px; /* Espaciado entre noticia y noticia */
    letter-spacing: 0.5px;
}

/* Etiquetas elegantes estilo alerta */
.ticker-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Variante de etiqueta en dorado corporativo */
.ticker-tag.dorado {
    background-color: rgba(197, 160, 89, 0.15);
    color: #c5a059;
    border: 1px solid #c5a059;
}

/* REGLA DE ANIMACIÓN: Mueve el contenedor el 50% de su ancho total */
@keyframes moverTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Se desplaza exactamente la mitad para reiniciar el loop invisible */
    }
}


/* ===== DISEÑO DE BOTÓN "VER LISTA COMPLETA" ===== */
.btn-ver-todo-directorio {
    background-color: transparent;
    border: 1px solid #c5a059;
    color: #121b25;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.25s ease;
}

.btn-ver-todo-directorio:hover {
    background-color: #121b25;
    border-color: #121b25;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(18, 27, 37, 0.15);
}

/* ===== ESTILOS DEL CUADRO FLOTANTE (MODAL VISTA DETALLES) ===== */
.bg-dark-premium {
    background-color: #121b25 !important;
    border-bottom: 2px solid #c5a059 !important;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.6);
}

.mini-folder-icon {
    background: rgba(255, 255, 255, 0.08);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.1rem;
}






/* ==========================================================================
   ARQUITECTURA DE MODAL NATIVO INDEPENDIENTE (EDICIÓN SUPREMA)
   ========================================================================== */

/* Fondo oscuro translúcido que cubre toda la pantalla */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none; /* Se controla el encendido/apagado desde JavaScript */
    align-items: center;
    justify-content: center;
}

/* Cuando el modal se activa, cambia su despliegue mediante JS */
.custom-modal-overlay.is-active {
    display: flex;
}

/* La ventana contenedora principal: AQUÍ FORZAMOS EL ANCHO GIGANTE EN PC */
.custom-modal-window {
    background-color: #ffffff;
    width: 95vw; /* Ocupa el 95% exacto del ancho de la pantalla */
    max-width: 1600px; /* Evita que en pantallas monstruosas se desproporcione */
    max-height: 85vh; /* Altura máxima de la ventana */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalEntrada 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEntrada {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Encabezado Corporativo */
.custom-modal-header {
    background-color: #121b25;
    border-bottom: 2px solid #c5a059;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left-content {
    display: flex;
    align-items: center;
}

.mini-folder-icon {
    background: rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.1rem;
    margin-right: 14px;
}

.modal-title-clean {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.modal-subtitle-clean {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* Botón X de Cierre */
.custom-close-x {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 0;
    margin: 0;
}

.custom-close-x:hover {
    color: #ffffff;
}

/* Cuerpo con Scroll Totalmente Confinado (Solución definitiva al scroll de fondo) */
.custom-modal-body {
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain; /* Bloquea el rebote o scroll de la web trasera */
    background-color: #ffffff;
}

/* --- CONTROL RESPONSIVO DE VISTAS --- */
.vista-escritorio-clean { display: block; width: 100%; }
.vista-movil-clean { display: none; }

/* --- DISEÑO TABLA ANCHA PARA ESCRITORIO --- */
.tabla-directorio-pro {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
}

.tabla-directorio-pro thead th {
    background-color: #f8f9fa;
    color: #4a5568;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 24px;
}

.tabla-directorio-pro tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease;
}

.tabla-directorio-pro tbody tr:hover {
    background-color: rgba(197, 160, 89, 0.04);
}

.tabla-directorio-pro tbody td {
    padding: 14px 24px;
    font-size: 0.88rem;
    white-space: nowrap; /* Mantiene estrictamente la info en una sola línea */
}

.td-nombre { color: #121b25; font-weight: 600; }
.td-ubicacion { color: #4a5568; }
.td-detalle { font-weight: 600; }
.text-gold { color: #c5a059; }
.text-end { text-align: right; }
.text-muted-dim { color: #718096; }

.icon-file {
    color: #c5a059;
    margin-right: 10px;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

/* --- SWITCH DE DISEÑO PARA MÓVILES (CELULARES) --- */
@media (max-width: 767.98px) {
    /* Escondemos la tabla ancha y activamos las tarjetas verticales */
    .vista-escritorio-clean { display: none; }
    .vista-movil-clean { display: block; background-color: #ffffff; }
    
    .custom-modal-window {
        width: 92vw;
        max-height: 80vh;
    }
    
    .tarjeta-movil-item {
        padding: 16px 20px;
        border-bottom: 1px solid #f1f3f5;
        display: flex;
        flex-direction: column;
        gap: 6px; /* Separación perfecta entre filas */
    }
    
    .tarjeta-movil-item:nth-child(even) {
        background-color: #fcfcfd;
    }
    
    .tarjeta-movil-item .m-nombre {
        font-size: 0.95rem;
        font-weight: 700;
        color: #121b25;
        font-family: 'Montserrat', sans-serif;
    }
    
    .tarjeta-movil-item .m-ubicacion {
        font-size: 0.84rem;
        color: #4a5568;
        font-family: 'Montserrat', sans-serif;
        padding-left: 2px;
    }
    
    .tarjeta-movil-item .m-detalle {
        font-size: 0.80rem;
        font-weight: 600;
        color: #c5a059;
        font-family: 'Montserrat', sans-serif;
        padding-left: 2px;
    }
    
    .tarjeta-movil-item .m-dim {
        color: #718096;
    }
}

/* ==========================================================================
   SISTEMA DE SCROLL HORIZONTAL DE ENLACES ÚTILES (OPTIMIZADO)
   ========================================================================== */
.enlaces-utiles-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Permite que JavaScript mueva el contenedor libremente */
    padding: 10px 5px;
    scroll-behavior: auto; /* Evita rigidez al arrastrar con el mouse */
    cursor: grab;
    user-select: none; /* Evita que se seleccione el texto por accidente al arrastrar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Esconde la barra en Firefox */
}

/* Esconde la barra de scroll en Chrome, Safari y Edge */
.enlaces-utiles-scroll::-webkit-scrollbar {
    display: none;
}

.enlaces-utiles-scroll:active {
    cursor: grabbing;
}

/* Quita de inmediato la línea decorativa horizontal del título de servicios en el Home */
.services-overview .section-title::after,
.services-overview::after {
    display: none !important;
    content: none !important;
}
