/* ============================================
   1. RESET CSS (unificado y optimizado)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul, ol, li, dl, dt, dd, blockquote {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-body, #f4f6f8);
}

a {
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
    appearance: button;
}

input[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    outline-offset: -2px;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* ============================================
VARIABLES GLOBALES UNIFICADAS
============================================ */
:root {
    /* ===== 1. COLORES INSTITUCIONALES (BASE) ===== */
    --primary-dark: #00143C;
    --primary-color: #0A1A3A;
    --primary-light: #1E3A6F;
    --primary-soft: #1c3d6b;
    
    /* Dorado / Acentos */
    --accent-gold: #B8963A;
    --secondary-color: #B8963A;
    --secondary-light: #C6A85A;
    --cpl-dorado: #b8a26d;
    
    /* Azules adicionales */
    --cpl-azul: #0a1a2f;
    --cpl-azul-oscuro: #081526;
    --cpl-azul-claro: #0b223f;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --footer-accent: #4FA4F6;
    --footer-accent-dark: #1a7bb9;
    
    /* ===== 2. COLORES DE FONDO POR SECCIÓN ===== */
    --bg-body: #f4f6f8;
    --bg-section-light: #ffffff;
    --bg-soft-1: #EDF2F6;      /* Celeridad, Aliados, Alianza, Publicaciones, Clientes */
    --bg-soft-2: #E8ECF1;      /* Google Reviews, KPI, Ventajas, Áreas */
    --bg-light: #F8F9FC;
    --footer-bg: #042057;
    
    /* ===== 3. COLORES DE TEXTO ===== */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #5A6F8A;
    --text-color: #2C3E50;
    --text-inverse: #ffffff;
    --text-inverse-soft: #eef2f6;
    --text-inverse-muted: #cbd5e1;
    
    /* Footer texto */
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-link-hover: #ffffff;
    --footer-gold: #FFC107;
    --footer-gold-dark: #e6ae08;
    --footer-border: rgba(255, 255, 255, 0.1);
    
    /* ===== 4. SUPERFICIES Y BORDES ===== */
    --menu-bg: #0A1A3A;
    --submenu-bg: #12264A;
    --border-color: #E5E9F0;
    --cpl-blanco: #ffffff;
    --cpl-overlay: rgba(0, 0, 0, 0.6);
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gris-hover: #f1f5f9;
    --mobile-blue-border: #004CD3;
    
    /* ===== 5. SOMBRAS ===== */
    --shadow-soft: 0 6px 20px rgba(0, 20, 60, 0.05);
    --shadow-medium: 0 12px 30px rgba(0, 20, 60, 0.08);
    --menu-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
    /* ===== 6. GRADIENTES ===== */
    --gradient-gold: linear-gradient(90deg, var(--primary-dark), var(--accent-gold));
    --accent-blue: linear-gradient(90deg, #2563eb, #60a5fa);
    
    /* ===== 7. LÍNEAS Y DIVISORES ===== */
    --section-divider: rgba(0, 20, 60, 0.08);
    
    /* ===== 8. TRANSICIONES ===== */
    --transition: all 0.3s ease;
    --transition-speed: 0.3s;
    --cpl-transition: 0.3s ease;
    
    /* ===== 9. Z-INDEX ===== */
    --overlay-zindex: 1000;
    --menu-zindex: 1001;
    --header-zindex: 100;
    
    /* ===== 10. LAYOUT HEADER ===== */
    --topheader-height: 40px;
    --main-header-height: 50px;
    
    /* ===== 11. VARIABLES ESPECÍFICAS DEL HOME ===== */
    --home-aliados-gap: 25px;
    --home-card-width: 180px;
    --home-card-radius: 12px;
    --home-logo-max-w: 140px;
    --home-logo-max-h: 80px;
    --home-scrollbar-color: var(--accent-gold);
    --home-scrollbar-bg: #d9e0e8;
    --home-contact-bg: rgba(0, 20, 60, 0.96);
    --home-whatsapp: #25D366;
    --home-envelope: #007BFF;
    --home-user: #FF9800;
    
    /* ===== 12. MOBILE BREAKPOINT ===== */
    --mobile-breakpoint: 768px;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
}

/* ============================================
SISTEMA DE NAVEGACIÓN CPL CONSULTORES
============================================ */

/*------ 1. ESTRUCTURA PRINCIPAL ------*/
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/*------ 2. HEADER SUPERIOR (TOP HEADER) ------*/
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    z-index: 1001;
    height: var(--topheader-height);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.top-header.hidden {
    transform: translateY(-100%);
}

.top-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    height: var(--topheader-height);
}

