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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #ebe7e0;
    color: #1b1b1a;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

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


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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    z-index: 1000;
    transition: background .5s ease, color .5s ease, backdrop-filter .5s ease;
}

header.scrolled {
    color: #1b1b1a;
    background: rgba(235,231,224,.90);
    backdrop-filter: blur(18px);
}

.logo {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    position: relative;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu {
    display: none;
    width: 32px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    margin: 7px 0;
}


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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background: url("../img/cabecera.jpg") center / cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,8,.82), rgba(8,8,8,.38) 55%, rgba(8,8,8,.10));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 9vw;
    max-width: 780px;
}

.small-title {
    margin-bottom: 28px;
    font-size: 10px;
    letter-spacing: 5px;
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(80px, 13vw, 185px);
    font-weight: 300;
    line-height: .76;
    letter-spacing: -4px;
    margin-bottom: 55px;
}

.hero-description {
    max-width: 480px;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 35px;
}


/* =========================================================
   BOTONES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 25px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 100px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.btn:hover {
    background: white;
    color: #171717;
    transform: translateY(-2px);
}

.btn-dark {
    border-color: rgba(0,0,0,.25);
}

.btn-dark:hover {
    background: #1b1b1a;
    color: white;
}


/* =========================================================
   SCROLL
========================================================= */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    font-size: 8px;
    letter-spacing: 4px;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    margin: 10px auto 0;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* =========================================================
   ORDENAR LO QUE NO SE ENTIENDE
========================================================= */

.intro {
    padding: 150px 7vw;
}

.intro-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8vw;
}

.intro-text {
    max-width: 650px;
}

.intro h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(60px, 8vw, 110px);
    font-weight: 300;
    line-height: .82;
    letter-spacing: -3px;
    margin-bottom: 45px;
}

.intro-description {
    max-width: 520px;
    font-size: 13px;
    line-height: 2;
}

.intro-image {
    width: 100%;
    height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: url("../img/que_ago.jpg") center / cover;
    transform: translateY(20px);
}


/* =========================================================
   SOBRE MÍ — estética diferenciada
   Panel con tono propio, imagen con tratamiento distinto
   (duotono) y orden invertido frente al resto de bloques
   de dos columnas, para que se lea como una pausa personal
   entre las secciones a sangre.
========================================================= */

.split.about {
    background: #e2dccf;
    padding: 8vw 7vw;
}

.split.about .split-content {
    order: 2;
}

.split.about .split-image {
    order: 1;
    position: relative;
    border-radius: 12px;
}

.split.about .split-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28,26,22,.15), rgba(28,26,22,.45));
    mix-blend-mode: multiply;
}


/* =========================================================
   SOBRE MÍ / CÓMO TRABAJO — estructura común de dos columnas
========================================================= */

.split {
    min-height: 90vh;
    padding: 8vw 7vw;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 7vw;
    align-items: center;
}

.split-image {
    height: 680px;
    border-radius: 30px;
    overflow: hidden;
    background: url("../img/sobre_mi.jpg") center / cover;
}

/* Cómo trabajo: imagen propia, ya no inline, con separación
   clara respecto a la sección anterior para que no queden
   pegadas ni una se lea "encima" de la otra */
.split.proceso {
    padding-top: 11vw;
}

.split.proceso .split-image {
    background-image: url("..//img/como_trabajo.jpeg");
}

.split-content {
    max-width: 650px;
}

.split-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(65px, 9vw, 125px);
    font-weight: 300;
    line-height: .78;
    letter-spacing: -3px;
    margin-bottom: 45px;
}

.split-content p {
    max-width: 530px;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 23px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.tags span {
    padding: 9px 15px;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 100px;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================================
   TRABAJO / ARTE — a sangre completa (max-width real)
   Sin margen ni radio: ocupan el ancho total de la ventana,
   igual que el hero, en vez de leerse como una tarjeta
   flotante. Es lo que las distingue de "Sobre mí".
========================================================= */

.feature-section {
    position: relative;
    min-height: 90vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.feature-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.feature-section:hover .feature-background {
    transform: scale(1.05);
}

.feature-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.20));
}

.feature-section.right {
    justify-content: flex-end;
}

.feature-section.right::after {
    background: linear-gradient(270deg, rgba(0,0,0,.80), rgba(0,0,0,.20));
}

.feature-content {
    position: relative;
    z-index: 2;
    margin-left: 8vw;
    max-width: 570px;
}

.feature-section.right .feature-content {
    margin-left: 0;
    margin-right: 8vw;
}

.category {
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: 4px;
}

.feature-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(70px, 11vw, 150px);
    font-weight: 300;
    line-height: .76;
    letter-spacing: -3px;
    margin-bottom: 40px;
}

.feature-description {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 35px;
}

