* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    /* Fondo negro para el contraste */
    font-family: 'Inter', sans-serif;
    color: #fff;
    /* Texto blanco */
    overflow-x: hidden;
    overflow-y: auto;
}


.intro-influence {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
    text-align: center;
    padding: 0 5%;
}


.sentence-container {
    display: inline-block;
    /* Permite que el texto se ajuste a su contenido */
    max-width: 1000px;
    /* Para que no se estire demasiado en pantallas grandes */
}

.sentence-word {
    display: inline-block;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 5px;
    opacity: 1;
    color: #fff;
    white-space: nowrap;
    will-change: opacity, transform;
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    /* ajusta el 0.1 */
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    /* Cambiado a blanco para que se vea */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: 0.3s;
}

nav a:hover {
    opacity: 1;
}

section.next-content {
    height: 100vh;
    background: #111;
}

.phrase-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 5%;
    background: #000;
}

.image-roulette {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.image-roulette img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* Contenedor del texto */
.text-wrapper {
    position: relative;
    z-index: 2;
    font-size: clamp(1.8rem, 4.2vw, 4.2rem);
    font-weight: 300;
    line-height: 1.05;
    text-align: center;
}

.line {
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

/* Línea interactiva */
.trigger {
    position: relative;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
    /* ...pero que el trigger SÍ detecte el mouse */
    margin-top: 20px;
}

/* Texto visible siempre */
.text-base {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

/* Texto máscara */
.masked-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    text-align: center;
    color: #fff;
    text-transform: lowercase;
    cursor: pointer;
    opacity: 1;
    /* Forzamos visibilidad inicial */
    transition: transform 0.3s ease, color 0.3s ease;
}

.masked-text:hover {
    transform: scale(1.05);
    color: #ffffff;
    /* Sólido en lugar de transparent */
    -webkit-text-stroke: 0px transparent;
    /* Eliminamos el borde */
    opacity: 1;
    transition: all 0.4s ease;
}

.headline {
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    font-weight: 300;
    text-align: center;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.trigger.active .masked-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    mix-blend-mode: normal;
}

.headline-group {
    position: relative;
    inset: 0;
    z-index: 5;
    /* Asegúrate de que esté por encima de las imágenes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

/* --- FOOTER GENERAL --- */
.site-footer {
    background-color: #ffffff;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

/* --- SECCIÓN DUAL (DENTRO DEL FOOTER) --- */
.footer-cta-container {
    padding-bottom: 30px;
}

.dual-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
}

.dual-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dual-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.dual-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
    max-width: 380px;
}

.dual-button {
    display: inline-block;
    padding: 14px 35px;
    border: 1.5px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    /* Tus bordes redondeados */
    transition: all 0.3s ease;
    cursor: pointer;
}

.dual-button:hover {
    background-color: #000;
    color: #fff;
}

/* --- BARRA INFERIOR (CRÉDITOS) --- */
.footer-bottom-bar {
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.copyright {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    color: #000;
    opacity: 0.5;
    /* Color grisáceo igual para todos */
    transition: opacity 0.3s ease;
}

.footer-col a {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-col.social {
    align-items: flex-end;
}

/* Responsive */
@media (max-width: 768px) {

    .dual-container,
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .footer-col.social {
        align-items: center;
    }
}

.footer-left,
.footer-right {
    display: flex;
    gap: 30px;
    /* Espacio entre cada opción dentro de su bloque */
}

@media (max-width: 768px) {
    .intro-influence {
        min-height: 100svh;
    }

    /* ================= NAV ================= */

    nav {
        padding: 15px 20px;
    }

    nav ul {
        gap: 12px;
    }

    nav a {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* ================= INTRO SECTIONS ================= */

    .intro-influence {
        height: auto;
        padding: 120px 6% 80px 6%;
    }

    .sentence-word {
        font-size: 1.8rem;
        line-height: 1.3;
        white-space: normal;
        /* 👈 importante para que no se rompa */
    }

    .sentence-container {
        max-width: 100%;
    }

    /* ================= PHRASE SECTION ================= */

    .phrase-section {
        height: auto;
        padding: 120px 6% 100px 6%;
    }

    .headline-group {
        position: relative;
        /* 👈 quitamos absolute */
        gap: 12px;
    }

    .headline {
        font-size: 1.6rem;
        opacity: 0.6;
        /* más limpio en móvil */
    }

    .masked-text {
        font-size: 1.6rem;
        margin-top: 20px;
    }

    /* ================= FOOTER ================= */

    .dual-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

}

.subscribe-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
}

.subscribe-panel.active {
    max-height: 300px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.subscribe-row {
    display: flex;
    gap: 10px;
}

.subscribe-row input {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #000;
    font-family: 'Inter', sans-serif;
}

.subscribe-row button {
    padding: 12px 20px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.subscribe-row button:hover {
    background: #333;
    /* Cambia a un gris oscuro */
    border-color: #333;
    transition: background 0.3s ease;
    /* Para que el cambio sea suave */
}

.subscribe-check {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #444;
}