
/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #eeeae3;
    color: #222;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
}

body.no-scroll {
    overflow: hidden;
}

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

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


/* =========================================================
   CABECERA
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    padding: 0 5vw;

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

    z-index: 1000;

    color: white;

    transition: all .4s ease;
}

header.scrolled {
    background: rgba(238,234,227,.96);
    color: #222;

    backdrop-filter: blur(12px);
}

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

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

nav a {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;

    position: relative;
}

nav a:after {
    content: "";

    position: absolute;
    bottom: -8px;
    left: 0;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width .3s ease;
}

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


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

.menu {
    display: none;

    width: 35px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu span {
    display: block;

    width: 100%;
    height: 1px;

    background: currentColor;

    margin: 7px 0;

    transition: .3s;
}


/* =========================================================
   PORTADA
========================================================= */

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

    position: relative;

    display: flex;
    align-items: center;

    color: white;

    background-image:
        url("../img/Arte/cabecera-art.jpeg");

    background-size: cover;
    background-position: center;
}

.hero:after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72),
            rgba(0,0,0,.15)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    margin-left: 9vw;

    max-width: 750px;
}

.small-title {
    font-size: 10px;
    letter-spacing: 4px;

    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(80px, 12vw, 175px);

    font-weight: 300;

    line-height: .78;

    margin-bottom: 50px;
}

.hero-description {
    max-width: 460px;

    font-size: 14px;

    line-height: 1.9;

    margin-bottom: 35px;
}


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

.btn {
    display: inline-block;

    border: 1px solid rgba(255,255,255,.7);

    padding: 15px 28px;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition: all .3s ease;
}

.btn:hover {
    background: white;
    color: #222;
}


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

.scroll-indicator {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 2;

    font-size: 9px;

    letter-spacing: 3px;

    text-align: center;
}

.scroll-line {
    display: block;

    width: 1px;
    height: 50px;

    margin: 10px auto 0;

    background: white;

    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {

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

}


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

.intro {
    padding: 170px 10vw;
}

.intro-container {
    max-width: 900px;
    margin: auto;
}

.number {
    display: block;

    font-size: 10px;

    letter-spacing: 3px;

    opacity: .55;

    margin-bottom: 25px;
}

.intro h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(60px, 8vw, 105px);

    font-weight: 300;

    line-height: .9;

    margin-bottom: 50px;
}

.intro-description {
    max-width: 550px;

    margin-left: 20%;

    font-size: 14px;

    line-height: 2;
}


/* =========================================================
   SECCIONES PRINCIPALES
========================================================= */

.art-section {
    height: 100vh;
    min-height: 650px;

    position: relative;

    display: flex;
    align-items: center;

    color: white;

    overflow: hidden;
}

.art-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: transform 1.2s ease;
}

.art-section:hover .art-background {
    transform: scale(1.04);
}

.art-section:after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72),
            rgba(0,0,0,.10)
        );
}

.art-content {
    position: relative;

    z-index: 2;

    margin-left: 10vw;

    max-width: 650px;
}

.category {
    font-size: 10px;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.art-content h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(80px, 11vw, 160px);

    line-height: .78;

    font-weight: 300;

    margin-bottom: 40px;
}

.art-description {
    max-width: 430px;

    font-size: 14px;

    line-height: 1.9;

    margin-bottom: 35px;
}


/* =========================================================
   FONDOS DE CADA SECCIÓN
========================================================= */

/*
   Puedes cambiar estas imágenes por las tuyas.

   Ejemplo:
   background-image: url("mi-acuarela.jpg");
*/

.acuarelas .art-background {

    background-image:
        url("../img/Arte/acuarelas.jpg");

}

.carboncillo .art-background {

    background-image:
        url("../img/Arte/carbonclillos.jpg");

}

.barro .art-background {

    background-image:
        url("https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=2000&q=85");

}


/* =========================================================
   GALERÍAS
========================================================= */

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

.gallery-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 80px;
}

.gallery-header h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 7vw, 100px);

    line-height: .9;

    font-weight: 300;
}

.gallery-header p {
    max-width: 350px;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   CUADRÍCULA
========================================================= */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 350px;

    gap: 20px;
}

.gallery-item {
    overflow: hidden;

    cursor: pointer;

    background: #ddd;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s ease,
        filter .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);

    filter: brightness(.75);
}


/* =========================================================
   SOBRE MÍ
========================================================= */

.about {
    min-height: 100vh;

    display: grid;

    grid-template-columns: 1fr 1fr;
}

