/* --- LOGO FIJO (Cambio Radical | ¡SÍ LO HACE!) --- */
.brand-fixed-footer {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
}

.brand-fixed-footer img {
    height: 70px;
    width: auto;
    background-color: white; 
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .brand-fixed-footer {
        bottom: 20px;
        right: 20px;
    }
    .brand-fixed-footer img {
        height: 50px; /* Más pequeño en móvil */
        padding: 8px;
    }
}

/* --- BLOQUE 7: FINAL MASTERPIECE --- */
.formula-visual-impact {
    padding-top: 220px;
    padding-left: 220px;
    padding-right: 220px;
    padding-bottom: 80px; /* 👈 espacio inferior */
    background: #ffffff;
    overflow: hidden;
}


.container-luxury-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.layout-visual {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px; /* Reducido de 60px */
    align-items: center;
}

/* GESTIÓN DE LA IMAGEN 5104 x 2872 */
.col-foto-grande {
    position: relative;
    width: 100%;
}

.wrapper-imagen-premium {
    position: relative;
    z-index: 5;
    background: white;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0, 33, 102, 0.12);
    border-radius: 8px;
    /* Mantenemos la proporción exacta 5104/2872 */
    aspect-ratio: 5104 / 2872; 
    overflow: hidden;
}

.foto-main {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que llene el espacio sin deformarse */
    display: block;
    transition: transform 0.6s ease;
}

.wrapper-imagen-premium:hover .foto-main {
    transform: scale(1.03); /* Efecto zoom suave al pasar sobre la foto */
}

.accent-line-photo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    border-right: 6px solid #F60000;
    border-bottom: 6px solid #F60000;
    z-index: 6;
    pointer-events: none;
}

.geometric-back {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 250px;
    height: 250px;
    background: #003366;
    opacity: 0.04;
    z-index: 1;
    border-radius: 50%;
}

/* TEXTOS Y COMPACIDAD */
.eyebrow-red {
    color: #F60000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.formula-title {
    font-size: 3.5rem;
    color: #003366;
    line-height: 0.95;
    margin-bottom: 40px;
    font-weight: 900;
}

.formula-title strong {
    display: block;
    color: #F60000;
}

.candidatas-stack-compact {
    margin-bottom: 30px;
}

.candidata-box-minimal {
    margin-bottom: 15px; /* Espacio reducido entre candidatas */
}

.candidata-box-minimal h3 {
    font-size: 2.1rem;
    color: #003366;
    margin: 0; 
    line-height: 1.1;
    font-weight: 900;
}

.sub-voto {
    color: #F60000;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 2px; /* Pegado al nombre */
}

.quote-container {
    font-size: 1.4rem;
    color: #555;
    font-style: italic;
    border-left: 4px solid #F60000;
    padding-left: 20px;
    margin: 35px 0;
}

/* PILLS CON HOVER RESTAURADO */
.pills-container-luxury {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-v {
    background: #ffffff;
    border: 2px solid #003366;
    padding: 10px 20px;
    font-weight: 700;
    color: #003366;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-v:hover {
    background: #003366;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
    border-color: #003366;
}

@media (max-width: 1200px) {
    .formula-visual-impact {
        padding: 120px 5% 60px; /* Reducción de los 220px laterales */
    }
    .formula-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .layout-visual {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 50px;
    }
    .col-foto-grande {
        order: -1; /* La foto sale primero en el móvil */
    }
    .col-info-premium {
        text-align: center;
    }
    .pills-container-luxury {
        justify-content: center;
    }
    .quote-container {
        border-left: none;
        border-top: 4px solid #F60000;
        padding: 20px 0;
        margin: 25px auto;
        max-width: 90%;
    }
    .formula-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .formula-visual-impact {
        padding-top: 80px;
    }
    .formula-title {
        font-size: 2rem;
    }
    .candidata-box-minimal h3 {
        font-size: 1.8rem;
    }
}

/* --- LÍNEA DIVISORA PREMIUM --- */
.luxury-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #F60000, #002147, transparent);
    opacity: 0.3;
    margin: 0; /* Pegada a las secciones */
}

/* --- SOCIAL HUB LUXURY FINAL (CON FONDO AZUL Y TEXTO AZUL) --- */
.social-hub-premium {
    padding: 30px 0; /* Espacios más reducidos */
    background: #001a33; /* FONDO AZUL PROFUNDO SOLICITADO */
}

