/* ================================================================
   SUSANA CICERO — Landing Page
   Diseño: Dark Gallery · Tipografía editorial · Motion design
   ================================================================ */

/* ----------------------------------------------------------------
   1. VARIABLES & RESET
   ---------------------------------------------------------------- */
:root {
    /* Paleta cálida oscura */
    --bg:          #09080a;
    --surface:     #121018;
    --surface-2:   #1b1820;
    --border:      rgba(255, 255, 255, 0.07);

    /* Acentos */
    --gold:        #c8a96c;
    --gold-light:  #e8cfa0;
    --gold-dim:    rgba(200, 169, 108, 0.2);
    --rose:        #9b5d7a;

    /* Texto */
    --text:        #ede8dc;
    --text-muted:  #6e6460;
    --text-dim:    rgba(237, 232, 220, 0.5);

    /* Tipografías */
    --serif:       'Cormorant Garamond', Georgia, serif;
    --sans:        'Montserrat', 'Helvetica Neue', sans-serif;

    /* Transiciones */
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (pointer: coarse) {
    body { cursor: auto; }
}

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

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

ul { list-style: none; }

button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}


/* ----------------------------------------------------------------
   1.5  INTRO ANIMATION — mosaico + logo + cortina
   ---------------------------------------------------------------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    overflow: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    animation: introExit 1.1s 2.95s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Glow ambiental detrás del mosaico */
.intro__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200, 169, 108, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(155, 93, 122, 0.08) 0%, transparent 70%);
    opacity: 0;
    animation: introBgIn 0.9s 0.1s ease-out forwards;
}

@keyframes introBgIn {
    to { opacity: 1; }
}

/* Mosaico — grid asimétrico de 6 obras */
.intro__mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: clamp(4px, 0.8vw, 10px);
    padding: clamp(4px, 0.8vw, 10px);
}

.intro__tile {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.55) translateY(20px);
    transform-origin: center;
    will-change: transform, opacity, filter;
    filter: blur(14px);
    border: 1px solid rgba(200, 169, 108, 0.0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.intro__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(15%) brightness(0.78) contrast(1.05);
}

/* Composición asimétrica — cinematográfica */
.intro__tile--1 { grid-column: 1 / 4; grid-row: 1 / 4; }
.intro__tile--2 { grid-column: 4 / 7; grid-row: 1 / 3; }
.intro__tile--3 { grid-column: 4 / 6; grid-row: 3 / 5; }
.intro__tile--4 { grid-column: 6 / 7; grid-row: 3 / 6; }
.intro__tile--5 { grid-column: 1 / 3; grid-row: 4 / 7; }
.intro__tile--6 { grid-column: 3 / 6; grid-row: 5 / 7; }

/* Stagger personalizado de entrada */
.intro__tile--1 { animation: introTileIn 1.0s 0.10s var(--ease) forwards, introTileOut 0.85s 1.85s var(--ease) forwards; }
.intro__tile--2 { animation: introTileIn 1.0s 0.22s var(--ease) forwards, introTileOut 0.85s 1.92s var(--ease) forwards; }
.intro__tile--3 { animation: introTileIn 1.0s 0.34s var(--ease) forwards, introTileOut 0.85s 1.98s var(--ease) forwards; }
.intro__tile--4 { animation: introTileIn 1.0s 0.46s var(--ease) forwards, introTileOut 0.85s 2.05s var(--ease) forwards; }
.intro__tile--5 { animation: introTileIn 1.0s 0.58s var(--ease) forwards, introTileOut 0.85s 1.88s var(--ease) forwards; }
.intro__tile--6 { animation: introTileIn 1.0s 0.40s var(--ease) forwards, introTileOut 0.85s 2.02s var(--ease) forwards; }

@keyframes introTileIn {
    0%   {
        opacity: 0;
        transform: scale(0.55) translateY(20px);
        filter: blur(14px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes introTileOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.18) translateY(-8px);
        filter: blur(8px);
    }
}

/* Capa central: logo + línea + tagline */
.intro__center {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.92);
    animation: introCenterIn 1.0s 1.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Flash dorado expansivo detrás del logo */
