/* ==========================================================================
   VARIABLES CORPORATIVAS Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --ms-blue: #0067b8; --valery: #0078d4; --white: #ffffff; --text: #242424; --text-secondary: #616161; --success: #107c10; 
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', sans-serif; background-color: #f8f9fa; color: var(--text); line-height: 1.5; padding-top: 60px;
}

html, body {
    overflow-y: auto !important; height: auto !important;
}

.section-inner { 
    max-width: 1400px; margin: 0 auto; 
}

.header-fixed-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN, LOGOTIPO ALINEADO Y MENÚ
   ========================================================================== */
nav {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 4%; background: var(--white); border-bottom: 1px solid #e6e6e6;
    position: sticky; top: 0; z-index: 1100; flex-wrap: nowrap;
}

.logo { 
    display: flex; align-items: center; gap: 10px; flex-shrink: 0; 
}

.logo-img {
    height: 36px; width: auto; object-fit: contain; display: block;
}

.logo-text-group {
    display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}

.nav-tag { 
    font-weight: 700; font-size: 1.1rem; color: var(--text); white-space: nowrap;
}

.nav-subtag { 
    font-weight: 400; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-left: 1px solid #dcdcdc;
    padding-left: 10px; margin-left: 2px; white-space: nowrap;
}

.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; background: transparent; border: none; cursor: pointer;
    z-index: 1200; flex-shrink: 0; margin-left: 10px;
}

.menu-toggle span {
    width: 100%; height: 3px; background-color: var(--text); transition: all 0.3s ease; 
}

.nav-menu {
    display: flex; list-style: none; gap: 8px; align-items: center; flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; padding: 8px 16px; border-radius: 6px; background-color: #f8fafc; 
    border: 1px solid #e2e8f0; transition: all 0.25s ease;
}

.nav-link:hover {
    background-color: #edf2f7; color: var(--valery); border-color: #cbd5e1; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-link.active {
    background-color: var(--valery); color: var(--white); border-color: var(--valery);
}

.social-links { 
    display: flex !important; flex-direction: row !important; gap: 12px; align-items: center; margin-left: 10px; padding-left: 10px; border-left: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.social-links a { 
    text-decoration: none; transition: transform 0.2s ease; display: flex; align-items: center; 
}

.social-links a:hover { 
    transform: scale(1.1); 
}

.social-icon { 
    width: 24px; height: 24px; filter: grayscale(1) opacity(0.7); transition: 0.3s; 
}

.social-links a:hover .social-icon { 
    filter: grayscale(0) opacity(1); 
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #1a1a1a; color: #e2e8f0; padding: 35px 20px 25px 20px;  border-top: 1px solid #334155; width: 100%; box-sizing: border-box;
}

.footer-container {
    max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; 
}

.footer-philosophy-claim {
    font-size: 0.88rem; font-style: italic; font-weight: 600; color: #ffffff; max-width: 900px; margin: 0 auto; line-height: 1.3; letter-spacing: -0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); padding: 0 15px; border-left: 4px solid var(--valery); border-right: 4px solid var(--valery);
}

.footer-container .footer-social-links {
    display: none;
}

.footer-social-links {
    display: flex; gap: 12px; align-items: center; justify-content: center; margin: 0;
}

.footer-social-links a {
    text-decoration: none; transition: transform 0.2s ease; display: flex; align-items: center;
}

.footer-social-links a:hover {
    transform: scale(1.1);
}

.footer-social-links .social-icon {
    width: 22px; height: 22px; filter: grayscale(1) brightness(2) opacity(0.8); transition: 0.3s;
}

.footer-social-links a:hover .social-icon {
    filter: grayscale(0) brightness(1) opacity(1);
}

.footer-bottom { 
    max-width: 1000px; margin: 10px auto 0; font-size: 0.82rem; color: #94a3b8; text-align: center; border-top: 1px solid #2d3748; padding-top: 12px; 
    width: 100%; line-height: 1.4;
}
/* ==========================================================================
   VARIABLES CORPORATIVAS Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --ms-blue: #0067b8; 
    --valery: #0078d4; 
    --white: #ffffff; 
    --text: #242424; 
    --text-secondary: #616161; 
    --success: #107c10; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', sans-serif; 
    background-color: #f8f9fa; 
    color: var(--text); 
    line-height: 1.5; 
    padding-top: 60px;
    overflow-x: hidden; /* Evita scroll lateral no deseado */
}

html, body {
    height: auto !important;
}

.section-inner { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px;
    width: 100%;
}

.header-fixed-wrapper {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN, LOGOTIPO ALINEADO Y MENÚ
   ========================================================================== */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 4%; 
    background: var(--white); 
    border-bottom: 1px solid #e6e6e6;
    position: sticky; 
    top: 0; 
    z-index: 1100; 
    flex-wrap: nowrap;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; 
}