.about-image {
    min-height: 650px;

    background-image:
        url("https://images.unsplash.com/photo-1610701596061-2ecf227e85b2?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;
    background-position: center;
}

.about-content {
    padding: 10vw 8vw;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(70px, 9vw, 120px);

    font-weight: 300;

    line-height: .85;

    margin-bottom: 45px;
}

.about-content p {
    max-width: 500px;

    font-size: 14px;

    line-height: 2;

    margin-bottom: 25px;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact {
    min-height: 90vh;

    background: #1d1d1b;

    color: white;

    display: flex;

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

    text-align: center;

    padding: 100px 20px;
}

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

.contact h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(90px, 13vw, 175px);

    font-weight: 300;

    line-height: .8;

    margin-bottom: 40px;
}

.contact-description {
    max-width: 500px;

    margin: auto auto 40px;

    font-size: 14px;

    line-height: 1.9;
}

.email {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(30px, 5vw, 60px);

    border-bottom: 1px solid rgba(255,255,255,.4);

    transition: opacity .3s;
}

.email:hover {
    opacity: .6;
}

.social {
    margin-top: 60px;

    display: flex;

    justify-content: center;

    gap: 35px;
}

.social a {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


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

footer {
    background: #111;

    color: #aaa;

    padding: 25px 5vw;

    display: flex;

    justify-content: space-between;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


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

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity .9s ease,
        transform .9s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


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

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 2000;

    background: rgba(10,10,10,.96);

    display: flex;

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

    opacity: 0;

    pointer-events: none;

    transition: opacity .3s ease;
}

.lightbox.active {
    opacity: 1;

    pointer-events: auto;
}

.lightbox-image {
    width: auto;

    max-width: 85vw;
    max-height: 85vh;

    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    background: none;

    border: 0;

    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: 15px;
    }

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

    .about {
        grid-template-columns: 1fr;
    }

}


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

        background: #eeeae3;

        color: #222;

        flex-direction: column;

        gap: 25px;

        transform: translateY(-130%);

        transition: transform .4s ease;
    }

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

    nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        margin-left: 25px;
        margin-right: 25px;
    }

    .hero h1 {
        font-size: 80px;
    }

    .intro {
        padding: 100px 25px;
    }

    .intro h2 {
        font-size: 60px;
    }

    .intro-description {
        margin-left: 0;
    }

    .art-content {
        margin-left: 25px;
        margin-right: 25px;
    }

    .art-content h2 {
        font-size: 80px;
    }

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

    .gallery-header {
        display: block;

        margin-bottom: 50px;
    }

    .gallery-header h2 {
        font-size: 60px;

        margin-bottom: 30px;
    }

    .gallery {
        grid-template-columns: 1fr;

        grid-auto-rows: 450px;
    }

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

    .about-content {
        padding: 80px 25px;
    }

    .contact h2 {
        font-size: 85px;
    }

    .email {
        font-size: 30px;
    }

    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 :before) */
.hero {
    background: none;
    overflow: hidden;
}

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

.hero:after {
    z-index: 1;
}

/* Galerías: imágenes redondeadas y grandes, como en el index */
.gallery-header {
    max-width: 1250px;
    margin: 0 auto 65px;
}

.gallery {
    max-width: 1250px;
    margin: 0 auto;
    grid-template-columns: 1.2fr .8fr;
    grid-auto-rows: 340px;
    gap: 18px;
}

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

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

.gallery.flip {
    grid-template-columns: .8fr 1.2fr;
}

.gallery.flip .gallery-item.large {
    grid-column: 2;
}

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

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

/* Sobre mí: imagen redondeada dentro de la página */
.about {
    min-height: auto;
    padding: 8vw 7vw;
    gap: 7vw;
    align-items: center;
    grid-template-columns: .95fr 1.05fr;
}

.about-image {
    height: 680px;
    min-height: 0;
    border-radius: 30px;
}

.about-content {
    padding: 0;
}

@media(max-width: 900px) {
    .about { grid-template-columns: 1fr; }
    .about-image { height: 600px; }
}

@media(max-width: 700px) {
    .gallery,
    .gallery.flip {
        grid-template-columns: 1fr;
        grid-auto-rows: 420px;
    }

    .gallery-item.large,
    .gallery.flip .gallery-item.large {
        grid-column: auto;
        grid-row: span 1;
    }

    .gallery-item { border-radius: 20px; }

    .about { padding: 70px 25px; gap: 50px; }
    .about-image { height: 480px; border-radius: 24px; }
}


/* =========================================================
   AJUSTES: BOTONES Y ESQUINAS IGUAL QUE EN INDEX_4
========================================================= */

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

.gallery-item {
    border-radius: 24px;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.gallery-item img {
    border-radius: inherit;
}

.about-image {
    border-radius: 30px;
    overflow: hidden;
}

.lightbox-image {
    border-radius: 14px;
}

@media(max-width: 700px) {
    .gallery-item { border-radius: 20px; }
}