.intro__flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(160px, 24vw, 280px);
    height: clamp(160px, 24vw, 280px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 108, 0.55) 0%, rgba(200, 169, 108, 0.15) 35%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    filter: blur(8px);
    animation: introFlash 1.6s 2.0s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes introFlash {
    0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
    35%  { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

.intro__logo {
    height: clamp(72px, 13vw, 140px);
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-bottom: clamp(1rem, 2vw, 1.4rem);
    position: relative;
    z-index: 2;
}

.intro__line {
    width: 0;
    height: 1px;
    background: var(--gold);
    margin-bottom: clamp(0.7rem, 1.5vw, 1rem);
    animation: introLine 0.7s 2.45s var(--ease) forwards;
    position: relative;
    z-index: 2;
}

@keyframes introLine {
    to { width: clamp(70px, 14vw, 130px); }
}

.intro__tag {
    font-family: var(--sans);
    font-size: clamp(0.6rem, 1.3vw, 0.72rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transform: translateY(6px);
    animation: introTagIn 0.7s 2.65s ease-out forwards;
    position: relative;
    z-index: 2;
}

@keyframes introTagIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introCenterIn {
    0%   { opacity: 0; transform: scale(0.88); }
    60%  { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* Salida — zoom suave + fade (efecto "dolly forward") */
@keyframes introExit {
    0%   { opacity: 1; }
    100% { opacity: 1; }
}

.intro.is-exiting {
    transform: scale(1.08);
    opacity: 0;
    transition:
        transform 1.05s cubic-bezier(0.7, 0, 0.3, 1),
        opacity   0.75s 0.15s ease;
}

.intro.is-done {
    display: none;
}

/* Bloquear scroll mientras la animación corre */
body.intro-active {
    overflow: hidden;
    height: 100vh;
}

/* Mobile — mosaico más compacto */
@media (max-width: 640px) {
    .intro__mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
    .intro__tile--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
    .intro__tile--2 { grid-column: 3 / 5; grid-row: 1 / 3; }
    .intro__tile--3 { grid-column: 1 / 3; grid-row: 3 / 5; }
    .intro__tile--4 { grid-column: 3 / 5; grid-row: 3 / 5; }
    .intro__tile--5 { grid-column: 1 / 3; grid-row: 5 / 7; }
    .intro__tile--6 { grid-column: 3 / 5; grid-row: 5 / 7; }
}

/* Reducir motion — saltar intro */
@media (prefers-reduced-motion: reduce) {
    .intro {
        animation: none;
        display: none;
    }
}


/* ----------------------------------------------------------------
   2. GRAIN TEXTURE (film overlay)
   ---------------------------------------------------------------- */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.038;
    pointer-events: none;
    z-index: 9990;
    animation: grainShift 0.4s steps(2) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-3%, 2%); }
    50%  { transform: translate(2%, -3%); }
    75%  { transform: translate(-2%, -2%); }
    100% { transform: translate(3%, 3%); }
}


/* ----------------------------------------------------------------
   3. CUSTOM CURSOR
   ---------------------------------------------------------------- */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transition: opacity 0.3s;
}

.cursor-follower {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(200, 169, 108, 0.45);
    transition:
        width 0.35s var(--ease),
        height 0.35s var(--ease),
        border-color 0.35s,
        opacity 0.35s;
}

.cursor-follower.is-hovered {
    width: 64px;
    height: 64px;
    border-color: var(--gold);
    mix-blend-mode: difference;
}

@media (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
}


/* ----------------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.label {
    display: block;
    font-family: var(--sans);
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}


/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 2.1rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
    white-space: nowrap;
}

/* Shimmer sweep */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s var(--ease);
}

.btn:hover::before {
    left: 160%;
}

.btn--primary {
    background: var(--gold);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(200, 169, 108, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(237, 232, 220, 0.25);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.btn--buy {
    background: var(--gold);
    color: var(--bg);
    font-size: 0.68rem;
    padding: 0.8rem 1.4rem;
    width: 100%;
}

.btn--buy:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 169, 108, 0.4);
}

.btn--buy svg { flex-shrink: 0; }