.logo-img {
    height: 36px; 
    width: auto; 
    object-fit: contain; 
    display: block;
}

.logo-text-group {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    overflow: hidden;
}

.nav-tag { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: var(--text); 
    white-space: nowrap;
}

.nav-subtag { 
    font-weight: 400; 
    color: var(--text-secondary); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border-left: 1px solid #dcdcdc;
    padding-left: 10px; 
    margin-left: 2px; 
    white-space: nowrap;
}

.menu-toggle {
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 26px; 
    height: 18px; 
    background: transparent; 
    border: none; 
    cursor: pointer;
    z-index: 1200; 
    flex-shrink: 0; 
    margin-left: 10px;
}

.menu-toggle span {
    width: 100%; 
    height: 3px; 
    background-color: var(--text); 
    transition: all 0.3s ease; 
}

.nav-menu {
    display: flex; 
    list-style: none; 
    gap: 8px; 
    align-items: center; 
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none; 
    color: var(--text); 
    font-weight: 600; 
    font-size: 0.92rem; 
    padding: 8px 16px; 
    border-radius: 6px; 
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0; 
    transition: all 0.25s ease;
}

.nav-link:hover {
    background-color: #edf2f7; 
    color: var(--valery); 
    border-color: #cbd5e1; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-link.active {
    background-color: var(--valery); 
    color: var(--white); 
    border-color: var(--valery);
}

