/* ==========================================================================
   CESOPOL - NUEVO SISTEMA DE HEADER
   Archivo: css/nuevo-sistema.css
   Descripcion: Header moderno con buscador inteligente, mega-menu de tabs
                con hover automatico, panel lateral mobile y buscador mobile.

   COMO PORTAR ESTE HEADER A OTRA PAGINA:
     1. Copiar este archivo  ->  css/nuevo-sistema.css
     2. En el HTML, copiar el bloque marcado:
           <!-- [HEADER-INICIO] ... [HEADER-FIN] -->
           <!-- [OVERLAYS-INICIO] ... [OVERLAYS-FIN] -->
     3. Copiar el bloque JS marcado:
           <!-- [JS-HEADER-INICIO] ... [JS-HEADER-FIN] -->
   Dependencias: css/font-awesome.min.css, Google Fonts Poppins
   ========================================================================== */


/* ==========================================================================
   1. BODY - espacio para el header fijo
   ========================================================================== */
body {
    padding-top: 70px;
}


/* ==========================================================================
   2. HEADER WRAPPER
   ========================================================================== */
.header-moderno {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.85);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    z-index: 1000;
}

.header-moderno-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1300px;
    margin: 0 auto;
    height: 70px;
    gap: 20px;
}


/* ==========================================================================
   3. LOGO
   ========================================================================== */
.header-logo {
    flex: 0 0 auto;
}

.header-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.header-logo img:hover {
    opacity: 0.85;
}

/* Logo blanco en el header oscuro */
.logo-verde-institucional {
    filter: brightness(0) invert(1);
}

/* Restaurar logo verde en el panel lateral (fondo blanco) */
.side-logo.logo-verde-institucional {
    filter: brightness(0) invert(47%) sepia(76%) saturate(486%)
            hue-rotate(85deg) brightness(98%) contrast(88%);
}


/* ==========================================================================
   4. BUSCADOR INTELIGENTE (solo escritorio)
   ========================================================================== */
.header-search {
    flex-grow: 1;
    max-width: 450px;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    pointer-events: none;
}

#buscador-inteligente {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 9px 14px 9px 38px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

#buscador-inteligente::placeholder { color: rgba(255,255,255,0.45); }

#buscador-inteligente:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.45);
    box-shadow: none;
}

/* Dropdown de sugerencias */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.14);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 1002;
    animation: cesopol-fadeDown 0.2s ease-out;
}

.sd-title {
    padding: 10px 14px;
    font-size: 10px;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 700;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.7px;
    font-family: 'Poppins', sans-serif;
}

.sd-list  { list-style: none; margin: 0; padding: 0; }
.sd-item  { border-bottom: 1px solid #f5f5f5; }
.sd-item:last-child { border-bottom: none; }

.sd-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    text-decoration: none !important;
    transition: background 0.15s;
    outline: none;
}