/* ----------------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
}

.nav.is-scrolled {
    background: rgba(9, 8, 10, 0.88);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

.nav__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    height: 90px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav__logo-link:hover .nav__logo { opacity: 0.6; }

.nav__links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s var(--ease);
}

.nav__link:hover {
    color: var(--gold);
}

.nav__link:hover::after { width: 100%; }

/* Hamburger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav__links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        background: rgba(9, 8, 10, 0.97);
        backdrop-filter: blur(20px);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s var(--ease), opacity 0.4s;
        z-index: 99;
    }

    .nav__links.is-open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__burger { display: flex; }

    .nav__link { font-size: 0.8rem; }
}


/* ----------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--nav-h) 1.5rem 0;
}

/* Gradient background animado */
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 15% 50%,  rgba(155, 93, 122, 0.13) 0%, transparent 65%),
        radial-gradient(ellipse 50% 60% at 85% 25%,  rgba(200, 169, 108, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 45% at 55% 85%,  rgba(200, 169, 108, 0.06) 0%, transparent 55%),
        var(--bg);
    animation: heroBgPulse 14s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0%   {
        background:
            radial-gradient(ellipse 65% 55% at 15% 50%, rgba(155, 93, 122, 0.13) 0%, transparent 65%),
            radial-gradient(ellipse 50% 60% at 85% 25%, rgba(200, 169, 108, 0.10) 0%, transparent 60%),
            radial-gradient(ellipse 40% 45% at 55% 85%, rgba(200, 169, 108, 0.06) 0%, transparent 55%),
            var(--bg);
    }
    100% {
        background:
            radial-gradient(ellipse 65% 55% at 25% 60%, rgba(155, 93, 122, 0.18) 0%, transparent 65%),
            radial-gradient(ellipse 50% 60% at 75% 35%, rgba(200, 169, 108, 0.13) 0%, transparent 60%),
            radial-gradient(ellipse 40% 45% at 45% 75%, rgba(200, 169, 108, 0.08) 0%, transparent 55%),
            var(--bg);
    }
}

/* Grain solo en hero (más denso) */
.hero__grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    width: 100%;
}

.hero__logo-wrap {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero__logo {
    height: clamp(55px, 10vw, 90px);
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(4.5rem, 14vw, 11rem);
    font-weight: 300;
    line-height: 0.87;
    letter-spacing: -0.02em;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title-line { display: block; }
.hero__title-line--italic {
    font-style: italic;
    color: var(--gold);
}

.hero__subtitle {
    font-size: clamp(0.65rem, 1.5vw, 0.82rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Indicador de scroll */
.hero__scroll {
    position: absolute;
    bottom: clamp(1.5rem, 4vh, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
}

.hero__scroll-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.9); }
    50%       { opacity: 1;    transform: scaleY(1); }
}


/* ----------------------------------------------------------------
   8. HERO LOAD ANIMATIONS (staggered cascade)
   ---------------------------------------------------------------- */
.animate-item {
    opacity: 0;
    transform: translateY(28px);
}

.animate-item.is-visible {
    animation: heroFadeUp 1s var(--ease) forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------------------------------------
   9. MARQUEE
   ---------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 1.1rem 0;
}

.marquee__track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeRoll 56s linear infinite;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__dot {
    color: var(--gold);
    font-style: normal;
}

@keyframes marqueeRoll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ----------------------------------------------------------------
   10. GALLERY
   ---------------------------------------------------------------- */
.gallery {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem);
    max-width: 1440px;
    margin: 0 auto;
}

.gallery__header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gallery__title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.gallery__subtitle {
    color: var(--text-muted);
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    letter-spacing: 0.08em;
}

/* Grid 3 columnas con colocación densa (rellena huecos automáticamente) */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: start;
}

/* Obras destacadas: ocupan 2 columnas */
.artwork--featured {
    grid-column: span 2;
}

/* ARTWORK CARD */
.artwork {
    display: flex;
    flex-direction: column;
}

.artwork__img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    /* Aspect ratio por defecto */
    aspect-ratio: 3 / 4;
}

.artwork--featured .artwork__img-wrap {
    aspect-ratio: 4 / 3;
}

.artwork__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.08s linear;
    will-change: transform;
}

/* Overlay con info */
.artwork__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 8, 10, 0.97) 0%,
        rgba(9, 8, 10, 0.7)  45%,
        rgba(9, 8, 10, 0.15) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: clamp(1.25rem, 3vw, 2rem);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.artwork__overlay-inner {
    width: 100%;
    transform: translateY(18px);
    transition: transform 0.45s var(--ease);
}

/* Hover: mostrar overlay */
.artwork__img-wrap:hover .artwork__overlay         { opacity: 1; }
.artwork__img-wrap:hover .artwork__overlay-inner   { transform: translateY(0); }