.social-links { 
    display: flex !important; 
    flex-direction: row !important; 
    gap: 12px; 
    align-items: center; 
    margin-left: 10px; 
    padding-left: 10px; 
    border-left: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.social-links a { 
    text-decoration: none; 
    transition: transform 0.2s ease; 
    display: flex; 
    align-items: center; 
}

.social-links a:hover { 
    transform: scale(1.1); 
}

.social-icon { 
    width: 24px; 
    height: 24px; 
    filter: grayscale(1) opacity(0.7); 
    transition: 0.3s; 
}

.social-links a:hover .social-icon { 
    filter: grayscale(0) opacity(1); 
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   CINTILLO DE NOTICIAS DINÁMICO (TICKER)
   ========================================================================== */
.news-audit-wrapper {
    background-color: #111827; 
    margin: 0 !important; 
    padding: 0 !important; 
    border: none !important;
    position: fixed;
    top: 55px; 
    z-index: 999;
    left: 0;
    width: 100%;
}
.news-ticker-container {
    background-color: #111827; 
    color: #ffffff; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    height: 38px; 
    font-size: 0.85rem;
    border-top: none !important; 
    border-bottom: none !important; 
    margin-bottom: 0 !important; 
    padding-bottom: 0 !important;
}

.ticker-label {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%); 
    color: #ffffff; 
    font-weight: 700; 
    padding: 0 14px; 
    height: 100%; 
    display: flex;
    align-items: center; 
    gap: 6px; 
    white-space: nowrap; 
    z-index: 2; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.ticker-wrapper {
    flex: 1; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    height: 100%; 
    position: relative; 
    background-color: #1f2937;
    padding-left: 15px; 
}

.ticker-track {
    display: flex; 
    white-space: nowrap; 
    gap: 50px; 
    padding-left: 20px;
    animation: scrollTicker 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex; 
    align-items: center; 
    gap: 5px; 
    white-space: nowrap; 
    font-size: 0.9rem; 
    color: #f3f4f6; 
    flex-shrink: 0;
}

.ticker-item strong {
    margin: 0 4px; 
    color: #ffffff;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECCIÓN AUDITCORE Y CTA
   ========================================================================== */
.audit-banner-section {
    margin-top: 0 !important; 
    padding-top: 0 !important; 
    background-color: #0b2240 !important;
}

.audit-banner-container {
    margin-top: 0 !important;
}

.audit-banner-container img {
    width: 100%; 
    display: block;
    height: auto;
}

.audit-cta-container {
    padding: 25px 5% 30px 5% !important; 
    display: flex; 
    justify-content: center; 
    width: 100%; 
    box-sizing: border-box;
    background-color: #f8fafc; 
    line-height: normal !important; 
    font-size: 1rem !important; 
    margin: 0 !important;
}

.audit-btn {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    background-color: #FFCD00; 
    color: #111111; 
    padding: 14px 28px;
    border-radius: 6px; 
    font-weight: 700; 
    text-decoration: none; 
    font-size: 1rem !important; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); 
    border: 1px solid #e6b800; 
    max-width: 320px; 
    width: 90%; 
    box-sizing: border-box;
}

.audit-btn:hover {
    background-color: #e6b800; 
    transform: translateY(-2px);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background-color: #25d366; 
    color: #fff; 
    width: 60px; 
    height: 60px; 
    border-radius: 50px;
    text-align: center; 
    font-size: 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; 
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a; 
    transform: scale(1.1); 
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px; 
    height: 35px; 
    fill: #fff;
}

#planes,
#licenciamiento,
#hitos-anclaje,
#faq {
    scroll-margin-top: 60px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #1a1a1a; 
    color: #e2e8f0; 
    padding: 35px 20px 25px 20px;  
    border-top: 1px solid #334155; 
    width: 100%; 
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 15px; 
}

.footer-philosophy-claim {
    font-size: 0.88rem; 
    font-style: italic; 
    font-weight: 600; 
    color: #ffffff; 
    max-width: 900px; 
    margin: 0 auto; 
    line-height: 1.3; 
    letter-spacing: -0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
    padding: 0 15px; 
    border-left: 4px solid var(--valery); 
    border-right: 4px solid var(--valery);
}

.footer-container .footer-social-links {
    display: none;
}

.footer-social-links {
    display: flex; 
    gap: 12px; 
    align-items: center; 
    justify-content: center; 
    margin: 0;
}

.footer-social-links a {
    text-decoration: none; 
    transition: transform 0.2s ease; 
    display: flex; 
    align-items: center;
}

.footer-social-links a:hover {
    transform: scale(1.1);
}

.footer-social-links .social-icon {
    width: 22px; 
    height: 22px; 
    filter: grayscale(1) brightness(2) opacity(0.8); 
    transition: 0.3s;
}

.footer-social-links a:hover .social-icon {
    filter: grayscale(0) brightness(1) opacity(1);
}

.footer-bottom { 
    max-width: 1000px; 
    margin: 10px auto 0; 
    font-size: 0.82rem; 
    color: #94a3b8; 
    text-align: center; 
    border-top: 1px solid #2d3748; 
    padding-top: 12px; 
    width: 100%; 
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE (DISPOSITIVOS MÓVILES Y PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 768px) {
    nav .social-links { 
        display: none !important; 
    }

    .footer-container .footer-social-links {
        display: flex !important;
    }

    .footer-container {
        gap: 15px !important;
    }

    .footer-philosophy-claim {
        font-size: 0.58rem !important; /* Un tamaño más pequeño y legible para móviles */
        line-height: 1.2;
        padding: 0 5px;
    }    

    nav {
        padding: 10px 15px !important; 
        align-items: center !important;
    }

    .logo {
        flex-direction: row !important; 
        align-items: center !important; 
        gap: 10px !important; 
        max-width: calc(100% - 50px) !important; 
        overflow: hidden !important;
    }

    .logo-text-group {
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        overflow: hidden; 
    }

    .nav-tag {
        font-size: 0.9rem !important; 
        line-height: 1.1 !important; 
        white-space: nowrap;
    }

    .nav-subtag {
        border-left: none !important; 
        padding-left: 0 !important; 
        margin-left: 0 !important; 
        font-size: 0.62rem !important; 
        letter-spacing: 0.2px;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        line-height: 1.2 !important;
    }

    .menu-toggle { 
        display: flex !important; 
        flex-shrink: 0; 
        margin-left: auto !important;
    }
    
    .nav-menu {
        position: fixed; 
        top: 60px; 
        right: -100%; 
        width: 280px; 
        height: calc(100vh - 60px); 
        background-color: #ffffff; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        flex-direction: column; 
        padding: 10px 0; 
        gap: 0; 
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
        border-left: 1px solid #f0f0f0; 
        align-items: stretch;
        z-index: 9999; 
    }

    .nav-menu.is-active { 
        right: 0; 
    }
    
    .nav-menu li, 
    .nav-menu .nav-link {
        display: block !important; 
        width: 100% !important; 
        border-radius: 0 !important; 
        background-color: transparent !important; 
        box-shadow: none !important;
    }

    .nav-menu li {
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .nav-menu .nav-link {
        padding: 18px 24px !important; 
        border: none !important; 
        font-size: 0.95rem !important; 
        font-weight: 500 !important; 
        text-align: left !important;
        color: var(--text-secondary) !important; 
        transition: background-color 0.2s ease, color 0.2s ease !important;
    }

    .nav-menu li:hover {
        background-color: #fafafa !important;
    }

    .nav-menu .nav-link:hover {
        color: var(--valery) !important;
    }

    .nav-menu li.active,
    .nav-menu .nav-link.active {
        background-color: #f0f7ff !important; 
        color: var(--valery) !important; 
        font-weight: 600 !important; 
        border-left: none !important;
    }

    .nav-menu li:last-child {
        border-bottom: none !important;
    }

    .main-footer {
        padding: 30px 15px 20px 15px;
    }

    .footer-philosophy-claim {
        font-size: 1.2rem; 
        padding: 0 10px; 
        border-left-width: 3px; 
        border-right-width: 3px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}