
/* =====================================================
   RESET Y ESTILO GENERAL
===================================================== */

.project-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    background: #F9F8F5;
    color: #000;

    font-family: Helvetica, Arial, sans-serif;
}

.project-page main {
    flex: 1;
}


.project-page * {
    box-sizing: border-box;
}

.project-page a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   CURSOR
===================================================== */

.project-page .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 22px;
    height: 22px;

    z-index: 99999;
    pointer-events: none;

    transform: translate(-2px, -2px);
}

.project-page .custom-cursor svg {
    width: 100%;
    height: 100%;

    display: block;

    fill: #D9A6A0;
    stroke: #D9A6A0;
    stroke-width: 1.2;
    stroke-linejoin: round;

    transition: fill 0.2s ease, stroke 0.2s ease;
}

.project-page .custom-cursor.is-black svg {
    fill: #000;
    stroke: #000;
}

/* =====================================================
   BARRA SUPERIOR
===================================================== */

.project-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 70px;
    padding: 0 35px;

    display: flex;
    align-items: center;

    background: #F9F8F5;
    color: #000;

    z-index: 100;
    border: none;
}


/* HELENA */

.project-logo {
    position: relative;
    top: -3.5px;

    font-family: "obviously", sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;

    color: #000;
    text-decoration: none;
    white-space: nowrap;
}


/* MENÚ */

.project-nav {
    display: flex;
    align-items: center;
    gap: 42px;

    margin-left: 38px;
}


.project-nav a {
    font-family: "montserrat", sans-serif;
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}

.project-nav a:hover {
    opacity: 0.5;
}


/* GRAPHIC DESIGNER */

.project-role {
    margin-left: auto;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    color: #000;
    opacity: 0.6;
}



/* =====================================================
   PRIMERA SECCIÓN
===================================================== */

.project-intro {
    position: relative;
    width: 100%;
    min-height: 100vh;

    padding: 110px 2vw 100px;
    box-sizing: border-box;

    background: #F9F8F5;
    color: #000;
}

/* TÍTULO */

.project-intro h1 {

    font-family: "obviously", sans-serif !important;
    font-weight: 900;
    font-style: normal;

    font-size: clamp(65px, 11vw, 200px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    white-space: nowrap;
    margin-left: 20px;
}

/* TEXTO IZQUIERDO */

.project-text-left {
    width: 57%;
    margin-top: 130px;
}

/* TEXTO IZQUIERDO */
.project-text-left p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.04em;
    hyphens: auto;
}

/* TEXTO DERECHO */

.project-text-right p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: normal;

    margin-top: 0;
    margin-bottom: 22px;
}


/* DOS TEXTOS DE LA DERECHA */

.project-text-right {
    width: 50%;
    margin-left: auto;
    margin-top: 80px;
    transform: translateX(-80px);
}

.project-text-right p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;

    margin-bottom: 22px;
}

/* =====================================================
   PROYECTO 1 — JUSTIFICACIÓN Y ESPACIADO DE TEXTOS
===================================================== */

/* Texto introductorio */
.project-intro:not(.project-intro-2) .project-text-left p {
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.04em;
    hyphens: auto;
}

/* Textos explicativos junto al carrusel */
.project-description-process:not(.project-description-book-2) .process-description-text p {
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.04em;
    hyphens: auto;
}

/* Textos adicionales de lectura */
.project-intro:not(.project-intro-2) .project-text-right p {
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.04em;
    hyphens: auto;
}

/* =====================================================
   SEGUNDA SECCIÓN — SCROLL HORIZONTAL
===================================================== */

.project-page {
    overflow-x: clip;
}

.project-second-section {
    position: relative;
    width: 100%;
    height: 90vh;
    background: #F9F8F5;
    overflow: hidden;
}

.project-gallery-sticky {
    position: sticky;
    top: 70px;
    width: 100%;
    height: calc(100vh - 330px);
    overflow: hidden;

    display: flex;
    align-items: center;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}


.project-gallery-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 0;
    will-change: transform;
    transition: none;
}

.book-slide {
    position: relative;
    flex: 0 0 70vw;
    width: 70vw;
    height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;
}


.book-slide::after {
    content: "";
    position: absolute;

    left: 18%;
    right: 18%;
    bottom: 6%;

    height: 14px;

    background: rgba(0, 0, 0, 0.22);

    filter: blur(12px);

    border-radius: 50%;

    z-index: 0;
    pointer-events: none;
}