/* Touch: tap para mostrar */
.artwork__img-wrap.is-touched .artwork__overlay       { opacity: 1; }
.artwork__img-wrap.is-touched .artwork__overlay-inner { transform: translateY(0); }

.artwork__badge {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200, 169, 108, 0.4);
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.65rem;
}

.artwork__overlay-title {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    margin-bottom: 0.3rem;
}

.artwork__overlay-meta {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

/* Info debajo de la imagen */
.artwork__info {
    padding: 0.9rem 0.1rem;
    border-top: 1px solid var(--border);
}

.artwork__title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.2rem;
}

.artwork__meta {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Tablet: 2 columnas */
@media (max-width: 860px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 columna */
@media (max-width: 540px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .artwork--featured {
        grid-column: span 1;
    }

    .artwork--featured .artwork__img-wrap {
        aspect-ratio: 3 / 4;
    }
}


/* ----------------------------------------------------------------
   11. ABOUT
   ---------------------------------------------------------------- */
.about {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--surface);
    overflow: hidden;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.about__title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.6rem;
}

.about__title em {
    font-style: italic;
    color: var(--gold);
}

.about__body {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 1.1rem;
}

.about__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Foto de la artista */
.about__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about__photo-wrap {
    position: relative;
    width: clamp(240px, 36vw, 420px);
}

/* Marco decorativo desplazado */
.about__photo-frame {
    position: absolute;
    inset: -14px -14px 14px 14px;
    border: 1px solid var(--gold-dim);
    z-index: 0;
    transition: transform 0.5s var(--ease);
}

.about__photo-wrap:hover .about__photo-frame {
    transform: translate(-4px, 4px);
}

.about__photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.about__photo-wrap:hover .about__photo {
    filter: grayscale(0%) contrast(1.05);
    transform: translate(4px, -4px);
}

/* Etiqueta debajo de la foto */
.about__photo-label {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-align: right;
    padding-right: 2px;
}

@media (max-width: 860px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__visual { order: -1; }
}


/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.footer {
    position: relative;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem) 2rem;
    overflow: hidden;
}

.footer__grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.footer__container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.footer__cta {
    text-align: center;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer__logo {
    height: 55px;
    width: auto;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

.footer__title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.footer__title em {
    font-style: italic;
    color: var(--gold);
}

.footer__text {
    font-size: clamp(0.82rem, 1.5vw, 0.92rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer__actions .btn--ghost {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

@media (max-width: 540px) {
    .footer__actions {
        flex-direction: column;
        gap: 0.85rem;
    }
    .footer__actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}


/* ----------------------------------------------------------------
   13. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal-up,
.reveal-right {
    opacity: 0;
    transition:
        opacity  0.95s var(--ease),
        transform 0.95s var(--ease);
}

.reveal-up    { transform: translateY(44px); }
.reveal-right { transform: translateX(44px); }

.reveal-up.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* Delay en cascada para las obras */
.artwork[data-delay-reveal="0"] { transition-delay: 0s; }
.artwork[data-delay-reveal="1"] { transition-delay: 0.14s; }
.artwork[data-delay-reveal="2"] { transition-delay: 0.28s; }

/* Delay para header de galería */
.gallery__header.is-visible .gallery__title    { transition-delay: 0.1s; }
.gallery__header.is-visible .gallery__subtitle { transition-delay: 0.2s; }


/* ----------------------------------------------------------------
   14. MISCELÁNEA & MICRO-INTERACCIONES
   ---------------------------------------------------------------- */

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Selection */
::selection {
    background: rgba(200, 169, 108, 0.25);
    color: var(--text);
}

/* Cursor zoom-in en las obras */
.artwork__img-wrap { cursor: zoom-in; }


/* ----------------------------------------------------------------
   14.5  AWARDS / PREMIOS
   ---------------------------------------------------------------- */
.awards {
    background: var(--bg);
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--border);
}

.awards__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.awards__header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.awards__title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
}

/* Timeline — año a la izquierda, lista a la derecha */
.awards__timeline {
    display: flex;
    flex-direction: column;
}

.awards__entry {
    display: grid;
    grid-template-columns: clamp(72px, 12vw, 130px) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.4rem, 3vw, 2rem) 0;
    border-top: 1px solid var(--border);
    align-items: start;
    position: relative;
}

/* Línea vertical conector */
.awards__entry:not(:last-child)::after {
    content: '';
    position: absolute;
    left: clamp(72px, 12vw, 130px);
    top: 100%;
    width: 1px;
    height: 0;
    background: var(--border);
}

.awards__year-col {
    padding-top: 3px;
}

.awards__year {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.awards__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0;
}

.awards__list li {
    font-family: var(--sans);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
    transition: color 0.3s;
}

.awards__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.awards__entry:hover .awards__list li {
    color: var(--text-dim);
}

.awards__entry:hover .awards__year {
    color: var(--gold-light);
}

/* Mobile: año arriba, lista abajo */
@media (max-width: 540px) {
    .awards__entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}


/* ----------------------------------------------------------------
   15. LIGHTBOX
   ---------------------------------------------------------------- */
.lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.lb.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop */
.lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 8, 0.96);
    cursor: zoom-out;
}

