/* ==========================================================================
   VARIABLES CORPORATIVAS Y CONFIGURACIÓN BASE (PLANTILLA)
   ========================================================================== */
: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: 130px; /* Espacio para que el contenido no quede detrás del nav y el cintillo fijos */
}

.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);
}

/* Redes sociales en el menú superior */
.nav-links,
.navbar,
nav {
    display: flex;
}

.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-ticker-container {
    background-color: #ffffff;
    color: #1e293b;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 38px;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    position: relative;
    z-index: 900;
    margin-bottom: 10px;
}

.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 {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
    padding-left: 15px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    gap: 20px;
    animation: scrollTicker 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    gap: 5px;
    white-space: nowrap;
    animation: scrollTicker 35s linear infinite;
}

.ticker-item strong {
    color: #0f172a;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   FOOTER PROFESIONAL Y RESPONSIVE
   ========================================================================== */
.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: 1.35rem;
    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-info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.brand-name { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: #ffffff; 
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.brand-phrase { 
    color: #94a3b8; 
    font-size: 0.95rem; 
    font-style: italic; 
}

.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;
}

/* ==========================================================================
   MEDIA QUERIES PARA HEADER, MENÚ MÓVIL Y FOOTER
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .nav-menu {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    nav .social-links { 
        display: none !important; 
    }

    .footer-container .footer-social-links {
        display: flex !important;
    }

    .footer-container {
        gap: 15px !important;
    }

    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;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-philosophy-claim {
        font-size: 1.05rem;
        line-height: 1.35;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE 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;
}