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

body {
    background-color: #ffffff;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- 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: #000000;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: 0.3s;
}

nav a:hover {
    opacity: 1;
}


/* --- PÁRRAFO EXPLOSIVO --- */
.scroll-area-explosion {
    height: 300vh;
    position: relative;
    margin-top: -1px;
    background-color: #ffffff;
}

.sticky-scene {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 55;
}

#text-container {
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    max-width: 1000px;
    display: inline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    color: #000000;
}

.word-unit {
    display: inline-block;
    will-change: transform, opacity;
}

.project-trigger {
    color: #000000;
    transition: all 0.4s ease;
    -webkit-text-stroke: 0px transparent;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    /* o 'DM Sans', 'Poppins' */
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #000;
    position: relative;
    text-decoration: underline;
}

.project-roulette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    opacity: 0;
    pointer-events: none;
    background-color: #000;
    z-index: 40;
}

.project-roulette img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    will-change: transform, opacity;
}

/* Todas las palabras del párrafo */
.word-unit {
    color: #000000;
    -webkit-text-stroke: 0px transparent;
    transition: all 0.4s ease;
}

/* El disparador cuando está activo */
.project-trigger.active {
    color: #ffffff !important;
    /* Ahora es blanco sólido */
    -webkit-text-stroke: 0px transparent !important;
    /* Quitamos el borde */
    display: inline-block;
    position: relative;
    z-index: 60;
    transform: scale(1.15);
    cursor: pointer;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    /* Opcional: un pequeño brillo */
}

/* Clase para ocultar el resto de palabras */
.word-hidden {
    opacity: 0 !important;
    filter: blur(10px);
    /* Opcional: añade un desenfoque mientras desaparecen */
    pointer-events: none;
}

.main-experience {
    background-color: #000;
    position: relative;
}

/* --- GALERÍA --- */


.sticky-box {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.image-container {
    width: 60%;
    max-width: 700px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.5);
    position: relative;
    z-index: 6;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    cursor: pointer;
}

.image-container a {
    display: block;
    overflow: hidden;
}

.image-container img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.content-pro {
    position: absolute;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.title-pro {
    top: 10%;
    font-size: 3rem;
    letter-spacing: 15px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 40px;
}

.desc-pro {
    bottom: 10%;
    font-size: 1.1rem;
    color: #aaa;
    max-width: 400px;
}

.experience-section {
    position: relative;
    height: 800vh;
    /* SCROLL LARGO */
    background: #000;
}

/* TEXTO FIJO AL FONDO */
.background-text-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* ⬅️ centro real */
    z-index: 1;
    padding-top: 6vh;
    /* ⬅️ pequeño aire arriba */
}

.base-phrase {
    color: #fff;
    font-size: 3.4rem;
    /* un poco más grande */
    font-weight: 600;
    line-height: 1.35;
    max-width: 1000px;
    text-align: center;
    margin: 0;
}

/* IMÁGENES ENCIMA */
.section-wrapper {
    position: relative;
    height: 150vh;
    z-index: 5;
}

.expansion-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Evita scrolls rebeldes */
    background-color: #ffffff;
}

.expansion-sticky {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    /* Optimiza el renderizado de GSAP */
}

.center-phrase {
    font-size: 6vw;
    font-weight: 400;
    color: #000000;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;

    /* ESTA ES LA LÍNEA QUE FALTA */
    text-align: center;

    /* Asegúrate de que ocupe el ancho suficiente para poder centrarse */
    width: 100%;
}

.corner-option {
    position: absolute;
    font-size: 2rem;
    font-weight: 300;
    color: #000000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
    gap: 8px;
    white-space: nowrap;
    opacity: 1;
    /* GSAP manejará la opacidad inicial */
    z-index: 5;
}

.corner-option span {
    font-size: 1rem;
    /* La flecha un poco más grande */
    display: inline-block;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.corner-option:hover span {
    transform: translateX(5px);
    /* Pequeña interacción sutil */
}

.corner-option a {
    text-decoration: none;
    /* Quita el subrayado */
    color: inherit;
    /* Hereda el color negro de .corner-option */
    display: flex;
    /* Mantiene la flecha y el texto alineados */
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

/* Efecto opcional al pasar el mouse por encima */
.corner-option a:hover {
    opacity: 0.7;
    /* El enlace se aclara un poco al pasar el mouse */
    transition: 0.3s;
}

/* Posiciones finales */
.top-left {
    top: 12%;
    left: 8%;
}

.top-right {
    top: 12%;
    right: 8%;
}

.bottom-left {
    bottom: 12%;
    left: 8%;
}

.bottom-right {
    bottom: 12%;
    right: 8%;
}



/* ===== HERO STICKY ===== */
.sticky-hero-section {
    position: relative;
    height: 200vh;
    background: #fff;
}

.sticky-hero-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* ===== TEXTO ===== */
.sticky-text-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sticky-word {
    position: absolute;
    font-size: 7vw;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 0.9;
}

/* ESCALONADO */
.sticky-word-a {
    top: 22%;
    left: 8%;
}

.sticky-word-b {
    top: 37%;
    right: 10%;
}

.sticky-word-c {
    top: 52%;
    left: 12%;
}

/* ===== IMAGEN ===== */
.sticky-image-layer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.sticky-main-image {
    width: 35vw;
    border-radius: 30px;
    opacity: 0;
    transform: scale(1);
    object-fit: cover;
}

/* --- SECCIÓN DUAL --- */
.dual-text-section {
    padding: 100px 10%;
    background-color: #ffffff;
    color: #000000;
}


.dual-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- BOTÓN CON EFECTO HOVER --- */
.dual-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #000000;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    /* Transición suave */
    background-color: transparent;
    border-radius: 10px;
    cursor: pointer; 
}

.dual-button:hover {
    background-color: #000000;
    /* Fondo negro al pasar el mouse */
    color: #ffffff;
    /* Texto blanco para contraste */
}

/* --- 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: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;
}

.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;
}

/* 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) {

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

    nav {
        padding: 15px 20px;
    }

    nav ul {
        gap: 12px;
    }

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


    /* ================= HERO ================= */

    .sticky-word {
        font-size: 12vw;
        /* antes 7vw */
        white-space: normal;
    }

    .sticky-word-a,
    .sticky-word-b,
    .sticky-word-c {
        left: 5%;
        right: 5%;
    }

    .sticky-main-image {
        width: 70vw;
    }


    /* ================= TEXTO EXPLOSIVO ================= */

    #text-container {
        font-size: 1.6rem;
        padding: 0 6%;
    }

    .scroll-area-explosion {
        height: 200vh;
    }


    /* ================= EXPERIENCE ================= */

    .experience-section {
        height: auto;
        /* quitamos 800vh en móvil */
    }

    .section-wrapper {
        height: 100vh;
    }

    .base-phrase {
        font-size: 1.8rem;
        padding: 0 6%;
    }

    .image-container {
        width: 85%;
        height: 250px;
    }

    .title-pro {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }


    /* ================= EXPANSION ================= */

    .center-phrase {
        font-size: 8vw;
        padding: 0 5%;
        line-height: 1.1;
    }

    .corner-option {
        position: static;
        /* quitamos absolute */
        font-size: 1rem;
        margin-top: 15px;
    }

    .expansion-sticky {
        flex-direction: column;
        gap: 20px;
    }


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

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

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

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

}