.sd-link:hover,
.sd-link:focus { background-color: #f4f9f4; }

.sd-text { display: flex; flex-direction: column; }

.sd-text strong {
    color: #0b1c2c;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1px;
    font-family: 'Poppins', sans-serif;
}

.sd-text span {
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: 'Poppins', sans-serif;
}

.sd-empty {
    padding: 20px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}


/* ==========================================================================
   5. BOTONES DE ACCION DEL HEADER
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* Base compartida de todos los botones del header */
.btn-moderno {
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    outline: none;
    border-radius: 3px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

/* Boton verde Factura Digital */
.btn-factura {
    background-color: #28a745;
    color: #fff;
    padding: 9px 15px;
}

.btn-factura:hover,
.btn-factura:focus {
    background-color: #218838;
    color: #fff;
}

.btn-factura .fa-chevron-down { font-size: 9px; opacity: 0.75; }

/* Boton borde claro sobre fondo oscuro: Menu */
.btn-menu-panel {
    background-color: transparent;
    color: #fff;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-menu-panel:hover,
.btn-menu-panel:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}

/* Boton lupa mobile (oculto en desktop) */
.btn-search-mobile {
    display: none;
    background-color: transparent;
    color: #fff;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.btn-search-mobile:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.55);
}


/* ==========================================================================
   6. DROPDOWN FACTURA DIGITAL (clic en boton verde)
   ========================================================================== */
.factura-dropdown-container { position: relative; }

.factura-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 99900;
    animation: cesopol-fadeDown 0.18s ease-out;
}

.factura-dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.fd-item {
    padding: 13px 17px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.fd-item:last-child  { border-bottom: none; }
.fd-item:hover,
.fd-item:focus { background-color: #f4f9f4; color: #28a745 !important; }


/* ==========================================================================
   7. MEGA MENU DESKTOP - DROPDOWN LOCALIZADO POR CATEGORIA
   Al hacer hover sobre un tab, aparece un dropdown justo debajo de ese tab.
   El menu se abre/cierra con el boton MENU del header.
   ========================================================================== */

/* Contenedor del mega-menu: solo la barra de tabs (sin panel aparte) */
.mega-menu-desktop {
    display: none;           /* cerrado por defecto */
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    z-index: 999;
}

.mega-menu-desktop.open { display: block; }

/* Boton cerrar (X) */
.mega-close-btn {
    position: absolute;
    top: 10px; right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
    line-height: 1;
    padding: 2px 5px;
    font-family: Arial, sans-serif;
}

.mega-close-btn:hover { color: #c62828; }

/* Barra de categorias: cada tab es position:relative para anclar su dropdown */
.mega-tabs-bar {
    display: flex;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    padding-right: 54px; /* espacio para el boton X */
    position: relative;
}

/* Wrapper de cada tab + su dropdown */
.mega-tab-wrap {
    position: relative;
}

/* Wrapper de cada tab: es el elemento position:relative que ancla el dropdown */
.mega-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
    -webkit-user-select: none; user-select: none;
    width: 100%;
}

.mega-tab-btn i {
    color: #ccc;
    font-size: 14px;
    transition: color 0.15s;
}

/* Hover / activo: resalta el tab */
.mega-tab-btn:hover,
.mega-tab-btn.active {
    color: #28a745;
    border-bottom-color: #28a745;
    background-color: #fafff9;
}

.mega-tab-btn:hover i,
.mega-tab-btn.active i { color: #28a745; }

/* -----------------------------------------------------------------------
   PANELES DROPDOWN: flotan justo debajo de su tab
   ----------------------------------------------------------------------- */

/* Contenedor oculto por defecto; .active lo muestra */
.mega-panel {
    display: none;
    position: absolute;
    top: 100%;             /* pegado al borde inferior del wrapper */
    left: 0;               /* se ajusta por JS si sale de pantalla */
    min-width: 220px;
    max-width: 380px;
    background: #fff;
    border: 1px solid #eee;
    border-top: 2px solid #28a745;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    animation: cesopol-fadeDown 0.15s ease-out;
    padding: 18px 20px 20px;
}

.mega-panel.active { display: block; }

/* Area de paneles: solo existe para compatibilidad; los paneles ya estan dentro de cada tab */
.mega-panels-area { display: none; }

/* Titulo dentro del panel */
.mega-title {
    font-size: 11px;
    font-weight: 700;
    color: #0b1c2c;
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
}

.mega-title i {
    color: #28a745;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.mega-mt { margin-top: 18px; }

/* Layout de columnas dentro del panel */
.mega-panel-inner {
    display: flex;
    gap: 30px;
}

.mega-col { flex: 1; }

/* Lista de links */
.mega-list { list-style: none; padding: 0; margin: 0; }

.mega-list li { margin-bottom: 6px; }

.mega-list a {
    color: #555 !important;
    font-size: 13px;
    text-decoration: none !important;
    font-weight: 500;
    display: block;
    padding: 4px 0 4px 18px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.15s, padding-left 0.15s;
    border-radius: 2px;
}

.mega-list a:hover {
    color: #28a745 !important;
    padding-left: 22px;
}


/* ==========================================================================
   8. PANEL LATERAL MOBILE (drawer desde la derecha)
   ========================================================================== */

/* Capa de fondo oscuro */
.side-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.55);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.side-menu-overlay.show { opacity: 1; visibility: visible; }

/* Panel deslizante */
.side-menu-panel {
    position: fixed;
    top: 0;
    right: -370px;
    width: 360px;
    max-width: 92vw;
    height: 100vh;
    background-color: #fff;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.side-menu-panel.open { right: 0; }

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.side-logo { max-height: 32px; width: auto; }

.close-menu-btn {
    background: transparent;
    border: none;
    width: 34px; height: 34px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.close-menu-btn:hover { color: #c62828; }

.side-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 6px 0 28px;
    -webkit-overflow-scrolling: touch;
}

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

/* Link simple (sin sub-items) */
.panel-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 22px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
    font-family: 'Poppins', sans-serif;
}

.panel-link:hover { background-color: #f9f9f9; }

/* Trigger de acordeon */
.accordion-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 22px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-family: 'Poppins', sans-serif;
}

.accordion-trigger:hover { background-color: #f9f9f9; }

.panel-icon {
    width: 24px;
    color: #28a745;
    font-size: 15px;
    text-align: center;
    margin-right: 11px;
    flex-shrink: 0;
}

.accordion-trigger .arrow {
    margin-left: auto;
    font-size: 11px;
    color: #ccc;
    transition: transform 0.28s ease;
}

.panel-accordion.active .accordion-trigger .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    list-style: none;
    margin: 0; padding: 0;
    display: none;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.panel-accordion.active .accordion-content { display: block; }

.accordion-content li a {
    display: block;
    padding: 11px 22px 11px 57px;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.15s, padding-left 0.15s, background 0.15s;
}

.accordion-content li a:hover {
    color: #28a745 !important;
    background-color: #f4f9f4;
    padding-left: 62px;
}

.panel-separator {
    padding: 16px 22px 4px 57px;
    font-size: 10px;
    text-transform: uppercase;
    color: #ccc;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}


/* ==========================================================================
   9. BADGE "NUEVO SISTEMA"
   ========================================================================== */
.badge-nuevo {
    background-color: #28a745;
    color: white;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}


/* ==========================================================================
   10. POPUP MIGRACION (CoopOnline -> Oficina Virtual)
   ========================================================================== */
.migracion-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: cesopol-fadeIn 0.25s forwards;
}

.migracion-modal {
    background-color: #fff;
    width: 90%; max-width: 420px;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: cesopol-slideModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.migracion-close {
    position: absolute;
    top: 11px; right: 14px;
    background: rgba(0,0,0,0.28);
    border: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    font-family: Arial, sans-serif;
}

.migracion-close:hover {
    background: rgba(200,0,0,0.85);
    transform: scale(1.1);
}

.migracion-modal img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.migracion-content {
    padding: 26px 22px 20px;
    text-align: center;
}

.migracion-content h3 {
    color: #0b1c2c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
}

.migracion-content p {
    color: #555;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.migracion-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.migracion-btn {
    display: block;
    padding: 11px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.migracion-btn-primary {
    background-color: #28a745;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(40,167,69,0.22);
}

.migracion-btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(40,167,69,0.32);
}

.migracion-btn-secondary {
    background-color: #f4f4f4;
    color: #444 !important;
    border: 1px solid #ddd;
}

.migracion-btn-secondary:hover {
    background-color: #e5e5e5;
    color: #111 !important;
}

.migracion-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 6px;
}

.migracion-link-muted {
    color: #bbb;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.migracion-link-muted:hover {
    color: #555;
    text-decoration: underline;
}


/* ==========================================================================
   11. BUSCADOR MOBILE (overlay al tocar la lupa)
   ========================================================================== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99990;
    backdrop-filter: blur(2px);
}

.mobile-search-overlay.show {
    display: block;
    animation: cesopol-fadeIn 0.18s forwards;
}

.mobile-search-box {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}

.mobile-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mobile-search-input-wrap .search-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 13px;
}

#buscador-mobile {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 10px 10px 32px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#buscador-mobile:focus {
    background-color: #fff;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.1);
}

.btn-close-mobile-search {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.btn-close-mobile-search:hover { color: #c62828; }

.mobile-search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 65vh;
    overflow-y: auto;
    box-shadow: 0 10px 22px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}


/* ==========================================================================
   12. KEYFRAMES
   ========================================================================== */
@keyframes cesopol-fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes cesopol-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cesopol-slideModal {
    from { transform: translateY(-30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}


/* ==========================================================================
   13. RESPONSIVE MOBILE (<= 900px)
   OBJETIVO: una sola fila compacta; icono IZQUIERDA + texto DERECHA
   ========================================================================== */

/* Visibilidad de flechas segun contexto */
.drop-arrow-mobile  { display: none; }
.drop-arrow-desktop { display: inline-block; }

@media (max-width: 900px) {

    /* Menos padding-top porque el header es mas bajo */
    body { padding-top: 54px; }

    /* Contenedor: una sola fila, sin overflow */
    .header-moderno-container {
        flex-wrap: nowrap;
        height: 54px;
        padding: 0 10px;
        gap: 5px;
        align-items: center;
        overflow: visible;
    }

    .header-logo img { max-height: 28px; }

    /* Ocultar buscador de escritorio */
    .header-search { display: none !important; }

    /* Mostrar boton lupa */
    .btn-search-mobile { display: flex !important; }

    /* Acciones al extremo derecho */
    .header-actions {
        margin-left: auto;
        gap: 5px;
        flex-shrink: 0;
        overflow: visible;
    }

    /* Botones compactos: icono IZQUIERDA + texto DERECHA, nunca apilados */
    .btn-moderno {
        padding: 7px 10px;
        flex-direction: row !important;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .btn-moderno i {
        margin: 0 !important;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* Texto siempre visible */
    .txt-btn {
        display: inline !important;
        font-size: 11px;
        white-space: nowrap;
    }

    /* Ocultar flechas que agrandan el boton */
    .btn-factura .fa-chevron-down       { display: none !important; }
    .btn-menu-panel .drop-arrow-desktop { display: none !important; }
    .btn-menu-panel .drop-arrow-mobile  { display: inline-block !important; }

    /* Mega menu nunca se muestra en mobile */
    .mega-menu-desktop { display: none !important; }
}

/* Pantallas muy pequenas (<= 380px) */
@media (max-width: 380px) {
    body { padding-top: 50px; }

    .header-moderno-container {
        padding: 0 8px;
        gap: 3px;
        height: 50px;
    }

    .header-logo img { max-height: 24px; }

    .btn-moderno {
        padding: 6px 8px;
        font-size: 10px;
    }

    /* En pantallas muy chicas, el texto de MENU se puede acortar */
    .btn-menu-panel .txt-btn::after { content: ''; }
}


/* ==========================================================================
   PAGE SECTIONS - INDEX
   Estilos para Hero, Numeros, Accesos Rapidos, Instagram, CTA, WA Flotante.
   Complementa main.css sin pisarlo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO: version nueva — imagen hero-bg-new.jpg, sin texto encima.
   .banner-area-new sobreescribe solo la altura y la imagen.
   La clase .banner-area base permanece igual para otras paginas.
   -------------------------------------------------------------------------- */

/* Clase helper SEO: oculto visualmente, visible para buscadores */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Banner con imagen nueva y altura reducida.
   La ruta ../img/ es relativa desde /css/ hacia /img/
   Se sobreescriben todos los posibles conflictos de main.css con !important
   para garantizar que la imagen se vea completa en todos los browsers. */
.banner-area.banner-area-new {
    background-image: url(../img/hero-bg-new.jpg) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 420px !important;
    height: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    position: relative !important;
    overflow: visible !important;
}

/* Fallback por si .banner-area no se aplica junto */
.banner-area-new {
    background-image: url(../img/hero-bg-new.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

/* Flecha scroll centrada al pie del hero */
.hero-scroll-arrow {
    width: 100%;
    text-align: center;
    padding-bottom: 22px;
    color: rgba(255,255,255,0.85);
    font-size: 24px;
    animation: hero-bounce 2s infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}

/* En pantallas muy altas, no dejar que el hero tape todo */
@media (min-width: 1400px) {
    .banner-area.banner-area-new { min-height: 500px !important; }
}

@media (max-width: 768px) {
    .banner-area.banner-area-new { min-height: 240px !important; }
    .banner-area-new              { min-height: 240px; }
}


/* --------------------------------------------------------------------------
   HERO content (herencia del sistema anterior, se mantiene por si se reactiva)
   -------------------------------------------------------------------------- */
.hero-content-wrap {
    padding: 60px 0 40px;
}

.hero-tag {
    display: inline-block;
    background: #1F6F43;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
}

.hero-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    font-family: 'Poppins', sans-serif;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-hero-primary {
    background: #1F6F43;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 24px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #1F6F43;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, border-color 0.18s;
    border-radius: 0;
}

.btn-hero-primary:hover {
    background: #166135;
    border-color: #166135;
    color: #fff !important;
}

.btn-hero-secondary {
    background: transparent;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 24px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, border-color 0.18s;
    border-radius: 0;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff !important;
}

.hero-scroll-hint {
    margin-top: 32px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: hero-bounce 2s infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}


/* --------------------------------------------------------------------------
   NUMEROS CESOPOL / DATO DEL DIA
   Fondo claro institucional. Layout horizontal y compacto.
   -------------------------------------------------------------------------- */
.numeros-area {
    background: #f7f8f9;
    padding: 26px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid #1F6F43;
}

/* Contenedor horizontal: meta | separador | numero+texto | separador | fuente */
.dato-dia-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

/* Bloque meta (etiquetas) */
.dato-dia-meta {
    text-align: center;
    padding: 0 28px;
    flex-shrink: 0;
}

.dato-dia-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1F6F43;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-bottom: 3px;
}

.dato-dia-titulo {
    font-size: 11px;
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

/* Separador vertical */
.dato-dia-separador {
    width: 1px;
    height: 44px;
    background: #ddd;
    flex-shrink: 0;
}

/* Bloque numero + descripcion */
.dato-dia-contenido {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* El numero: color se asigna por JS */
.dato-dia-numero {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    /* color: lo asigna JS */
}

.dato-dia-texto {
    font-size: 0.95rem;
    color: #444;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    max-width: 280px;
    line-height: 1.3;
}

/* Fuente */
.dato-dia-fuente {
    font-size: 10px;
    color: #bbb;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    padding: 0 28px;
    flex-shrink: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .dato-dia-separador { display: none; }
    .dato-dia-horizontal { gap: 12px; }
    .dato-dia-meta, .dato-dia-fuente { padding: 0; }
    .dato-dia-contenido { padding: 0; }
    .dato-dia-numero { font-size: 2rem; }
}

/* Mantener clases anteriores por compatibilidad (no se usan en el nuevo layout) */
.numeros-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.numeros-stat { text-align: center; }
.numeros-num  { font-size: 2rem; font-weight: 700; color: #1F6F43; font-family: 'Poppins', sans-serif; line-height: 1; display: block; }
.numeros-label { font-size: 11px; color: #777; font-family: 'Poppins', sans-serif; margin-top: 4px; display: block; }
.numeros-divider { width: 1px; height: 40px; background: #ddd; flex-shrink: 0; }
.numeros-cta { color: #1F6F43 !important; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; text-decoration: none !important; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid #1F6F43; padding: 9px 18px; display: inline-block; transition: background 0.18s; white-space: nowrap; }
.numeros-cta:hover { background: rgba(31,111,67,0.07); color: #1F6F43 !important; }


/* --------------------------------------------------------------------------
   ACCESOS RAPIDOS - 2 grandes + 4 chicas
   Tarjetas blancas con imagen, icono, titulo y descripcion
   -------------------------------------------------------------------------- */
.accesos-area {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.accesos-area .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.accesos-area .section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
}

.accesos-area .section-title p {
    color: #888;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Fila superior: 2 tarjetas grandes */
.accesos-row-grandes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Fila inferior: 4 tarjetas chicas.
   align-items: start es CLAVE para que los paneles desplegables
   no queden cortados por el grid. Cada celda crece sola hacia abajo. */
.accesos-row-chicas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

/* Tarjeta grande */
.acceso-card-grande {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-bottom: 3px solid #1F6F43;
    text-decoration: none !important;
    color: #333 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-bottom-color 0.2s;
}

.acceso-card-grande:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-bottom-color: #28a745;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.acceso-card-grande .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.acceso-card-grande .card-body {
    padding: 22px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.acceso-card-grande .card-icon {
    font-size: 22px;
    color: #1F6F43;
    margin-bottom: 8px;
}

.acceso-card-grande .card-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.acceso-card-grande .card-desc {
    font-size: 13px;
    color: #777;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.acceso-card-grande .card-link {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1F6F43 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.acceso-card-grande .card-link:hover { text-decoration: underline !important; }

/* Tarjeta chica: sin imagen, compacta e institucional */
.acceso-card-chica {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-top: 3px solid #e4e4e4;
    text-decoration: none !important;
    color: #333 !important;
    display: block;
    box-shadow: 0 1px 5px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, border-top-color 0.2s;
    cursor: pointer;
    position: relative;    /* necesario para el panel desplegable */
}

.acceso-card-chica:hover,
.acceso-card-chica.expanded {
    box-shadow: 0 5px 16px rgba(0,0,0,0.09);
    border-top-color: #1F6F43;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* La tarjeta chica solo tiene card-body, sin imagen */
.acceso-card-chica .card-body {
    padding: 20px 18px 16px;
}

.acceso-card-chica .card-icon {
    font-size: 20px;
    color: #1F6F43;
    margin-bottom: 8px;
    display: block;
}

.acceso-card-chica .card-title {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.acceso-card-chica .card-desc {
    font-size: 11px;
    color: #999;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

/* Flecha indicadora del panel desplegable */
.card-arrow {
    font-size: 10px;
    color: #aaa;
    transition: transform 0.22s;
    flex-shrink: 0;
}

.acceso-expandible.expanded .card-arrow {
    transform: rotate(180deg);
    color: #1F6F43;
}

/* Panel desplegable de links (tipo acordeon).
   Usar padding-top/bottom separados (no el shorthand 'padding')
   para que la transicion CSS funcione correctamente en todos los browsers. */
.acceso-panel {
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 18px;
    padding-right: 18px;
    background: #fafafa;
    border-top: 1px solid #eee;
    transition: max-height 0.3s ease, padding-top 0.25s, padding-bottom 0.25s;
}

.acceso-panel a {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #444 !important;
    text-decoration: none !important;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.15s;
}

.acceso-panel a:last-child { border-bottom: none; }

.acceso-panel a:hover {
    color: #1F6F43 !important;
    padding-left: 4px;
}


/* --------------------------------------------------------------------------
   INSTAGRAM - titulo fuerte, collage prominente, boton claro
   Sin columnas paralelas. Sin fondos oscuros.
   -------------------------------------------------------------------------- */
.instagram-area {
    background: #fff;
    padding: 55px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Encabezado: titulo a la izquierda, boton a la derecha */
.ig-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.ig-titulo-fuerte {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ig-subtitulo {
    font-size: 13px;
    color: #888;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Boton "Ver @cesopol" */
.btn-ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #1F6F43;
    color: #1F6F43 !important;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none !important;
    transition: background 0.18s;
    width: fit-content;
    border-radius: 0;
    flex-shrink: 0;
}

.btn-ig:hover {
    background: rgba(31,111,67,0.07);
    color: #1F6F43 !important;
}

/* Collage del feed: imagen horizontal tipo captura real */
.ig-collage-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 0;
}

.ig-collage-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ig-collage-wrap:hover .ig-collage-img {
    transform: scale(1.015);
}

/* Fallback si no existe la imagen */
.ig-fallback-nuevo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: #f7f8f9;
    border: 1px solid #e4e4e4;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}

.ig-fallback-nuevo a { color: #1F6F43; text-decoration: none; }
.ig-fallback-nuevo a:hover { text-decoration: underline; }

/* Mantener clases anteriores por compatibilidad */
.ig-label  { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #1F6F43; text-transform: uppercase; font-family: 'Poppins', sans-serif; margin-bottom: 8px; display: block; }
.ig-handle { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; font-family: 'Poppins', sans-serif; margin-bottom: 12px; display: block; }
.ig-text   { font-size: 13px; color: #666; font-family: 'Poppins', sans-serif; line-height: 1.6; margin-bottom: 22px; }
.ig-embed-wrap { background: #fff; min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #e4e4e4; }
.ig-collage    { width: 100%; height: 280px; object-fit: cover; display: block; }
.ig-fallback   { text-align: center; padding: 40px 20px; color: #aaa; font-family: 'Poppins', sans-serif; font-size: 13px; line-height: 1.6; }
.ig-fallback a { color: #1F6F43; text-decoration: none; }
.ig-fallback a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .ig-collage-img { height: 200px; }
    .ig-encabezado  { flex-direction: column; align-items: flex-start; }
}


/* --------------------------------------------------------------------------
   CIERRE CON CTA
   -------------------------------------------------------------------------- */
.cta-cierre {
    background: #1F6F43;
    padding: 50px 0;
    text-align: center;
    margin-top: 0;
}

.cta-cierre h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.cta-cierre p {
    color: rgba(255,255,255,0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin-bottom: 26px;
}

.cta-cierre-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn-cierre-primary {
    background: #fff;
    color: #0b1c2c !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 28px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.18s;
    border-radius: 0;
}

.btn-cierre-primary:hover { opacity: 0.9; color: #0b1c2c !important; }

.btn-cierre-secondary {
    background: transparent;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 28px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s, background 0.18s;
    border-radius: 0;
    cursor: pointer;        /* funciona como <button> tambien */
}

.btn-cierre-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}


/* --------------------------------------------------------------------------
   BOTON FLOTANTE WHATSAPP con popup institucional
   -------------------------------------------------------------------------- */
.wa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    background: #25d366;
    color: #fff !important;
    width: 52px;
    height: 52px;
    border-radius: 25;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: background 0.18s, transform 0.18s;
}

.wa-fab:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Popup WhatsApp: panel que aparece sobre el boton FAB */
.wa-popup {
    display: none;              /* oculto; JS agrega .show para mostrar */
    position: fixed;
    bottom: 86px;
    right: 24px;
    z-index: 9989;
    width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    animation: cesopol-fadeDown 0.2s ease-out;
}

.wa-popup.show { display: block; }

/* Boton cerrar popup */
.wa-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.wa-popup-close:hover { color: #555; }

/* Cabecera del popup: icono + nombre + verificado */
.wa-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wa-popup-icon {
    font-size: 30px;
    color: #25d366;
    flex-shrink: 0;
}

.wa-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.wa-popup-verified {
    font-size: 11px;
    color: #1F6F43;
    margin-top: 2px;
}

/* Texto descriptivo */
.wa-popup-text {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* Boton de accion principal */
.wa-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 0;
    transition: background 0.18s;
    width: 100%;
    box-sizing: border-box;
}

.wa-popup-btn:hover {
    background: #1ebe5d;
    color: #fff !important;
}

/* La antigua clase tooltip ya no se usa, se deja por compatibilidad */
.wa-fab-tooltip { display: none; }


/* --------------------------------------------------------------------------
   RESPONSIVE: nuevo contenido de pagina
   -------------------------------------------------------------------------- */

/* Garantia: .banner-area-new siempre usa hero-bg-new.jpg,
   ignorando cualquier background definido en main.css para .banner-area */
.banner-area.banner-area-new {
    background-image: url(../img/hero-bg-new.jpg) !important;
}

@media (max-width: 992px) {
    .accesos-row-grandes { grid-template-columns: 1fr 1fr; }
    .accesos-row-chicas  { grid-template-columns: repeat(2, 1fr); }
    .hero-h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .banner-area-new     { min-height: 220px; }
    .accesos-row-grandes { grid-template-columns: 1fr; }
    .accesos-row-chicas  { grid-template-columns: repeat(2, 1fr); }
    .numeros-divider { display: none; }
    .numeros-inner { gap: 20px; }
    .ig-embed-wrap { min-height: 200px; }
    .instagram-card-info { padding: 24px 20px; min-height: auto; }
    .hero-content-wrap { padding: 40px 0 30px; }
    /* Paneles expandibles: en mobile, columna de 2 siempre bien espaciada */
    .acceso-card-chica .card-body { padding: 16px 14px 13px; }
    .acceso-panel a { font-size: 13px; padding: 9px 0; }
}

@media (max-width: 480px) {
    .hero-h1 { font-size: 1.45rem; }
    .hero-ctas { flex-direction: column; gap: 8px; }
    .btn-hero-primary,
    .btn-hero-secondary { width: 100%; justify-content: center; }
    .cta-cierre-btns { flex-direction: column; }
    .btn-cierre-primary,
    .btn-cierre-secondary { justify-content: center; width: 100%; }
    .accesos-row-chicas { grid-template-columns: 1fr 1fr; }
    .dato-dia-numero { font-size: 1.7rem; }
    /* Instagram encabezado en columna */
    .ig-encabezado { flex-direction: column; align-items: flex-start; }
}