.book-slide img {
    position: relative;
    z-index: 1;

    display: block;

    width: 70vw;
    height: 75vh;

    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 14px 8px rgba(0, 0, 0, 0.25));
}



.project-gallery-track img {
    display: block;
    flex: 0 0 58vw;
    width: 58vw;
    height: 75vh;
    object-fit: contain;
    object-position: center;

    filter: drop-shadow(0 12px 5px rgba(0, 0, 0, 0.22));
}


/* AJUSTAR TAMAÑO DE DOS IMÁGENES DEL PRIMER PROYECTO */

.project-gallery-track img[src$="proyecto-1-01.png"], {
    transform: scale(0.95);
}

/* AJUSTAR TAMAÑO UNA IMÁGEN DEL SEGUNDO PROYECTO */

.project-gallery-track img[src$="paginas-02-03.png"] {
    transform: scale(0.78);
}


/* QUINTA IMAGEN DEL SCROLL — LIBRO 1 */
.project-gallery-track img[src$="proyecto-1-05.png"] {
     transform: scale(0.98) translateY(10px);
}


.project-gallery-sticky.is-dragging {
    cursor: grabbing;
}

.project-gallery-sticky.is-dragging img {
    pointer-events: none;
}


/* =====================================================
   TERCERA SECCIÓN — IMÁGENES DE LA REVISTA
===================================================== */

.project-editorial-gallery {
    width: 100%;
    padding: 35px;
    background: #F9F8F5;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* IMAGEN RECTANGULAR */

.editorial-image-wide {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 2.4 / 1;
}

/* IMÁGENES CUADRADAS */

.editorial-image-square {
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* IMÁGENES */

.editorial-image {
    overflow: hidden;
}

.editorial-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}


/* =====================================================
   QUINTA SECCIÓN — NUEVO PROYECTO
===================================================== */

.project-intro-2 {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 110px 2vw 0;
    background: #F9F8F5;
    color: #000;
}

.project-intro-2 h1 {
    font-family: "obviously", sans-serif !important;
    font-weight: 900;
    font-style: normal;
    font-size: clamp(65px, 11vw, 200px);
    line-height: .9;
    letter-spacing: -.06em;
    white-space: nowrap;
    margin-left: 1px;
}

.project-intro-2 .project-text-left {
    width: 58%;
    margin-top: 125px;
    margin-left: 20px;
}

.project-intro-2 .project-text-left {
    transform: translateX(-12px);
}

/* Más espacio entre el texto principal y las páginas del libro */
.project-intro .project-text-left {
    margin-bottom: 50px;

}


/* Más margen izquierdo para el texto principal */
.project-intro .project-text-left {
    margin-left: 1.9vw;
}


.project-intro-2 .project-text-left p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.project-intro-2 .project-text-right {
    width: 50%;
    margin-top: 80px;
}

.project-intro-2 .project-text-right p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}


/* =====================================================
   SCROLL HORIZONTAL — NUEVAS PÁGINAS
===================================================== */

.project-second-section-2 {
    position: relative;
    width: 100%;
   height: 75vh;
    background: #F9F8F5;
    overflow: hidden;
}

.project-gallery-sticky-2 {
    position: sticky;
    top: 70px;
    width: 100%;
    height: calc(100vh - 330px);
    overflow: hidden;
    display: flex;
    align-items: center;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}


.project-gallery-track-2 {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 0;
    will-change: transform;
    transition: none;
}



.project-gallery-track-2 img {
    display: block;
    flex: 0 0 58vw;
    width: 58vw;
    height: 75vh;
    object-fit: contain;
    object-position: center;
    transform: scale(0.90);

    filter: drop-shadow(0 12px 5px rgba(0, 0, 0, 0.22));
}


.project-gallery-track-2 img[src="images/paginas-02-03.png"] {
    width: 72vw;
    height: 77vh;
}


/* =====================================================
   TRES FOTOS FINALES — NUEVO LIBRO
===================================================== */

.project-book-gallery-2 {
    width: 100%;
    padding: 35px;
    background: #F9F8F5;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-book-gallery-2 .book-image-wide {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 2.4 / 1;
}

.project-book-gallery-2 .book-image-square {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.project-book-gallery-2 .book-image {
    overflow: hidden;
}

.project-book-gallery-2 .book-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AJUSTE DE TAMAÑO DE LAS PÁGINAS */

.project-gallery-track-2 img {
    transform: scale(0.90);
}

/* IMAGEN 01 — un poco más grande */
.project-gallery-track-2 img[src="images/paginas-02-01.png"] {
    transform: scale(0.99);
}


/* TEXTO INTRODUCTORIO — SEGUNDO LIBRO */
.project-intro-2 .project-text-left p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: normal;
    letter-spacing: -0.03em;
}


