/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
    background: #F9F8F5;
}

body {
    background: #F9F8F5;
    color: #000;

    font-family: Helvetica, Arial, sans-serif !important;

    overflow-x: hidden;
}

body * {
    font-family: Helvetica, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   TRANSICIÓN ENTRE PÁGINAS
===================================================== */

body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.page-visible {
    opacity: 1;
}

body.page-leaving {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none;
    }
}
/* =====================================================
   HERO
===================================================== */

.hero {
    height: 100vh;
    min-height: 600px;

    position: relative;

    overflow: hidden;

    background: #F9F8F5;
}

/* =====================================================
   MOUSE TRAIL
===================================================== */

#mouse-trail {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 5;

    pointer-events: none;
}

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

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

    width: 22px;
    height: 22px;

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

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

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

/* CUANDO PASA POR ENCIMA DEL ROSA */

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

/* =====================================================
   HELENA — ESTADO INICIAL
===================================================== */

.hero-name {
    position: fixed;

    top: 0;
    left: 0.5vw;

    z-index: 200;

    font-family: "obviously", sans-serif;
    font-weight: 700;
    font-style: normal;

    font-size: 22vw;

    letter-spacing: -0.02em;
    line-height: 0.90;

    white-space: nowrap;

    pointer-events: none;
    transform: translateY(1px);


    transition:
        font-size 0.6s ease,
        left 0.6s ease,
        top 0.6s ease;
}
/* =====================================================
   HELENA — CUANDO HACEMOS SCROLL
===================================================== */

body.scrolled .hero-name {
    top: 24.7px;
    left: 30px;

    font-size: 20px;
}


/* =====================================================
   MENÚ — ESTADO INICIAL
===================================================== */

.hero-menu {
    position: absolute;
    top: 410px;
    left: 2.5vw;
    display: flex;
    flex-direction: row;
    gap: 30px;
    z-index: 201;
    transition: top 0.6s ease, left 0.6s ease;
}

.hero-menu a {
    font-family: "montserrat", sans-serif !important;
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
    color: #000;
    letter-spacing: 0;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}

.hero-menu a:hover {
    opacity: 0.5;
}



/* =====================================================
   MENÚ — CUANDO HACEMOS SCROLL
===================================================== */

body.scrolled .hero-menu {
    position: fixed;

    top: 23px;
    left: 155px;

    z-index: 201;
}


/* =====================================================
   PRESENTACIÓN
===================================================== */

.hero-intro {
    position: absolute;

    top: 450px;
    right: 5vw;

    width: 45vw;
    max-width: 800px;

    z-index: 10;
}

.hero-intro p {
    font-size: 29px;

    line-height: 1.15;

    font-weight: 500;

    letter-spacing: -0.03em;
}

.hero-intro a {
    display: inline-block;

    margin-top: 5px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 29px;

    font-weight: 430;

    font-style: italic;

    letter-spacing: -0.02em;

    color: #D9A6A0;

    border-bottom: 2px solid #D9A6A0;
}


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

.hero-footer {
    position: absolute;

    bottom: 25px;

    left: 35px;
    right: 35px;

    display: flex;

    justify-content: space-between;

    font-size: 16px;

    z-index: 20;
}

/* =====================================================
   BARRA FIJA
===================================================== */

.fixed-nav {
    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;

    opacity: 0;

    pointer-events: none;
    border: none;

    transition: opacity 0.2s ease;
}

body.scrolled .fixed-nav {
    opacity: 1;
    pointer-events: auto;
}

.nav-description {
    margin-left: auto;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: -0.02em;

    opacity: 0.6;

    color: #000;
}

/* =====================================================
   PROJECTS
===================================================== */

.projects {
    background: #F9F8F5;
    border-top: none;

    padding-top: 4px;
}