.container-social-luxury {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-social-central {
    text-align: center;
    margin-bottom: 50px; /* Más compacto */
}

.eyebrow-red {
    color: #F60000;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.title-main-social {
    font-size: 3.5rem;
    color: #ffffff; /* BLANCO para resaltar sobre el fondo azul */
    font-weight: 900;
}

.title-main-social span { color: #F60000; }

/* Bloques de Red Social más pegados */
.social-block {
    margin-bottom: 30px; /* Espacio reducido entre cada red social */
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.social-block:hover {
    transform: translateY(-8px);
}

/* La Tarjeta Principal */
.social-card-main {
    padding: 20px 40px;
    background: transparent;
    border-bottom: 1px solid #f0f3f7;
}

.card-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.custom-social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.card-info h3 { font-size: 1.7rem; font-weight: 900; color: #003366; margin: 0; }
.card-info p { color: #666; font-weight: 600; margin: 0; }

.btn-visit {
    margin-left: auto;
    padding: 10px 22px;
    background: #003366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: 0.3s;
}

.btn-visit:hover {
    background: #F60000;
    transform: translateY(-3px);
}

/* La Galería de Posts */
.posts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px; /* Espacio entre posts más reducido */
    padding: 20px 40px 30px;
}

.post-item {
    height: 240px; /* Altura compacta */
    background: #f8fafd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0eb;
    transition: 0.4s;
    cursor: pointer;
    overflow: hidden;
}

/* TEXTO DE LOS POSTS EN AZUL SOLICITADO */
.post-item span {
    color: #003366; /* AZUL CORPORATIVO */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
    padding: 0 10px;
}

.post-item:hover {
    transform: translateY(-5px);
    border-color: #F60000;
}

/* Colores de Borde para los Posts */
.ig-post { border-bottom: 4px solid #E4405F; }
.fb-post { border-bottom: 4px solid #1877F2; }
.x-post { border-bottom: 4px solid #000; }
.sp-post { border-bottom: 4px solid #1DB954; }
.yt-post { border-bottom: 4px solid #FF0000; }
.tk-post { border-bottom: 4px solid #000000; }

/* Enlaces sin subrayado */
.posts-gallery a.post-item {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .posts-gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .social-hub-premium {
        padding: 40px 0;
    }
    .title-main-social {
        font-size: 2.2rem;
    }
    .card-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .btn-visit {
        margin: 10px auto;
        width: 100%;
        max-width: 250px;
    }
    .posts-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
        gap: 10px;
        padding: 15px;
    }
    .post-item {
        height: 160px; /* Altura más compacta */
    }
    .post-item span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container-social-luxury {
        padding: 0 20px;
    }
    .posts-gallery {
        grid-template-columns: 1fr; /* 1 sola columna en móviles muy pequeños */
    }
    .title-main-social {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container-luxury-wide, 
    .container-social-luxury {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- RESPONSIVE HEADER LOGIC --- */

/* Escondemos el botón en computadoras */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001; /* Por encima de la cortina */
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FFFFFF; /* Color blanco para que resalte sobre el rojo */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* MEDIA QUERY PARA TABLETS Y MÓVILES */
@media (max-width: 1024px) {
    .main-header {
        height: 80px;
        padding: 0 5%;
    }

    /* Mostramos el botón */
    .menu-toggle {
        display: flex;
    }

    /* Animación de Hamburguesa a X */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Convertimos el NAV en un menú lateral */
    .nav-principal {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 80%; /* O 100% si prefieres pantalla completa */
        height: 100vh;
        background-color: #F60000; /* Fondo rojo sólido oficial */
        z-index: 2000;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    /* Clase que activa el JS */
    .nav-principal.active {
        right: 0;
    }

    .nav-principal ul {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        width: 100%;
    }

    .nav-principal a {
        font-size: 1.4rem !important;
        padding: 10px 0;
        display: block;
    }

    /* Ajuste de logo en móvil */
    .logo-container img {
        height: 55px;
    }
}

/* Ajuste para teléfonos muy pequeños */
@media (max-width: 480px) {
    .nav-principal {
        width: 100%;
    }
}

/* --- ESTILO QR PREMIUM FINAL (VERSIÓN AMPLIADA) --- */
.qr-social-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Reducido un poco para que no flote tanto */
    padding-bottom: 40px;
    clear: both;
}

.qr-card-premium {
    background: white;
    padding: 45px; /* Aumentado de 30px */
    border-radius: 30px; /* Bordes más suaves */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12); /* Sombra más profunda */
    text-align: center;
    max-width: 450px; /* Aumentado de 350px */
    border: 1px solid rgba(0, 51, 102, 0.1);
    transition: transform 0.3s ease;
}

.qr-card-premium:hover {
    transform: translateY(-10px);
}

.qr-text {
    font-size: 1.3rem; /* Aumentado de 1.1rem */
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.qr-text span {
    color: #F60000;
    display: block;
    font-size: 1.6rem; /* Aumentado de 1.3rem */
    font-weight: 800;
    margin-top: 5px;
}

.qr-wrapper {
    position: relative;
    width: 280px; /* Aumentado de 200px */
    height: 280px; /* Aumentado de 200px */
    margin: 0 auto 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}

.qr-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Línea de escaneo animada */
.qr-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Un poco más gruesa */
    background: rgba(246, 0, 0, 0.6);
    box-shadow: 0 0 15px #F60000;
    animation: scanMove 3s infinite linear;
}

@keyframes scanMove {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.qr-subtext {
    font-size: 0.9rem; /* Aumentado de 0.8rem */
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Ajuste móvil - Mantiene un buen tamaño en pantallas pequeñas */
@media (max-width: 480px) {
    .qr-card-premium {
        width: 95%;
        padding: 30px 20px;
    }
    .qr-wrapper {
        width: 220px;
        height: 220px;
    }
    .qr-text {
        font-size: 1.1rem;
    }
    .qr-text span {
        font-size: 1.4rem;
    }
}

/* --- ESTILO PARA LA NUEVA FRASE --- */
.slogan-lider {
    font-size: 1.25rem;
    color: #003366; /* Azul de la marca */
    font-weight: 800;
    margin-top: -15px; /* Para que quede cerca de la cita anterior */
    margin-bottom: 30px;
    text-transform: none;
    letter-spacing: -0.5px;
}