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

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

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

body {
    width: 100%;
    margin: 0;
    background: #F9F8F5;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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


/* =====================================================
   HEADER
===================================================== */

.project-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 35px;

    display: flex;
    align-items: center;

    background: #F9F8F5;
    z-index: 100;
}

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

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

    color: #000;
    white-space: nowrap;
}

.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;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}

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

.project-header-description {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.6;
    white-space: nowrap;
}


/* =====================================================
   INTRODUCCIÓN — BRISA DESIGN
===================================================== */

.project-intro {
    min-height: 100vh;
    padding: 110px 2vw 100px;
}

.project-title {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 75px;

    font-family: "obviously", sans-serif !important;
    font-size: 11vw;
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.06em;
    white-space: nowrap;
}


.project-text-left {
    position: relative;
    left: 10px;
    width: 59.5%;
}

.project-text-left p {
    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;

    text-align: justify;
    text-justify: auto;
    word-spacing: -0.04em;

    hyphens: auto;
    -webkit-hyphens: auto;
}

.project-text-right {
    position: relative;
    left: -50px;
    width: 50%;
    margin-left: auto;
    margin-top: 80px;
}

/* =====================================================
   GALERÍA — BRISA DESIGN
===================================================== */

.brisa-gallery {
    width: 100%;
    padding: 0 35px 25px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.brisa-image {
    width: 100%;
    min-width: 0;
}

.brisa-image-wide {
    grid-column: 1 / -1;
    width: 100%;
}

.brisa-gallery img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =====================================================
   SEGUNDA SECCIÓN — IMAGEN CENTRAL
===================================================== */

.brisa-mockups {
    width: 100%;
    min-height: auto;
    padding: 25px 5% 40px;

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

    transform: translateY(-5px);
}

.brisa-mockup-central {
    display: block;
    width: 159%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}


/* ACERCAR MOCKUP AL VÍDEO — SOLO MÓVIL */

@media (max-width: 700px) {
    .brisa-mockups {
        min-height: auto;
        padding: 0px 15px 60px;
        margin-top: 10px;
    }

    .brisa-mockup-central {
        width: 100%;
        max-width: none;
    }
}


/* =====================================================
   READ MORE — BRISA DESIGN
===================================================== */

.project-intro .read-more {
    display: inline-block;
    margin-top: 18px;
    margin-left: 10px;
    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-intro .read-more:hover {
    opacity: 0.6;
}

/* MANTENER OCULTO EL TEXTO */

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

/* APARICIÓN SIN DESPLAZAMIENTO */

.project-intro .project-text-right.is-open {
    animation: brisaReadMore 0.45s ease;
}

@keyframes brisaReadMore {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ESPACIO INFERIOR DE LA INTRODUCCIÓN */

.project-intro {
    min-height: auto;
    padding-bottom: 80px;
}

/* MÓVIL */

@media (max-width: 700px) {
    .project-intro .read-more {
        font-size: 22px;
        margin-top: 14px;
    }

    .project-intro {
        padding-bottom: 60px;
    }
}


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


.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 25px 35px 40px;
    margin: 0;

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


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

@media (max-width: 700px) {

    .project-header {
        height: 60px;
        padding: 0 20px;
    }

    .project-logo {
        font-size: 18px;
        top: 5px;
    }

    .project-nav {
        gap: 15px;
        margin-left: 20px;
    }

    .project-nav a {
        font-size: 12px;
    }

    .project-header-description {
        display: none;
    }

    .project-intro {
        min-height: auto;
        padding: 100px 20px 60px;
    }

    .project-title {
        width: 100%;
        margin-top: 75px;
        margin-bottom: 60px;
        font-size: 15vw;
    }

    .project-text-left {
        left: 0;
        width: 100%;
    }

    .project-text-left p {
        font-size: 22px;
    }

    .project-text-right {
        left: 0;
        width: 85%;
        margin-left: auto;
        margin-top: 60px;
    }


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


    .project-text-right p {
        font-size: 15px;
    }

    .brisa-gallery {
        padding: 0 4.3vw 25px;
        gap: 8px;
    }

}


/* =====================================================
   READ MORE — CARRUSEL + TEXTO
===================================================== */

.project-intro .project-text-right {
    position: relative;
    left: 0;
    width: 100%;
    margin: 55px 0 0;
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5vw;
}

/* CARRUSEL IZQUIERDO */

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

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

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

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

/* CONTROLES */

.brisa-carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 5px;
    padding-left: 0;
    transform: translateY(-60px);
}

.brisa-counter {
    font-size: 14px;
    opacity: 0.5;
    margin-left: 10px;
}

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

.brisa-arrows button {
    width: 42px;
    height: 42px;
    border: 1px solid #000;
    border-radius: 50%;
    background: transparent;
    color: #000;
    font-size: 20px;
    cursor: pointer;
}

/* TEXTO DERECHO */

.brisa-detail-text {
    width: 100%;
    align-self: center;
    transform: none;
    padding-right: 2.3vw;
}

.brisa-detail-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;
    text-justify: inter-word;
    word-spacing: -0.04em;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: normal;
    margin-bottom: 22px;
}
.brisa-detail-text p:last-child {
    margin-bottom: 0;
}

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

body,
body * {
    cursor: none;
}

#mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

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

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

/* =====================================================
   VÍDEO — BRISA DESIGN
===================================================== */

.brisa-video-section {
    width: 100%;
    padding: 0 4.3vw 10px 2vw;
    box-sizing: border-box;
    margin: 90px 0 0;
    overflow: hidden;
}

.brisa-video {
    display: block;
    width: 100%;
    height: 520px;
    margin: 0;
    object-fit: cover;
    object-position: center;

    transform: translateX(-20px);
}

/* REDUCIR ESPACIO CUANDO READ MORE ESTÁ ABIERTO */

.project-intro:has(.project-text-right:not([hidden])) {
    padding-bottom: 30px;
}

@media (max-width: 700px) {
    .brisa-video-section {
        padding: 0 12px 10px;
        margin-top: 40px;
    }

    .brisa-video {
        height: 300px;
    }
}



/* =====================================================
   MENU HAMBURGUESA — PROYECTO 4
===================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 30px;
    height: 30px;

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

    z-index: 102;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1.5px;
    background: #000;

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

/* ANIMACIÓN AL ABRIR */

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* =====================================================
   MENÚ MÓVIL
===================================================== */

@media (max-width: 700px) {

    .project-header {
        height: 60px;
        padding: 0 20px;
    }

    .project-logo {
        font-size: 18px;
        top: 5px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .project-nav {
        position: absolute;
        top: 60px;
        left: 0;

        width: 100%;
        margin: 0;
        padding: 30px 20px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;

        background: #F9F8F5;

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

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

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

    .project-nav a {
        font-size: 18px;
    }

    .project-header-description {
        display: none;
    }

}