.top-header-contacts,
.top-header-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-header a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.top-header a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/*------ 3. HEADER PRINCIPAL (LOGO Y MENÚ) ------*/
.main-header {
    position: fixed;
    top: var(--topheader-height);
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    transition: top 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-shadow: none;
}

.main-header.collapsed {
    top: 0 !important;
    box-shadow: 0 4px 10px rgba(95, 95, 95, 0.394);
}

.top-header.hidden + .main-header,
.top-header.hidden ~ .main-header {
    top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
}

/*------ 4. LOGO ------*/
.logo-header-container {
    width: 220px;
    height: 74px;
    background: linear-gradient(to bottom, #000f2d 0%, #001c57 50%, #000f2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    margin-left: 0;
    transition: color .25s ease, transform .25s ease, opacity .25s ease;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/*------ 5. CONTENIDO PRINCIPAL ------*/
main {
    margin-top: calc(var(--topheader-height) + var(--main-header-height));
    transition: margin-top 0.3s ease;
    min-height: 50vh;
}

body.header-collapsed main {
    margin-top: var(--main-header-height);
}

/*------ 6. MENÚ DESKTOP ------*/
.desktop-menu {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    position: relative;
}

.desktop-menu > li {
    position: static;
    list-style: none;
}

.desktop-menu > li > a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 14px 10px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    display: block;
    white-space: nowrap;
    transition: color var(--transition-speed);
    font-weight: 500;
}

/* 6.1 Línea inferior del enlace */
.desktop-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width .28s cubic-bezier(.4,0,.2,1);
}

.desktop-menu > li:hover > a::after,
.desktop-menu > li.active > a::after,
.desktop-menu > li.active-parent > a::after {
    width: 100%;
}

/* 6.2 Icono de flecha en enlaces */
.desktop-menu > li > a::before {
    content: "\e8c8";
    font-family: "Fontello";
    font-size: 14px;
    color: var(--text-color);
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
}

.desktop-menu > li > a:hover::before {
    transform: translateY(-50%) rotate(96deg);
}

/*------ 7. SUBMENÚS DESKTOP ------*/
.submenu-container {
    position: absolute;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: var(--header-zindex);
}

.desktop-menu > li:hover .submenu-container {
    display: flex;
    opacity: 1;
}

.submenu-wrapper {
    position: relative;
    left: 45%;
    transform: translateX(-45%);
    min-width: 1085px;
    padding: 0;
    box-sizing: border-box;
}

.submenu-content {
    background-color: var(--bg-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary-color);
    padding: 20px;
    margin-top: 19px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.submenu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-column li a {
    color: #1F2A37;
    font-weight: 400;
    letter-spacing: 0.2px;
    position: relative;
    text-decoration: none;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

/* 7.1 Icono en enlaces del submenú */
.submenu-column li a::before {
    content: "\e8c8";
    font-family: "fontello";
    font-size: 1em;
    display: inline-block;
    color: var(--secondary-color);
    transition: transform var(--transition-speed);
}

.submenu-column li a:hover {
    color: var(--secondary-color);
    background-color: transparent;
    padding-left: 0;
}

/* 7.2 Línea inferior hover */
.submenu-column li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width .25s ease;
}

.submenu-column li a:hover::after {
    width: 100%;
}

.submenu-column li a:hover::before {
    transform: translateX(4px);
    color: var(--secondary-color);
}

/*------ 8. BOTÓN MENÚ MÓVIL ------*/
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    padding: 5px 10px;
    transition: transform var(--transition-speed);
    z-index: calc(var(--menu-zindex) + 1);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/*------ 9. MENÚ MÓVIL - ESTRUCTURA ------*/
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--menu-bg);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: var(--menu-zindex);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    will-change: transform;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > ul > li {
    position: relative;
}