/* =====================================================
   TEXTO ENTRE PÁGINAS Y MOCKUPS
===================================================== */

.project-description-between {
    width: 50%;
    margin-left: auto;
    padding: 70px 2vw 90px;
    box-sizing: border-box;
    background: #F9F8F5;
}

.project-description-between p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: normal;

    margin-top: 0;
    margin-bottom: 22px;
}

.project-description-between p:last-child {
    margin-bottom: 0;
}

/* Reducir espacio entre la galería horizontal y el texto */


.project-description-between {
    padding-top: 0 !important;
    padding-bottom: 120px !important;
    transform: translateY(-30px);
}
/* =====================================================
  FOTTER
===================================================== */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 25px 35px 15px;
    margin-top: auto;
    margin-bottom: 0;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.project-page .read-more {
    display: inline-block;
    margin-top: 18px;
    padding: 0 0 3px;

    border: none;
    border-bottom: 2px solid #D9A6A0;

    background: transparent;
    color: #D9A6A0;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 29px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.03em;

    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-page .read-more:hover {
    opacity: 0.6;
}

.project-page .project-text-right[hidden] {
    display: none !important;
}


/* ANIMACIÓN READ MORE SIN MOVER EL TEXTO */

.project-page .project-text-right.is-open {
    animation: readMoreReveal 0.45s ease;
}

@keyframes readMoreReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* CARRUSEL AL LADO DEL TEXTO EXPLICATIVO */

.project-description-process {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 2.3vw 120px !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5vw;

    transform: none !important;
}

/* IMÁGENES DEL CARRUSEL */

.process-carousel {
    width: 100%;
    min-width: 0;
}

.process-carousel-window {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.process-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.process-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* FLECHAS */

.process-carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
}

.project-description-book-2 .process-carousel-controls {
    padding-top: 0;
    transform: translateY(-7px);
}

.process-counter {
    font-size: 12px;
    opacity: 0.5;
}

.process-arrows {
    display: flex;
    gap: 10px;
}

.process-arrows button {
    width: 36px;
    height: 36px;
    border: 1px solid black;
    border-radius: 50%;
    background: transparent;
    color: black;
    font-size: 18px;
}

/* TEXTO */

.process-description-text {
    width: 100%;
}

/* CENTRAR TEXTO CON EL CARRUSEL — PRIMER PROYECTO */

.project-description-process:not(.project-description-book-2) .process-description-text {
    transform: translateY(-20px);
}

.process-description-text p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: justify;
    margin-bottom: 22px;
}

/* =====================================================
   AJUSTES SEGUNDO LIBRO — ALINEACIÓN Y MÁRGENES
===================================================== */

/* SUBIR TEXTO PARA CENTRARLO CON EL CARRUSEL */

.project-description-book-2 .process-description-text {
    transform: translateY(-20px);
}

/* IGUALAR ESPACIOS SUPERIOR E INFERIOR */

.project-description-book-2 {
    padding-top: 70px !important;
    padding-bottom: 35px !important;
    transform: none !important;
}

/* MARGEN DE LAS IMÁGENES FINALES */

.project-book-gallery-2 {
    padding-top: 35px;
}


@media (min-width: 701px) {

    .footer {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

}


/* =====================================================
   AMPLIAR IMÁGENES — SOLO MÓVIL
===================================================== */

.project-image-lightbox {
    display: none;
}

@media (max-width: 700px) {

    .project-page img {
        cursor: zoom-in;
    }

    .project-image-lightbox {
        position: fixed;
        inset: 0;
        z-index: 999999;

        display: flex;
        justify-content: center;
        align-items: center;

        padding: 20px;

        background: #F9F8F5;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .project-image-lightbox.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .project-image-lightbox img {
        max-width: 100%;
        max-height: 90vh;

        width: auto;
        height: auto;

        object-fit: contain;
        cursor: zoom-out;
    }

    .project-image-lightbox-close {
        position: absolute;
        top: 15px;
        right: 20px;

        width: 35px;
        height: 35px;

        padding: 0;
        border: none;
        background: transparent;

        color: #000;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 32px;
        font-weight: 300;
        line-height: 1;

        cursor: pointer;
    }
}