.feature-list li {
    padding-left: 20px;
    position: relative;
    font-size: 11px;
    line-height: 2.2;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.trabajo .feature-background {
    background-image: url("../img/trabajo.jpg");
}

.arte .feature-background {
    background-image: url("../img/arte.jpg");
}


/* =========================================================
   SELECCIÓN RECIENTE
========================================================= */

.gallery-section {
    padding: 150px 7vw;
}

.gallery-header {
    max-width: 1250px;
    margin: 0 auto 65px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.gallery-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(55px, 8vw, 105px);
    font-weight: 300;
    line-height: .82;
    letter-spacing: -3px;
}

.gallery-header p {
    max-width: 350px;
    font-size: 12px;
    line-height: 1.9;
}

.gallery {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-auto-rows: 330px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    background: #d7d2ca;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(.72);
}

.gallery-item::after {
    content: "+";
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: white;
    font-size: 25px;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}


/* =========================================================
   CONTACTO — reestructurado
   Titular reducido (antes clamp 75–175px, desproporcionado
   frente al resto del sitio) y contenido repartido en dos
   columnas: mensaje a la izquierda, vías de contacto a la
   derecha, en vez de un único bloque centrado gigante.
========================================================= */

.contact {
    min-height: 65vh;
    margin: 5vw;
    border-radius: 32px;
    padding: 90px 7vw;
    display: flex;
    align-items: center;
    color: white;
    background: radial-gradient(circle at center, #363633, #111);
}

.contact-content {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 6vw;
    align-items: center;
}

.contact h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 300;
    line-height: .84;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.contact-description {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.email {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 3.4vw, 42px);
    border-bottom: 1px solid rgba(255,255,255,.4);
    transition: opacity .3s;
}

.email:hover {
    opacity: .55;
}

.contact-secondary {
    display: flex;
    gap: 22px;
}

.contact-secondary a {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .75;
    transition: opacity .3s;
}

.contact-secondary a:hover {
    opacity: 1;
}


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

footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 5vw;
    background: #111;
    color: #888;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================================
   ANIMACIONES
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}

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


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    width: auto;
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 14px;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    z-index: 2;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 50px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
}

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }


/* =========================================================
   TABLET
========================================================= */

@media(max-width: 900px) {

    nav { gap: 17px; }

    .intro-container { grid-template-columns: 1fr; }
    .intro-image { height: 500px; }

    .split { grid-template-columns: 1fr; }
    .split-image { height: 600px; }

    .split.about .split-content,
    .split.about .split-image { order: 0; }

    .split.proceso { padding-top: 8vw; }

    .gallery { grid-template-columns: repeat(2,1fr); }

    .contact-content { grid-template-columns: 1fr; gap: 45px; }
    .contact-links { align-items: flex-start; }

}


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

@media(max-width: 700px) {

    header { height: 70px; padding: 0 25px; }

    .menu { display: block; }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 35px 25px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        background: #ebe7e0;
        color: #222;
        transform: translateY(-130%);
        transition: transform .4s ease;
    }

    nav.open { transform: translateY(0); }

    nav a { font-size: 10px; }

    .hero-content { margin: 0 25px; }
    .hero h1 { font-size: 76px; letter-spacing: -2px; }

    .intro { padding: 100px 25px; }
    .intro h2 { font-size: 58px; }
    .intro-image { height: 430px; border-radius: 22px; }

    .split { padding: 70px 25px; gap: 50px; }
    .split-image { height: 480px; border-radius: 24px; }
    .split-content h2 { font-size: 70px; }
    .split.about { padding: 70px 25px; }
    .split.proceso { padding-top: 70px; }

    .feature-section { min-height: 700px; margin: 0; border-radius: 0; }

    .feature-content,
    .feature-section.right .feature-content {
        margin-left: 25px;
        margin-right: 25px;
    }

    .feature-content h2 { font-size: 68px; }

    .gallery-section { padding: 100px 20px; }

    .gallery-header { display: block; margin-bottom: 45px; }
    .gallery-header h2 { font-size: 55px; margin-bottom: 30px; }

    .gallery { grid-template-columns: 1fr; grid-auto-rows: 420px; }
    .gallery-item.large { grid-row: span 1; }
    .gallery-item { border-radius: 20px; }

    .contact { min-height: auto; margin: 20px; border-radius: 25px; padding: 60px 25px; }
    .contact h2 { font-size: 52px; }
    .email { font-size: 24px; }

    footer { flex-direction: column; gap: 15px; padding: 25px; }

}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media(prefers-reduced-motion: reduce) {

    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}



/* =========================================================
   EFECTOS AL HACER SCROLL + BOTONES CON CONTRASTE
   (bloque añadido; va al final para sobrescribir lo anterior)
========================================================= */