/* Botón cerrar */
.lb__close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(9, 8, 10, 0.7);
    transition: color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.lb__close:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Flechas de navegación */
.lb__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(9, 8, 10, 0.6);
    transition: color 0.3s, border-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.lb__nav:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.lb__nav--prev {
    left: clamp(0.5rem, 2vw, 1.5rem);
    transform: translateY(-50%);
}
.lb__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }

.lb__nav--next {
    right: clamp(0.5rem, 2vw, 1.5rem);
    transform: translateY(-50%);
}
.lb__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* Contenido */
.lb__inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(88vw, 860px);
    max-height: 92vh;
    width: 100%;
    transform: scale(0.96);
    transition: transform 0.4s var(--ease-spring);
}

.lb.is-open .lb__inner {
    transform: scale(1);
}

/* Imagen */
.lb__img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.lb__img {
    max-width: 100%;
    max-height: calc(92vh - 90px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
    transform-origin: 50% 50%;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lb__img.is-loading  { opacity: 0; }
.lb__img.is-zoomed   { cursor: grab; }
.lb__img.is-dragging { cursor: grabbing; transition: none !important; }

/* Hint de zoom */
.lb__zoom-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 8, 10, 0.75);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.lb__zoom-hint.is-hidden { opacity: 0; }

/* Barra inferior con info */
.lb__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem 0.25rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lb__info-text { flex: 1; min-width: 0; }

.lb__counter {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.lb__title {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb__meta {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.lb__buy { flex-shrink: 0; }

/* Mobile: stack info en columna */
@media (max-width: 540px) {
    .lb__nav--prev { left: 0.25rem; }
    .lb__nav--next { right: 0.25rem; }

    .lb__info { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

    .lb__title { white-space: normal; }

    .lb__buy { width: 100%; }
}

/* ----------------------------------------------------------------
   15.5  LIGHTBOX ZOOM — MOBILE (scroll nativo + tap-toggle)
   ---------------------------------------------------------------- */
@media (pointer: coarse) {
    /* El contenedor se vuelve scrollable cuando la imagen es mayor */
    .lb__img-wrap {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }
    .lb__img-wrap::-webkit-scrollbar { display: none; }

    /* Estado no-zoomed: centrar la imagen */
    .lb__img-wrap:not(.is-mobile-zoomed-wrap) {
        align-items: center;
        justify-content: center;
    }

    /* Estado zoomed: alinear top-left para que el scroll cubra toda la imagen */
    .lb__img-wrap.is-mobile-zoomed-wrap {
        align-items: flex-start;
        justify-content: flex-start;
    }

    /* La imagen zoomed crece más allá del contenedor */
    .lb__img.is-mobile-zoomed {
        max-width: none;
        max-height: none;
        flex-shrink: 0;
        cursor: zoom-out;
        transition: none;
    }
}


/* ----------------------------------------------------------------
   TOAST NOTIFICATION
   ---------------------------------------------------------------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 1.5rem);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.4rem;
    background: var(--bg-elev, #181513);
    color: var(--text, #ede8dc);
    border: 1px solid rgba(200, 169, 108, 0.35);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition:
        opacity 0.35s var(--ease, ease),
        transform 0.45s var(--ease, ease);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast svg {
    color: var(--gold, #c8a96c);
    flex-shrink: 0;
}

.btn.is-copied {
    border-color: var(--gold, #c8a96c);
    color: var(--gold, #c8a96c);
}

@media (max-width: 540px) {
    .toast {
        bottom: 1.25rem;
        font-size: 0.72rem;
        padding: 0.75rem 1.1rem;
        max-width: calc(100vw - 2rem);
    }
}