/* 9.1 Elementos del menú móvil */
.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 159, 76, 0.2);
    transition: background-color var(--transition-speed);
}

.mobile-menu li a:hover {
    background-color: var(--primary-light);
}

/* 9.2 Indicador de submenú (+) */
.mobile-menu .has-submenu > a::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 18px;
    transition: transform var(--transition-speed);
}

.mobile-menu .has-submenu.active > a::after {
    content: "-";
}

/* 9.3 Submenú colapsable */
.mobile-menu .submenu {
    background-color: var(--submenu-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
}

.mobile-menu > ul > li > a,
.mobile-menu > ul > li > .menu-toggle {
    color: #ffffff;
    font-weight: 500;
}

.mobile-menu .submenu li a {
    color: #E0E7FF;
    padding-left: 30px;
    font-size: 0.9rem;
}

.mobile-menu .submenu li a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.mobile-menu .submenu.active {
    max-height: 1200px;
}

/* 9.4 Controles de submenú móvil */
.mobile-menu .has-submenu > .menu-toggle,
.mobile-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.mobile-menu .has-submenu > .menu-toggle::after,
.mobile-menu .has-submenu > a::after {
    content: '+';
    margin-left: auto;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
}

.mobile-menu .has-submenu.active > .menu-toggle::after,
.mobile-menu .has-submenu.active > a::after {
    content: '–';
}

.mobile-menu .submenu {
    display: none;
    padding-left: 5px;
    background-color: var(--submenu-bg);
}

.mobile-menu .submenu.active {
    display: block;
}

.mobile-menu .submenu li {
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: #eee;
}

/*------ 10. OPCIONES EXTRA DEL MENÚ MÓVIL ------*/
.extra-options {
    border-top: 1px solid #445a85;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
}

.extra-options p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #aaa;
}

.extra-options a {
    display: block;
    margin: 0.7rem 0;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.extra-options img {
    margin-right: 0.4rem;
    vertical-align: middle;
}

/*------ 11. BOTONES ESPECIALES (PDF, BANDERA) ------*/
.extra-hover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem auto;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    border: 1px solid transparent;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
    max-width: 100%;
}