/* Barra de progreso (la crea site.js) */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c9a96e;
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 1500;
    pointer-events: none;
}

/* Cabecera: se esconde al bajar y reaparece al subir */
header {
    transition: background .5s ease, color .5s ease,
                backdrop-filter .5s ease,
                transform .6s cubic-bezier(.2,.7,.2,1);
}

header.hide {
    transform: translateY(-100%);
}

/* Enlace activo del menú según la sección visible */
nav a.active::after {
    width: 100%;
}

/* Parallax: portada y secciones a sangre */
.hero-content {
    translate: 0 calc(var(--py, 0px) * 2);
}

.scroll-indicator {
    opacity: var(--fade, 1);
}

.feature-background,
.art-background {
    inset: -8% 0;
    transform: none;
    translate: 0 var(--py, 0px);
    scale: var(--s, 1);
    will-change: translate;
    transition: scale 1.4s cubic-bezier(.2,.7,.2,1);
}

.feature-section:hover,
.art-section:hover {
    --s: 1.06;
}

.feature-section:hover .feature-background,
.art-section:hover .art-background {
    transform: none;
}

/* Aparición escalonada */
.reveal {
    transition-delay: var(--d, 0s);
}

/* Imágenes de galería: entran subiendo, con zoom que se asienta */
.gallery-item.reveal {
    transform: translateY(60px) scale(.94);
}

.gallery-item.reveal.visible {
    transform: none;
}

.gallery-item img {
    scale: 1.18;
    transition: transform .9s cubic-bezier(.2,.7,.2,1),
                filter .5s ease,
                scale 1.6s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}

.gallery-item.visible img {
    scale: 1;
}

/* Imágenes grandes de dos columnas: se "abren" con un recorte */
.reveal-img {
    clip-path: inset(10% 8% 10% 8% round 30px);
    transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1);
}

.reveal-img.visible {
    clip-path: inset(0 round 0);
}

/* Botones: contraste claro al pasar el ratón */
.btn:hover,
.btn:focus-visible {
    background: #fff;
    color: #111;
    border-color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.email {
    padding: 2px 10px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.email:hover,
.email:focus-visible {
    opacity: 1;
    background: #fff;
    color: #111;
    border-color: #fff;
    border-radius: 6px;
}

.contact-secondary a,
.social a {
    padding: 11px 20px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 100px;
    opacity: 1;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.contact-secondary a:hover,
.social a:hover,
.contact-secondary a:focus-visible,
.social a:focus-visible {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.tags span {
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.tags span:hover {
    background: #1b1b1a;
    color: #fff;
    border-color: #1b1b1a;
}

/* Footer (igual en ambas páginas) */
footer {
    background: #111;
    color: #aaa;
    padding: 25px 5vw;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer a {
    transition: color .3s ease;
}

footer a:hover {
    color: #fff;
}

/* Lightbox: imagen grande con entrada suave y botones con contraste */
.lightbox-image {
    border-radius: 14px;
    transform: scale(.94);
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox .lightbox-close,
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
    line-height: 1;
    transition: background .3s ease, color .3s ease;
}

.lightbox .lightbox-close:hover,
.lightbox .lightbox-prev:hover,
.lightbox .lightbox-next:hover,
.lightbox .lightbox-close:focus-visible,
.lightbox .lightbox-prev:focus-visible,
.lightbox .lightbox-next:focus-visible {
    background: #fff;
    color: #111;
}

/* Portada con parallax (la imagen pasa a ::after) */
.hero {
    background: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -9% 0;
    background: url("../img/cabecera.jpg") center / cover;
    translate: 0 var(--py, 0px);
    will-change: translate;
    z-index: 0;
}


/* =========================================================
   AJUSTES: CONTACTO Y FOOTER IGUAL QUE EN LA PÁGINA ARTE
   (bloque oscuro a todo el ancho, centrado, pegado al footer)
========================================================= */

.contact {
    min-height: 90vh;
    margin: 0;
    border-radius: 0;
    padding: 100px 20px;
    background: #1d1d1b;
    justify-content: center;
    text-align: center;
}

.contact-content {
    display: block;
    max-width: 800px;
}

.contact h2 {
    font-size: clamp(90px, 13vw, 175px);
    line-height: .8;
    margin-bottom: 40px;
}

.contact-description {
    max-width: 500px;
    margin: 0 auto 40px;
    font-size: 14px;
    line-height: 1.9;
}

.contact-links {
    align-items: center;
}

.contact-secondary {
    justify-content: center;
}

footer {
    background: #111;
    color: #aaa;
    padding: 25px 5vw;
    font-size: 9px;
}

@media(max-width: 700px) {
    .contact { min-height: auto; margin: 0; border-radius: 0; padding: 80px 25px; }
    .contact h2 { font-size: 85px; }
}
