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

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

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

body {
    background: #F9F8F5;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

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

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


/* =====================================================
   INTRODUCCIÓN
===================================================== */

.project-intro {
    min-height: auto;
    padding: 110px 2vw 80px;
}


.project-title {
    width: 70%;

    margin-top: 15px;
    margin-bottom: 95px;

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


.project-text-left {
    width: 65%;
    margin-top: 0;
    position: relative;
    left: 10px;
}


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

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}


.project-text-right {
    width: 100%;
    margin: 55px 0 0;
    position: relative;
    left: 0;

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

    padding-left: 10px;
    padding-right: 10px;
}

.project-text-right .clarament-carousel {
    width: 100%;
    max-width: none;
    margin: 0;
}

.project-text-right .clarament-detail-text {
    width: 100%;
    transform: translateY(-24px);
}

.project-text-right .clarament-detail-text p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    max-width: 98%;
    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;
}

.project-text-right .clarament-detail-text p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   GALERÍA CLARAMENT
===================================================== */

.clarament-gallery {
    width: 100%;
    padding: 0 calc(2vw + 10px) 80px;
}

/* IMAGEN PRINCIPAL */

.clarament-hero {
    width: 100%;
    margin-bottom: 16px;
}

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

/* CUADRÍCULA: 3 + 3 */

.clarament-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.clarament-grid img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    align-self: start;
}
/* =====================================================
   COMPOSICIÓN FINAL
===================================================== */

 .project-editorial-gallery {
    min-height: auto;

    padding: 0 5vw 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5vw;

    margin-bottom: 0;
    transform: none;
}

.project-editorial-gallery {
    margin-bottom: -40px;
}

.project-editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-editorial-image-large {
    width: 60%;
}

.project-editorial-image-small {
    width: 30%;
}


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

/* =====================================================
   READ MORE — PROYECTO CLARAMENT
===================================================== */

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

/* DESPLEGAR SIN DESPLAZAR EL TEXTO */

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

@keyframes claramentReadMore {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =====================================================
   VÍDEO — WEB EN FUNCIONAMIENTO
===================================================== */

.clarament-video-section {
    width: 100%;
    padding: 50px 5vw 100px;
    background: #F9F8F5;
}

.clarament-video-container {
    width: 100%;
    max-width: 1500px;
    height: 75vh;
    margin: 0 auto;

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

    overflow: hidden;
}

.clarament-video {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #F9F8F5;
}


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

/* CARRUSEL PROCESO CLARAMENT */

.clarament-process {
    width: 100%;
    padding: 35px 35px 90px;
    background: #F9F8F5;
}

.clarament-carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.clarament-carousel-window {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

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

.clarament-counter {
    font-size: 12px;
    opacity: 0.5;
    margin-left: 10px;
}

.clarament-carousel-controls button {
    width: 36px;
    height: 36px;
    border: 1px solid #000;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}