.section-header {
    height: 90px;
    padding: 0 35px;

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

    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 100px;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* =====================================================
   PROJECT
===================================================== */

.project {
    width: 100%;

    margin-bottom: 75px;

    opacity: 0;

    transform: translateY(100px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   IMAGEN
===================================================== */

.project-media {
    width: 100%;

    height: 100vh;

    overflow: hidden;

    background: #F9F8F5;
    border: none;
}

.project-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 1s ease;
}

.project-placeholder img {
    width: 70%;
    height: 70%;

    object-fit: contain;
    display: block;

    transition: opacity 0.8s ease;
}

/* =====================================================
   PLACEHOLDER
===================================================== */

.project-placeholder {
    position: relative;
    width: 100%;
    height: 100%;

    display: flex;

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

    background: #F9F8F5;
    border: none;
    outline: none;
    box-shadow: none;

    transform: scale(1.02);
    transition: none;
}

/* =====================================================
   PROJECT HOVER
===================================================== */

.project-placeholder img {
    width: 70%;
    height: 70%;

    object-fit: cover;
    display: block;

    transition: opacity 0.8s ease;
}

.project-video {
    width: 140%;
    height: 140%;
    position: relative;
    left: 500px;
    top:-80px;

    object-fit: cover;
    display: block;

    transition: opacity 0.8s ease;
}

.project-link[href="proyecto-2.html"] video {
    width: 100%;
    height: 100%;

    position: relative;

    left: 0px;

    transform: translateY(40px);

    object-fit: contain;

    display: block;

    border: none;
    outline: none;
}

.project-link[href="proyecto-3.html"] video {
    width: 140%;
    height: 140%;
    position: relative;
    left: -300px;
    top: 20;
    object-fit: contain;
}


.project-link[href="proyecto-4.html"] video {
    width: 100%;
    height: 100%;
    position: relative;
    left: -20px;
    transform: translateY(50px);
    object-fit: contain;
    display: block;
    border: none;
    outline: none;
}

/* CAPA NEGRA TRANSLÚCIDA */

.project-hover {
    position: absolute;
    inset: 0;

    z-index: 2;

    background: transparent;

    opacity: 0;

    color: #000;

    transition: opacity 0.8s ease;

    pointer-events: none;
}

/* AL PASAR EL RATÓN */

.project-placeholder:hover .project-hover {
    opacity: 1;
}


/* =====================================================
   INFORMACIÓN DEL PROYECTO
===================================================== */

.project-hover-title {
    position: absolute;

    top: 35px;
    left: 49px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 20px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.03em;

}

.project-hover-info {
    position: absolute;

    top: 60px;
    left: 49px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.project-hover-info strong {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -0.02em;
}

.project-hover-info span {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;

    letter-spacing: -0.02em;

    opacity: 0.6;
}

/* =====================================================
   INFO PROJECT
===================================================== */

.project-info {
    display: none;
}

.project-info h2 {
    font-size: 18px;

    font-weight: normal;

    margin-bottom: 5px;
}

.project-info p {
    display: none;
}

.project-info > span:last-child {
    text-align: right;
}

/* =====================================================
   ABOUT
===================================================== */

.about {
    width: 100%;
    min-height: 100vh;

    background: #F9F8F5;

    padding: 0 35px;

    display: flex;
    flex-direction: column;
}


/* IMAGEN ABOUT */

.about-image {
    display: block;

    width: auto;
    height: calc(100vh - 110px);

    max-width: 100%;

    object-fit: contain;

    margin: 0 auto;
    transform: translateY(-35px);
}


/* =====================================================
   CONTACT
===================================================== */

.contact .section-header {
    margin-bottom: 3;
    padding-top: 120px;

}

.contact-main {
    padding: 7vw 6vw 0;
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 11.5vw;
    line-height: 0.82;
    letter-spacing: -0.07em;
    font-weight: normal;
}

.contact-info {
    margin-top: 80px;
    margin-bottom: 30px;

    display: flex;
    gap: 100px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.45;
}

.contact-block a {
    font-size: 18px;
    border-bottom: 1px solid #000;
    width: fit-content;
}

.contact footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 15px 40px 0px;
    font-size: 14px;
    
}


/* =====================================================
   PORTADAS TIPOGRÁFICAS — PROJECTS
===================================================== */

.projects {
    padding: 0;
    background: #F9F8F5;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* CADA PROYECTO */

.project {
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    transition: none;
}

/* OCULTAR LOS VÍDEOS ANTIGUOS */

.project-media {
    display: none;
}

/* CONTENEDOR DE CADA TÍTULO */

.project-type-cover {
    position: relative;
    width: 100%;
    min-height: 42vh;
    padding: 45px 0 45px 9.5vw;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    background: #F9F8F5;
}

/* TÍTULOS PRINCIPALES — TIPOGRAFÍA ORIGINAL */

.project-type-cover h2 {
    margin: 0;

    font-family: "obviously", sans-serif !important;
    font-size: clamp(90px, 13.5vw, 210px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.075em;

    color: #EAEAEA;

    transition: color 0.3s ease;
}

/* AJUSTE DE ANCHURA DE PUBLICIDAD Y BRANDING */

.project-link[href="proyecto-3.html"] .project-type-cover h2 {
    transform: scaleX(0.80);
    transform-origin: left center;
}

.project-link[href="proyecto-4.html"] .project-type-cover h2 {
    transform: scaleX(0.90);
    transform-origin: left center;
    letter-spacing: -0.045em;
}

/* AL PASAR EL RATÓN, EL TÍTULO SE PONE NEGRO */

.project-link:hover .project-type-cover h2 {
    color: #000;
}

/* SUBTÍTULOS — TIPOGRAFÍA LIGHT */

.project-type-cover p {
    margin: 45px 0 0 11px;
    padding: 0;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.025em;

    color: #000;
}

/* NÚMEROS DE PROYECTO */

.cover-number {
    position: absolute;
    top: 25px;
    right: 4.5vw;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;

    color: #BDBDBD;
}

/* IMÁGENES DE PREVISUALIZACIÓN */

.project-preview {
    position: absolute;
    left: 76vw;
    top: 50%;
    transform: translateY(-50%);

    width: 13vw;
    height: 13vw;

    object-fit: cover;
    border-radius: 12px;

    filter: none;
}


/* DIGITAL — MISMO TAMAÑO Y ALINEACIÓN QUE LAS DEMÁS */

.project-link[href="proyecto-2.html"] .project-preview {
    position: absolute;
    width: 13vw;
    height: 13vw;
    left: 76vw;
    top: 50%;
    object-fit: cover;
    object-position: center;
    transform: translateY(-50%);
}


/* MÓVIL */

@media (max-width: 700px) {

    .project-type-cover {
        min-height: 30vh;
        padding: 35px 20px;
    }

    .project-type-cover h2 {
        font-size: 14vw;
        line-height: 0.9;
    }

    .project-type-cover p {
        margin-top: 16px;
        font-size: 14px;
    }

    .cover-number {
        top: 12px;
        right: 20px;
        font-size: 11px;
    }

}

/* ESPACIO ENTRE PROJECTS Y ABOUT */

.about {
    margin-top: 120px;
}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 700px) {

    /* HELENA */

    .hero-name {
        font-size: 29vw;

        top: 20px;
        left: 20px;
    }

        .project-preview {
        display: none;
    }

    .project-link[href="proyecto-3.html"] .project-type-cover h2 {
        transform: none;
    }

    body.scrolled .hero-name {
        top: 23px;
        left: 20px;

        font-size: 18px;
    }


    /* PRESENTACIÓN */

    .hero-intro {
        top: 390px;

        left: 20px;
        right: 20px;

        width: auto;
    }

    .hero-intro p {
        font-size: 22px;
    }

    .hero-intro a {
        font-size: 22px;
    }


    /* FOOTER */

    .hero-footer {
        left: 20px;
        right: 20px;

        font-size: 12px;
    }


    /* BARRA */

    .fixed-nav {
        height: 60px;

        padding: 0 20px;
    }

    .nav-description {
        display: none;
    }


    /* SECCIONES */

    .section-header {
        padding: 0 20px;
    }


    /* PROJECTS */

    .project-media {
        height: 70vh;
    }

    .project-info {
        padding: 15px 20px;
    }

    /* ABOUT */

.about {
    min-height: 100vh;
    padding: 0 20px;
}

.about-title {
    height: 70px;
    padding: 0;

    margin-bottom: 0;

    font-size: 12px;
}

.about-image {
    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

    /* CONTACT */

.contact {
    padding-top: 70px;
}

.contact-main {
    padding: 50px 20px 70px;
}

.contact-title {
    font-size: 17vw;
    line-height: 0.85;
}

.contact-info {
    margin-top: 60px;

    display: flex;
    flex-direction: column;

    gap: 30px;
}

.contact-label {
    font-size: 11px;
}

.contact-block a {
    font-size: 16px;
}

.contact footer {
    padding: 20px;
    font-size: 11px;
}