.extra-hover-btn img {
    width: 20px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.extra-hover-btn span {
    display: inline-block;
}

.extra-hover-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.extra-hover-btn:hover img {
    filter: brightness(0.8);
}

.hnz-icon-pdf {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-right: 8px;
}

.extra-hover-btn:hover .hnz-icon-pdf {
    color: var(--white);
}

.centered-btn {
    display: flex;
    justify-content: center;
}

/*------ 12. OVERLAY DEL MENÚ MÓVIL ------*/
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(10, 26, 58, 0.35);
    z-index: var(--overlay-zindex);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/*------ 13. ANIMACIONES ------*/
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-header.animate {
    animation: fadeInDown 0.3s ease-out forwards;
}

/*------ 14. ACCESIBILIDAD ------*/
.desktop-menu > li > a,
.mobile-menu li a {
    outline: none;
}

.desktop-menu > li > a:focus-visible,
.submenu-column li a:focus-visible,
.mobile-menu li a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 2px;
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

[aria-current="page"] {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

.mobile-menu[aria-hidden="true"] {
    display: none;
}

/*------ 15. ESTADOS ACTIVOS PARA EL MENÚ ------*/
.desktop-menu > li.active > a,
.desktop-menu > li.active-parent > a {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.desktop-menu > li.active > a::after,
.desktop-menu > li.active-parent > a::after {
    width: 100%;
    background-color: var(--secondary-color) !important;
}

.desktop-menu > li.active > a::before,
.desktop-menu > li.active-parent > a::before {
    color: var(--secondary-color) !important;
}

.submenu-column li a.active {
    color: var(--secondary-color) !important;
    background-color: rgba(200, 159, 76, 0.1);
    padding-left: 5px;
    border-radius: 4px;
}

.submenu-column li a.active::before {
    color: var(--secondary-color) !important;
    transform: translateX(4px);
}

.mobile-menu li a.active {
    color: var(--secondary-color) !important;
    background-color: rgba(200, 159, 76, 0.2);
    border-left: 4px solid var(--secondary-color);
}

.mobile-menu .has-submenu.active-parent > a,
.mobile-menu .has-submenu.active-parent > .menu-toggle {
    color: var(--secondary-color) !important;
}

.mobile-menu .submenu li a.active {
    color: var(--secondary-color) !important;
    background-color: rgba(200, 159, 76, 0.15);
}

.category-title {
    font-weight: 600;
    padding: 6px 0 10px 0;
    color: #0A1A3A;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

/*------ 16. MEDIA QUERIES - DISEÑO RESPONSIVO ------*/

/* 16.1 Punto de quiebre para menú móvil (≤1242px) */
@media (max-width: 1242px) {
    #mobileMenuBtn {
        display: block;
    }

    .desktop-menu {
        display: none;
    }

    #mobileMenu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
    }

    #mobileMenu.active {
        transform: translateX(0);
    }

    #menuOverlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    #menuOverlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* 16.2 Tablet (≤994px) - Ocultar top-header */
@media (max-width: 994px) {
    .top-header {
        display: none;
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    body.has-top-header {
        padding-top: 0 !important;
    }

    .main-header {
        top: 0 !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* 16.3 Móviles pequeños (≤768px) - Ajustar top-header */
@media (max-width: 768px) {
    .top-header-container {
        padding: 0.5rem 15px;
    }

    .top-header-contacts,
    .top-header-links {
        gap: 0.7rem;
    }

    .top-header a {
        font-size: 0.8rem;
    }
}

/* 16.4 Compatibilidad con otros componentes */
.mobile-menu {
    z-index: 1002;
}

.mobile-menu.active {
    transform: translateX(0);
}

.main-content {
    padding-top: calc(var(--header-height) + 20px);
}

/*------ 17. AJUSTES ESPECÍFICOS PARA EL LOGO EN MÓVILES ------*/

/* 17.1 Tablets (≤992px) */
@media (max-width: 992px) {
    .logo-header-container {
        width: 250px;
        height: 85px;
        padding: 0.4rem 0.9rem;
    }

    .logo img {
        max-width: 250px;
        max-height: 85px;
    }
}

/* 17.2 Móviles (≤768px) */
@media (max-width: 768px) {
    .logo-header-container {
        width: 220px;
        height: 75px;
        padding: 0.3rem 0.8rem;
    }

    .logo img {
        max-width: 220px;
        max-height: 75px;
    }

    .header-content {
        padding: 5px 0;
    }
}

/* 17.3 Móviles pequeños (≤480px) */
@media (max-width: 480px) {
    .logo-header-container {
        width: 180px;
        height: 65px;
        padding: 0.2rem 0.6rem;
    }

    .logo img {
        max-width: 180px;
        max-height: 65px;
    }
}

/* 17.4 Asegurar que el logo sea visible */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        padding: 0 10px;
    }

    .mobile-menu-btn {
        margin-left: auto;
    }
}

/*------ 18. CAMBIOS ESPECÍFICOS MÓVIL - DEGRADADO Y BOTÓN ------*/

/* 18.1 Desktop grande (≥1200px) */
@media (min-width: 1200px) {
    .logo-header-container {
        width: 290px;
        height: 98px;
        padding: 0.5rem 1rem;
    }

    .logo img {
        max-width: 100%;
        max-height: 100%;
    }
}

/* 18.2 Desktop (>992px) */
@media (min-width: 993px) {
    .main-header {
        background-color: white;
    }

    .logo-header-container {
        width: 260px;
        height: 88px;
        padding: 0.45rem 0.9rem;
        background: linear-gradient(to bottom, #000f2d 0%, #001c57 50%, #000f2d 100%);
    }

    .mobile-menu-btn {
        color: #000000;
    }
}

/* 18.3 Móvil/Tablet (≤992px) */
@media (max-width: 992px) {
    .main-header {
        background: linear-gradient(to bottom, #000f2d 0%, #001c57 50%, #000f2d 100%) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .logo-header-container {
        width: 220px;
        height: 74px;
        padding: 0.4rem 0.75rem;
        background: transparent !important;
    }

    .mobile-menu-btn {
        color: white !important;
    }

    .mobile-menu-btn .menu-icon {
        color: white;
    }

    .logo img {
        max-width: 220px;
        max-height: 74px;
    }
}

/* 18.4 Móviles más pequeños */
@media (max-width: 768px) {
    .logo-header-container {
        width: 200px;
        height: 68px;
        padding: 0.35rem 0.7rem;
    }

    .logo img {
        max-width: 200px;
        max-height: 68px;
    }
}

/* 18.5 Móviles grandes (≤576px) */
@media (max-width: 576px) {
    .logo-header-container {
        width: 180px;
        height: 61px;
        padding: 0.3rem 0.6rem;
    }

    .logo img {
        max-width: 180px;
        max-height: 61px;
    }
}

/* 18.6 Móviles muy pequeños (≤480px) */
@media (max-width: 480px) {
    .logo-header-container {
        width: 160px;
        height: 54px;
        padding: 0.25rem 0.5rem;
    }

    .logo img {
        max-width: 160px;
        max-height: 54px;
    }
}

/*------ 19. WPO HEADER STABILITY ------*/
.main-header,
.top-header {
    contain: layout style;
}

.logo-header-container {
    contain: layout paint;
}

.submenu-content {
    will-change: opacity, transform;
}

/* ============================================
   FOOTER - CPL CONSULTORES
   VERSIÓN MODERNA CON ACENTOS DORADOS
   ============================================ */

/*------ 1. FOOTER PRINCIPAL ------*/
.mi-footer {
    background: var(--footer-bg) url('/assets/images/footer/mundi.webp') no-repeat center;
    color: var(--footer-text);
    padding: 40px 20px 20px 20px;
    position: relative;
    overflow: hidden;
}

/*------ 2. CONTENEDOR DEL FOOTER ------*/
.mi-footer-contenedor {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1.6fr;
    gap: 30px;
    align-items: start;
}

/*------ 3. COLUMNAS GENERALES ------*/
.mi-footer-columna,
.mi-footer-niubiz {
    padding: 0;
    min-width: 0;
}

.mi-footer-columna h3,
.mi-footer-niubiz h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--footer-border);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--footer-text);
}

/*------ 4. ENLACES DE INTERÉS ------*/
.mi-footer-enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mi-footer-enlaces li {
    margin: 0 0 12px 0;
}

.mi-footer-enlaces li a {
    color: var(--footer-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.mi-footer-enlaces li a i {
    width: 16px;
    text-align: center;
    color: var(--accent-gold);  /* Dorado */
}

.mi-footer-enlaces li a:hover {
    color: var(--footer-link-hover);
}

/*------ 5. COLUMNA DE CONTACTO Y HORARIO ------*/
.mi-footer-columna p {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text-muted);
    font-size: 0.95rem;
}

/* Estilo específico para el horario - formato vertical */
.mi-footer-columna .horario {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 5px;
}

.mi-footer-columna .horario span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mi-footer-columna .horario i {
    width: 20px;
    text-align: center;
}

.mi-footer-columna p i {
    width: 16px;
    text-align: center;
    color: var(--accent-gold);  /* Dorado */
}

.mi-footer-columna a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mi-footer-columna a:hover {
    color: var(--footer-link-hover);
}

/*------ 6. ICONOS DE REDES SOCIALES ------*/
.mi-footer-iconos {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mi-footer-iconos a {
    font-size: 1.2rem;
    color: var(--footer-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    padding: 0;
}

.mi-footer-iconos a:hover {
    color: var(--accent-gold);  /* Dorado */
    transform: translateY(-2px);
}

/*------ 7. SECCIÓN "FORMAS DE PAGO" - INTEGRADA ------*/
.mi-footer-niubiz {
    background: rgba(255, 255, 255, 0.05);  /* Fondo traslúcido */
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mi-footer-niubiz:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.mi-footer-niubiz h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/*------ 8. LOGOS DE PAGO ------*/
.payment-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
    width: 100%;
}

.payment-logos img {
    width: 100%;
    max-width: 80px;        /* ← TAMAÑO MÁXIMO CONTROLADO */
    height: auto;
    background-color: #ffffff;
    padding: 6px;
    border-radius: 10px;
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
    object-fit: contain;
    box-sizing: border-box;
    margin: 0 auto;         /* ← CENTRADO */
}

.payment-logos img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*------ 9. BOTÓN DE PAGO ------*/

.footer-button {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.footer-button a {
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    color: #00143C !important;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 150, 58, 0.3);
    border: none;
    font-size: 0.8rem;
}

.footer-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 150, 58, 0.4);
    background: linear-gradient(135deg, #d4af37, var(--accent-gold));
}

/*------ 10. PIE DE PÁGINA INFERIOR ------*/
.mi-footer-final {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--footer-text-muted);
    font-size: 0.9rem;
}

.footer-text {
    margin: 0;
    color: var(--footer-text-muted);
}

.mi-footer-legal {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mi-footer-legal a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.mi-footer-legal a:hover {
    color: var(--accent-gold);  /* Dorado */
    text-decoration: underline;
}

/*------ 11. RESPONSIVE - TABLET (≤900px) ------*/
@media screen and (max-width: 900px) {
    .mi-footer-contenedor {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/*------ 12. RESPONSIVE - MÓVIL (≤768px) ------*/
@media screen and (max-width: 768px) {

  .mi-footer-columna .horario {
        align-items: center;
    }

    .mi-footer {
        padding: 30px 15px 15px 15px;
    }

    .mi-footer-contenedor {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reducir espacio entre items */
    .mi-footer-columna h3 {
        margin-bottom: 12px;
    }

    .mi-footer-enlaces li {
        margin-bottom: 8px;
    }

    .mi-footer-columna p {
        margin-bottom: 8px;
    }

    .mi-footer-columna,
    .mi-footer-niubiz {
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .mi-footer-columna h3,
    .mi-footer-niubiz h3 {
        text-align: center;
    }

    .mi-footer-enlaces li a,
    .mi-footer-columna p {
        justify-content: center;
    }

    .mi-footer-iconos {
        justify-content: center;
    }

    /* Sección de pagos integrada */
    .mi-footer-niubiz {
        padding: 15px;
        margin-top: 10px;
    }

    .payment-logos {
        gap: 6px;
    }
    .payment-logos img {
        max-width: 60px;    /* ← MÁS PEQUEÑO EN MÓVIL */
        padding: 4px;
    }
    .footer-button {
        margin-top: 15px;
    }

    .footer-button a {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    /* Footer inferior */
    .mi-footer-final {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 20px;
    }

    .footer-text {
        white-space: normal;
    }

    .mi-footer-legal {
        justify-content: center;
        gap: 8px;
    }
}

/*------ 13. RESPONSIVE - MÓVIL PEQUEÑO (≤480px) ------*/
@media screen and (max-width: 480px) {
    .payment-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .payment-logos img {
        padding: 5px;
    }

    .mi-footer-niubiz h3 {
        font-size: 1rem;
    }

    .footer-button a {
        max-width: 200px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .mi-footer-legal {
        flex-direction: column;
        gap: 5px;
    }

    .mi-footer-legal a {
        font-size: 0.7rem;
    }
}













/* ============================================
   BANNER DE SERVICIOS (PAGINAS INSTITUCIONALES)
   ============================================ */

.hz-banner-servicios {
    position: relative;
    background-color: #1663ac;
    overflow: hidden;
    text-align: center;
    padding: 60px 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hz-banner-fondo {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/hexagon-trama.webp');
    background-repeat: repeat;
    background-size: auto;
    opacity: 1;
    z-index: 1;
}

.hz-banner-contenido {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hz-banner-texto {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */

/* Tablet (≤768px) */
@media (max-width: 768px) {
    .hz-banner-servicios {
        padding: 40px 20px;
        min-height: 140px;
    }
    
    .hz-banner-texto {
        font-size: 1.2rem;
        line-height: 1.3;
    }
}

/* Móvil (≤480px) */
@media (max-width: 480px) {
    .hz-banner-servicios {
        padding: 30px 15px;
        min-height: 140px;
    }
    
    .hz-banner-texto {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* Móvil muy pequeño (≤360px) */
@media (max-width: 360px) {
    .hz-banner-servicios {
        padding: 25px 12px;
        min-height: 120px;
    }
    
    .hz-banner-texto {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}




/* ============================================
   BOTÓN VOLVER ARRIBA - GLOBAL
   TEXTO EN DESKTOP, SOLO FLECHA EN MÓVIL
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00143C, #1a3a6e);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 40px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 20, 60, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Texto del botón */
.scroll-top-btn span:last-child {
    display: inline-block;
}

/* Icono */
.scroll-top-btn .icon-up {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Estado visible */
.scroll-top-btn.active,
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Hover */
.scroll-top-btn:hover {
    background: linear-gradient(135deg, #1a3a6e, #00143C);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 20, 60, 0.4);
}

.scroll-top-btn:hover .icon-up {
    transform: translateY(-3px);
}

/* Cuando está cerca del footer */
.scroll-top-btn.footer-near {
    bottom: 100px;
}

/* ===== MÓVIL (≤768px): SOLO FLECHA ===== */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
    }

    /* Ocultar el texto en móvil */
    .scroll-top-btn span:last-child {
        display: none;
    }

    /* Centrar la flecha */
    .scroll-top-btn .icon-up {
        font-size: 22px;
        margin: 0;
    }

    .scroll-top-btn.footer-near {
        bottom: 80px;
    }
}

/* ===== MÓVIL PEQUEÑO (≤480px) ===== */
@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
    }

    .scroll-top-btn .icon-up {
        font-size: 20px;
    }

    .scroll-top-btn.footer-near {
        bottom: 70px;
    }
}

/* ===== PANTALLAS ALTAS ===== */
@media (min-height: 900px) {
    .scroll-top-btn.footer-near {
        bottom: 120px;
    }
}




/* ============================================
   WHATSAPP FLOTANTE - COMPONENTE GLOBAL
   ============================================ */

.whatsapp-float-simple {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}

.whatsapp-float-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.whatsapp-float-link i {
    font-size: 22px;
}

/* Móvil: solo ícono */
@media (max-width: 600px) {
    .whatsapp-float-text {
        display: none;
    }

    .whatsapp-float-link {
        padding: 12px;
        border-radius: 50%;
    }
}


/* ============================================
   CTA DE CIERRE - COMPONENTE GLOBAL
   ============================================ */

.cta-cierre {
    background: linear-gradient(135deg, #F8F9FC 0%, #EDF2F6 100%);
    padding: 48px 32px;
    text-align: center;
    margin-top: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-cierre h3 {
    color: #00143C;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: inherit;
}

.cta-cierre p {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    background: #20b859;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00143C;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 20, 60, 0.2);
}

.btn-contacto:hover {
    transform: translateY(-2px);
    background: #001a4a;
    box-shadow: 0 6px 18px rgba(0, 20, 60, 0.3);
}

/* Texto de métricas */
.cta-metricas {
    color: #999;
    font-size: 0.75rem;
    margin-top: 16px;
}

.cta-metricas strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-cierre {
        padding: 32px 20px;
        margin-top: 30px;
    }
    
    .cta-cierre h3 {
        font-size: 1.4rem;
    }
    
    .cta-cierre p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .btn-whatsapp,
    .btn-contacto {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-cierre {
        padding: 24px 16px;
    }
    
    .cta-cierre h3 {
        font-size: 1.2rem;
    }
    
    .cta-metricas {
        font-size: 0.65rem;
    }
}