﻿/* ============================================================
   FLORISTERÍA VALLEJO - style.css
   Lenguaje visual: negro cálido + oro del logo, editorial de lujo.
   Regla de forma: TODO en ángulos rectos (border-radius: 0).
   Metodología: mobile first (los @media son min-width).
   Los estados "is-anim" se activan desde main.js solo si GSAP carga;
   sin JS o con movimiento reducido la página se ve completa y estática.
============================================================ */

/* ---------- Tipografías (alojadas localmente) ---------- */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal; font-weight: 300 700; font-display: swap;
    src: url('fonts/cormorant.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic; font-weight: 300 700; font-display: swap;
    src: url('fonts/cormorant-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Jost';
    font-style: normal; font-weight: 300 600; font-display: swap;
    src: url('fonts/jost.woff2') format('woff2');
}

/* ---------- Tokens de diseño ---------- */
:root {
    /* Fondos (negro cálido, nunca #000 puro) */
    --ink:   #0a0908;
    --ink-2: #100e0c;
    --ink-3: #17140f;
    --ink-4: #211c15;

    /* Oro del logo (único color de acento) */
    --gold:    #d8b977;
    --gold-hi: #f2dfae;
    --gold-lo: #a98547;
    --gold-deep: #6e5428;

    /* Texto: todos cumplen contraste AA sobre --ink */
    --text:      #f1e9da;
    --text-dim:  rgba(241, 233, 218, .74);
    --text-mute: rgba(241, 233, 218, .56);

    --line:      rgba(216, 185, 119, .28);
    --line-soft: rgba(241, 233, 218, .12);

    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io:  cubic-bezier(.76, 0, .24, 1);

    --gutter: clamp(20px, 5vw, 72px);
    --header-h: 72px;

    /* Escala de capas (z-index) */
    --z-menu: 45;
    --z-fab: 48;
    --z-header: 50;
    --z-progress: 60;
    --z-lightbox: 70;
    --z-grain: 80;
    --z-loader: 100;
}

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.is-loading { overflow: hidden; height: 100%; }
body {
    min-height: 100vh;
    background: var(--ink);
    color: var(--text);
    font: 400 1rem/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Grano de película: solo en una capa fija, nunca en contenedores con scroll */
body::after {
    content: ''; position: fixed; inset: 0; z-index: var(--z-grain);
    pointer-events: none; opacity: .055; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilidades ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: 12px; top: -70px; z-index: 200;
    background: var(--gold); color: var(--ink); padding: .8rem 1.2rem;
    font: 500 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font: 500 .72rem/1 var(--font-body); letter-spacing: .34em; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before { content: ''; width: 42px; height: 1px; background: var(--gold); flex: none; }

/* Oro metálico: solo en palabras de énfasis (cursiva de la misma familia) */
.foil {
    font-style: italic; color: var(--gold);
    background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 32%, var(--gold) 50%, var(--gold-hi) 68%, var(--gold-lo) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: .1em;
    animation: foil 7s linear infinite;
}
@keyframes foil { to { background-position: -260% 0; } }

/* Máscara para revelar palabras desde abajo */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .05em .18em; margin: -.06em -.05em -.18em; }
.mask__in { display: inline-block; }

/* Borde dorado con luz que recorre el marco (se mantiene recto) */
.chase { position: relative; }
.chase::after {
    content: ''; position: absolute; inset: -1px; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--a), transparent 0 62%, var(--gold-lo) 80%, var(--gold-hi) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: chase 6s linear infinite;
}
@keyframes chase { to { --a: 360deg; } }

/* ---------- Botones ---------- */
.btn {
    --bg: var(--gold); --fg: var(--ink);
    position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    min-height: 54px; padding: 1rem 1.5rem;
    font: 500 .72rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-align: center;
    color: var(--fg); background: var(--bg); border: 1px solid var(--gold);
    transition: color .5s var(--ease-out), border-color .5s;
    will-change: transform;
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--gold); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--ghost { --bg: transparent; --fg: var(--gold-hi); border-color: rgba(216, 185, 119, .6); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--sm { min-height: 46px; padding: .8rem 1.2rem; font-size: .68rem; }
.btn--block { width: 100%; }
.btn__label { position: relative; }
.btn__icon { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }

/* Flecha hecha con CSS (línea + punta recta) */
.btn__arrow { position: relative; display: inline-block; flex: none; width: 1.5rem; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.btn__arrow::after {
    content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px;
    border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .btn__arrow, .link-cta:hover .btn__arrow { width: 2.3rem; }

.link-cta {
    display: inline-flex; align-items: center; gap: .9rem; padding-block: .55rem;
    font: 500 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.link-cta span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: .35rem; transition: background-size .6s var(--ease-out);
}
.link-cta:hover span, .link-cta:focus-visible span { background-size: 100% 1px; }

/* ============================================================
   SPINNER DE CARGA
============================================================ */
.loader { position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; color: var(--gold); }
.loader.is-failsafe { display: none; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.1%; background: var(--ink); will-change: transform; }
/* La línea dorada del "corte" solo aparece cuando las puertas empiezan a abrirse */
.loader__panel--top { top: 0; border-bottom: 1px solid transparent; }
.loader__panel--bottom { bottom: 0; border-top: 1px solid transparent; }
.loader__core { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(18px, 3vh, 30px); }
.loader__frame {
    width: clamp(210px, 26vw, 320px); aspect-ratio: 700 / 553;
    padding: clamp(14px, 2vw, 24px); border: 1px solid rgba(216, 185, 119, .22);
}
.loader__emblem { width: 100%; height: 100%; object-fit: contain; }
.loader__name { display: grid; justify-items: center; gap: .35rem; text-align: center; }
.loader__name .mask { display: block; }
.loader__name .mask:first-child .mask__in { font: 500 clamp(2rem, 4vw, 3rem)/1.1 var(--font-display); letter-spacing: .06em; color: var(--gold-hi); }
.loader__name .mask:last-child .mask__in { font: 500 .66rem/1.6 var(--font-body); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
.loader__meta { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(26px, 6vh, 56px); display: flex; align-items: baseline; gap: 1rem; }
.loader__count { font: italic 500 clamp(3rem, 8vw, 6.5rem)/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
.loader__label { display: none; font: 500 .66rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.loader__bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(216, 185, 119, .14); }
.loader__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
@media (min-width: 560px) { .loader__label { display: inline; } }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(0); transform-origin: left; }

/* ============================================================
   CABECERA + MENÚ
============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
    height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
    gap: clamp(12px, 2vw, 32px); padding-inline: var(--gutter);
    border-bottom: 1px solid transparent;
    transition: background .5s, border-color .5s; /* el desplazamiento lo anima GSAP */
}
.site-header.is-solid {
    background: rgba(10, 9, 8, .84); border-color: var(--line-soft);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark { width: 54px; height: auto; }
.brand__txt { display: grid; line-height: 1; }
.brand__txt b { font: 500 1.75rem/.9 var(--font-display); letter-spacing: .03em; color: var(--gold-hi); }
.brand__txt i { margin-top: .4rem; font: 500 .5rem/1 var(--font-body); font-style: normal; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__list a {
    position: relative; display: block; padding-block: .6rem;
    font: 500 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
    color: var(--text-dim); transition: color .4s;
}
.nav__list a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__list a:hover, .nav__list a:focus-visible { color: var(--gold-hi); }
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { display: none; }

.burger { width: 48px; height: 48px; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1px; background: var(--gold); transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 700px)  { .site-header__cta { display: inline-flex; } .site-header { margin-right: 0; } }
@media (min-width: 700px) and (max-width: 1023px) { .site-header__cta { margin-left: auto; } }
@media (min-width: 1024px) { .nav { display: block; } .burger { display: none; } }

.menu {
    position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink-2);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-io); }
.menu__inner {
    height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
}
.menu__list { display: grid; gap: .1rem; }
.menu__list a { display: block; overflow: hidden; font: 500 clamp(2.6rem, 12vw, 5rem)/1.14 var(--font-display); color: var(--text); }
.menu__list a span { display: block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.menu.is-open .menu__list a span { transform: none; transition-delay: calc(.3s + var(--i, 0) * .07s); }
.menu__list li:nth-child(1) { --i: 0; } .menu__list li:nth-child(2) { --i: 1; } .menu__list li:nth-child(3) { --i: 2; }
.menu__list li:nth-child(4) { --i: 3; } .menu__list li:nth-child(5) { --i: 4; }
.menu__foot { display: grid; gap: 1.2rem; justify-items: start; color: var(--text-dim); font-size: .95rem; }
.menu__foot a:not(.btn) { color: var(--gold-hi); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ============================================================
   1. HERO
============================================================ */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + clamp(12px, 3vh, 40px)) var(--gutter) clamp(28px, 6vh, 64px);
    background:
        radial-gradient(60% 55% at 80% 36%, rgba(216, 185, 119, .11), transparent 70%),
        radial-gradient(45% 50% at 4% 96%, rgba(122, 22, 42, .22), transparent 72%),
        var(--ink);
}
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__wordmark {
    position: absolute; left: -1vw; bottom: -.08em; z-index: -2;
    font: italic 500 clamp(9rem, 34vw, 36rem)/.8 var(--font-display);
    color: transparent; -webkit-text-stroke: 1px rgba(216, 185, 119, .17);
    white-space: nowrap; pointer-events: none; user-select: none;
}
.hero__inner { width: 100%; max-width: 1520px; margin-inline: auto; display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__title { font: 500 clamp(2.8rem, 14vw, 4.8rem)/.96 var(--font-display); letter-spacing: -.015em; }
.hero__title .line { display: block; white-space: nowrap; overflow: hidden; padding: 0 .12em .16em 0; margin-bottom: -.16em; }
.hero__title .line__in { display: inline-block; }
.hero__lead { margin-top: 1.5rem; max-width: 34em; font: 300 clamp(1.05rem, 1.5vw, 1.28rem)/1.65 var(--font-body); color: var(--text-dim); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.hero__stage { position: relative; width: 100%; aspect-ratio: 1 / 1.08; }
.hs { position: absolute; margin: 0; }
.hs__drift { position: relative; width: 100%; height: 100%; animation: drift var(--dur, 9s) ease-in-out infinite; }
@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, calc(var(--drift, 14px) * -1), 0); }
}
.hs__clip { position: absolute; inset: 0; overflow: hidden; background: var(--ink-3); }
.hs__shift { position: absolute; inset: -8%; }
.hs__shift img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06) contrast(1.04) brightness(.95); }
.hs--a .hs__shift img { object-position: 38% 50%; }
.hs__frame { position: absolute; inset: -16px; z-index: -1; border: 1px solid var(--line); pointer-events: none; }

.hs--a { left: 27%; top: 3%; width: 66%; aspect-ratio: 4 / 5; --dur: 10s; --drift: 14px; }
.hs--b { left: 0; bottom: 3%; width: 38%; aspect-ratio: 1; --dur: 8s; --drift: 18px; outline: 8px solid var(--ink); }
.hs--c { right: 0; top: 0; width: 32%; aspect-ratio: 4 / 5; --dur: 11s; --drift: 12px; outline: 8px solid var(--ink); }

@media (min-width: 560px) {
    .hero__title { font-size: clamp(3.4rem, 10vw, 6rem); }
}
@media (min-width: 960px) {
    .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
    .hero__title { font-size: clamp(3rem, 7.4vw, 8rem); }
    .hero__stage { aspect-ratio: auto; height: min(76vh, 760px); height: min(76svh, 760px); }
    .hs--a { left: 22%; top: 3%; width: auto; height: 84%; }
    .hs--b { width: auto; height: 36%; outline-width: 10px; }
    .hs--c { width: auto; height: 33%; outline-width: 10px; }
}
@media (max-width: 559px) {
    .hero__cta .btn { width: 100%; }
}

/* ============================================================
   2. CINTA (único marquee)
============================================================ */
.ribbon { overflow: hidden; background: var(--gold); color: var(--ink); border-block: 1px solid var(--gold-lo); }
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__group {
    --g: clamp(18px, 3vw, 44px);
    display: flex; align-items: center; gap: var(--g); padding: clamp(12px, 2vw, 24px) calc(var(--g) / 2);
    font: italic 500 clamp(1.7rem, 4.2vw, 3.4rem)/1 var(--font-display); white-space: nowrap;
}
.star { flex: none; width: clamp(14px, 1.8vw, 24px); aspect-ratio: 1; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* ============================================================
   3. MANIFIESTO
============================================================ */
.manifesto { position: relative; overflow: hidden; padding: clamp(100px, 22vw, 340px) var(--gutter); }
.manifesto__text {
    position: relative; z-index: 1; max-width: 17em; margin-inline: auto;
    font: 400 clamp(2.1rem, 5.6vw, 5.2rem)/1.12 var(--font-display); letter-spacing: -.01em;
}
.manifesto__text em { color: var(--gold); }
.manifesto__text .w { display: inline-block; }
.m-fig { position: absolute; margin: 0; overflow: hidden; display: none; }
.m-fig img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
    .manifesto__text { margin-left: clamp(0px, 8vw, 140px); }
    .m-fig { display: block; }
    .m-fig--l { left: var(--gutter); top: clamp(24px, 4vw, 60px); width: clamp(90px, 13vw, 200px); aspect-ratio: 3 / 4; }
    .m-fig--r { right: var(--gutter); bottom: clamp(24px, 4vw, 60px); width: clamp(100px, 15vw, 240px); aspect-ratio: 3 / 4; }
}

/* ============================================================
   4. LA IMAGEN SE ABRE EN GRANDE
============================================================ */
.reveal { position: relative; background: var(--ink); }
.reveal__pin { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; }
.reveal__words { display: none; position: absolute; inset: 0; margin: 0; font-weight: inherit; }
.is-anim .reveal__words { display: block; }
.reveal__word {
    position: absolute; z-index: 1; display: flex; align-items: center; white-space: nowrap;
    font: italic 500 clamp(4.4rem, 17vw, 16rem)/.85 var(--font-display);
    color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.reveal__word--l { left: calc(var(--gutter) * .5); top: 0; bottom: 50%; }
.reveal__word--r { right: calc(var(--gutter) * .5); top: 50%; bottom: 0; }
.reveal__media { position: absolute; inset: 0; z-index: 2; margin: 0; }
.reveal__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.reveal__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .45) 42%, rgba(10, 9, 8, .08) 100%); }
.reveal__text { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 8vh, 90px); max-width: 680px; }
.reveal__kicker { font: italic 500 clamp(2.5rem, 6vw, 5.4rem)/1 var(--font-display); color: var(--gold-hi); margin-bottom: .7rem; padding-bottom: .1em; }
.reveal__p { max-width: 30em; margin-bottom: 1.6rem; color: var(--text); font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* ============================================================
   5. COLECCIÓN (scroll horizontal)
============================================================ */
.gallery { position: relative; background: var(--ink-2); }
.gallery__pin {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
    padding-block: calc(var(--header-h) + 3vh) clamp(56px, 10vh, 100px);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gold-lo) var(--ink-3);
}
.is-anim .gallery__pin { overflow: hidden; height: 100vh; height: 100svh; scroll-snap-type: none; }
.gallery__track { display: flex; align-items: center; gap: clamp(28px, 5vw, 88px); width: max-content; padding-inline: var(--gutter); }
.gallery__intro { flex: 0 0 clamp(290px, 34vw, 560px); padding-right: 2vw; scroll-snap-align: start; }
.gallery__intro h2 { margin-block: 1.2rem 1.2rem; font: 500 clamp(2.4rem, 4.8vw, 4.6rem)/1.02 var(--font-display); }
.gallery__lead { max-width: 24em; color: var(--text-dim); }

.piece { flex: 0 0 clamp(230px, min(24vw, 46vh), 420px); scroll-snap-align: start; }
.piece:nth-child(odd)  { margin-top: clamp(24px, 8vh, 80px); }
.piece:nth-child(even) { margin-bottom: clamp(24px, 8vh, 80px); }
.piece__media, .mo__media, .bento__media {
    position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in;
    background: var(--ink-3); border: 1px solid var(--line-soft);
}
.piece__media { aspect-ratio: 4 / 5; }
.piece__media img, .mo__media img, .bento__media img { width: 100%; height: 100%; object-fit: cover; }
.piece__media::after, .mo__media::after, .bento__media::after {
    content: ''; position: absolute; inset: 10px; border: 1px solid var(--gold-hi); pointer-events: none;
    opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.piece__media:hover::after, .piece__media:focus-visible::after,
.mo__media:hover::after, .mo__media:focus-visible::after,
.bento__media:hover::after, .bento__media:focus-visible::after { opacity: .85; transform: none; }
.piece h3 { margin-top: 1.1rem; font: 500 clamp(1.5rem, 2vw, 1.9rem)/1.1 var(--font-display); }
.piece p { margin-top: .5rem; max-width: 30ch; color: var(--text-dim); font-size: .95rem; line-height: 1.55; }
.piece .link-cta { margin-top: .7rem; }

.gallery__end { flex: 0 0 clamp(280px, 32vw, 460px); padding-inline: 2vw 6vw; }
.gallery__end h3 { font: italic 500 clamp(2.2rem, 4vw, 3.6rem)/1.05 var(--font-display); color: var(--gold-hi); margin-bottom: .8rem; padding-bottom: .1em; }
.gallery__end p { margin-bottom: 1.6rem; color: var(--text-dim); max-width: 22em; }

.gallery__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px); height: 1px; background: var(--line-soft); display: none; }
.is-anim .gallery__progress { display: block; }
.gallery__progress i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ============================================================
   6. OCASIONES
============================================================ */
.occasions { background: var(--ink); }
.occasions__pin { display: grid; gap: clamp(24px, 5vw, 96px); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.occasions__title { max-width: 14em; margin-bottom: clamp(20px, 3vw, 40px); font: 500 clamp(1.7rem, 2.6vw, 2.6rem)/1.1 var(--font-display); color: var(--gold); }
.occ-list { display: block; }
.occ { padding-block: clamp(12px, 2vh, 20px); border-top: 1px solid var(--line-soft); }
.occ__name { font: 500 clamp(2.3rem, 11vw, 5.2rem)/1 var(--font-display); transition: color .6s var(--ease-out), transform .7s var(--ease-out); }
.occ__more { display: grid; grid-template-rows: 1fr; }
.occ__more > div { min-height: 0; overflow: hidden; }
.occ__line { margin-top: .8rem; max-width: 30em; color: var(--text-dim); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.occ__media { display: block; margin: 1.2rem 0 .6rem; aspect-ratio: 4 / 3; overflow: hidden; }
.occ__media img { width: 100%; height: 100%; object-fit: cover; }
.occ .link-cta { margin-top: .6rem; }
.occasions__stage { display: none; }

@media (min-width: 900px) {
    .occasions__pin { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding-block: calc(var(--header-h) + 3vh) 5vh; min-height: 100vh; min-height: 100svh; }
    .is-anim .occasions__pin { height: 100vh; height: 100svh; }
    .occ__name { font-size: clamp(2.3rem, 5.2vw, 5.2rem); }
    .occ__media { display: none; }
    .occasions__stage {
        display: block; position: relative; width: 100%; justify-self: end; overflow: hidden;
        aspect-ratio: 4 / 5; max-height: min(74vh, 760px); max-height: min(74svh, 760px);
        background: var(--ink-3); border: 1px solid var(--line-soft);
    }
    .occ-img { position: absolute; inset: 0; margin: 0; }
    .occ-img img { width: 100%; height: 100%; object-fit: cover; }
    html:not(.is-anim) .occ-img:not([data-i="0"]) { display: none; }
    /* Con animación: solo la ocasión activa se abre */
    .is-anim .occ__name { color: var(--text-mute); cursor: pointer; }
    .is-anim .occ.is-active .occ__name { color: var(--gold); transform: translateX(.2em); }
    .is-anim .occ__more { grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease-out); }
    .is-anim .occ__more > div { visibility: hidden; transition: visibility 0s .8s; }
    .is-anim .occ.is-active .occ__more { grid-template-rows: 1fr; }
    .is-anim .occ.is-active .occ__more > div { visibility: visible; transition: visibility 0s 0s; }
}

/* ============================================================
   7. DETALLES (bento)
============================================================ */
.details { padding: clamp(80px, 12vw, 180px) 0; }
.bento { display: grid; gap: clamp(12px, 1.4vw, 20px); grid-template-columns: 1fr; padding-inline: var(--gutter); max-width: 1520px; margin-inline: auto; }
.bento__cell { margin: 0; min-width: 0; }
.bento__intro {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
    padding: clamp(24px, 3vw, 44px);
    background: linear-gradient(165deg, var(--ink-4), var(--ink-2)); border: 1px solid var(--line);
}
.bento__intro::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), transparent); }
.bento__intro h2 { font: 500 clamp(2.2rem, 3.8vw, 3.8rem)/1.02 var(--font-display); }
.bento__intro p { max-width: 28em; color: var(--text-dim); }
.bento__intro .btn { align-self: flex-start; }
figure.bento__cell { display: flex; flex-direction: column; gap: .9rem; }
.bento__media { flex: 1; min-height: 0; aspect-ratio: 4 / 5; }
.bento__d .bento__media { aspect-ratio: 16 / 9; }
.bento__c .bento__media { aspect-ratio: 1; }
.bento__media img { position: absolute; inset: 0; }
.bento figcaption { display: grid; gap: .1rem; }
.bento figcaption b { font: 500 1.4rem/1.1 var(--font-display); }
.bento figcaption span { color: var(--text-dim); font-size: .92rem; line-height: 1.45; }

@media (min-width: 600px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .bento__intro { grid-column: 1 / 3; }
    .bento__b { grid-column: 1; grid-row: 2 / 4; }
    .bento__b .bento__media { aspect-ratio: auto; }
    .bento__c { grid-column: 2; grid-row: 2; }
    .bento__e { grid-column: 2; grid-row: 3; }
    .bento__e .bento__media { aspect-ratio: 4 / 3; }
    .bento__d { grid-column: 1 / 3; grid-row: 4; }
}
@media (min-width: 960px) {
    .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(clamp(300px, 44vh, 440px), auto); }
    .bento__intro { grid-column: 1 / 6; grid-row: 1; }
    .bento__b { grid-column: 6 / 10; grid-row: 1 / 3; }
    .bento__c { grid-column: 10 / 13; grid-row: 1; }
    .bento__d { grid-column: 1 / 6; grid-row: 2; }
    .bento__e { grid-column: 10 / 13; grid-row: 2; }
    .bento__c .bento__media, .bento__d .bento__media, .bento__e .bento__media { aspect-ratio: auto; }
}

/* ============================================================
   8. NOSOTROS
============================================================ */
.story { display: grid; gap: clamp(48px, 8vw, 120px); align-items: center; max-width: 1520px; margin-inline: auto; padding: clamp(90px, 13vw, 200px) var(--gutter); }
.story__media { position: relative; justify-self: center; width: min(100%, 440px); padding-bottom: clamp(40px, 6vw, 80px); }
.story__video { position: relative; aspect-ratio: 478 / 850; background: var(--ink-3); }
.story__video::before { content: ''; position: absolute; inset: -14px; border: 1px solid var(--line); pointer-events: none; }
.story__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.story__poster {
    position: absolute; right: 0; bottom: 0; width: 44%; margin: 0; overflow: hidden; z-index: 2;
    outline: 8px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); will-change: transform;
}
.story__poster img { width: 100%; height: auto; }
.story__sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 36%, rgba(255, 238, 196, .3) 50%, transparent 64%); transform: translateX(-130%); animation: sheen 6s var(--ease-io) infinite; }
@keyframes sheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.story__text h2 { margin-block: 1.1rem 1.5rem; font: 500 clamp(2.4rem, 5vw, 4.8rem)/1.02 var(--font-display); }
.story__text > p:not(.eyebrow) { max-width: 32em; margin-bottom: 1rem; color: var(--text-dim); }
.story__address { margin: 1.6rem 0 1.8rem; padding-left: 1rem; border-left: 1px solid var(--gold); letter-spacing: .03em; line-height: 1.6; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); } .story__poster { right: -8%; } }

/* ============================================================
   9. MOMENTOS
============================================================ */
.moments { max-width: 1520px; margin-inline: auto; padding: clamp(80px, 12vw, 180px) var(--gutter); }
.moments h2 { max-width: 12em; font: 500 clamp(2.4rem, 5.6vw, 5.4rem)/1 var(--font-display); }
.moments__grid { display: grid; gap: clamp(36px, 4vw, 64px); margin-top: clamp(40px, 7vw, 100px); }
.mo { margin: 0; }
.mo__media { aspect-ratio: 4 / 5; }
.mo--2 .mo__media { aspect-ratio: 3 / 4; }
.mo--3 .mo__media { aspect-ratio: 4 / 5.2; }
.mo figcaption { margin-top: .9rem; font: italic 500 1.4rem/1.2 var(--font-display); color: var(--text-dim); }
@media (min-width: 760px) {
    .moments__grid { grid-template-columns: 1.15fr .8fr 1fr; align-items: start; }
    .mo--2 { margin-top: clamp(60px, 12vw, 200px); }
    .mo--3 { margin-top: clamp(20px, 4vw, 70px); }
}

/* ============================================================
   10. CÓMO PEDIR
============================================================ */
.process { max-width: 1520px; margin-inline: auto; padding: clamp(80px, 12vw, 180px) var(--gutter); }
.process__title { max-width: 14em; margin-bottom: clamp(32px, 6vw, 80px); font: 500 clamp(2rem, 4.2vw, 4rem)/1.05 var(--font-display); }
.proc { position: relative; display: grid; gap: 10px 40px; padding-block: clamp(20px, 3.4vw, 44px); }
.proc__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.proc__word {
    font: italic 500 clamp(3.4rem, 15vw, 11.5rem)/.98 var(--font-display);
    color: transparent; -webkit-text-stroke: 1px var(--gold-lo);
    background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 0 / 100% 100%;
    -webkit-background-clip: text; background-clip: text;
    padding: 0 .12em .1em 0;
}
.is-anim .proc__word { background-size: 0% 100%; }
.proc p { max-width: 26em; color: var(--text-dim); font-size: 1.05rem; }
.process > .btn { margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 800px) {
    .proc { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
    .proc__word { font-size: clamp(3.4rem, 12.5vw, 11.5rem); }
}

/* ============================================================
   11. CONTACTO
============================================================ */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(80px, 12vw, 170px); background: var(--ink-2); }
.contact__bg { position: absolute; top: 0; right: 0; z-index: -1; width: min(70%, 760px); height: 100%; opacity: .6; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-2) 0%, rgba(16, 14, 12, .7) 45%, rgba(16, 14, 12, .5) 100%), linear-gradient(0deg, var(--ink-2), transparent 35%); }
.contact__grid { display: grid; gap: clamp(40px, 6vw, 96px); max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }
.contact__lead h2 { margin-block: 1.1rem 1.4rem; font: 500 clamp(2.2rem, 4.6vw, 4.4rem)/1.04 var(--font-display); }
.contact__intro { max-width: 30em; color: var(--text-dim); }
.contact__data { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.contact__data dt { margin-bottom: .4rem; font: 500 .68rem/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.contact__data dd { color: var(--text); }
.contact__data a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease-out), color .3s; }
.contact__data a:hover { background-size: 100% 1px; color: var(--gold-hi); }

.form { display: grid; gap: 1.25rem; padding: clamp(22px, 3vw, 44px); background: rgba(16, 14, 12, .78); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.field-row { display: grid; gap: 1.25rem; }
.field label, .choice legend {
    display: block; margin-bottom: .55rem; font: 500 .7rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
}
.field label small { text-transform: none; letter-spacing: .02em; font-size: .8rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .95rem 1rem; font: 400 1rem/1.4 var(--font-body); color: var(--text);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(216, 185, 119, .45);
    transition: border-color .3s, background .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
    color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-hi); background: rgba(216, 185, 119, .07); box-shadow: 0 0 0 3px rgba(216, 185, 119, .2); }
.field select {
    padding-right: 2.6rem; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:invalid { color: var(--text-mute); }
.field option { background: var(--ink-2); color: var(--text); }
.field [aria-invalid="true"] { border-color: #f0a090; }
.field__error { min-height: 0; margin-top: .4rem; font-size: .88rem; color: #f4b3a6; }
.field__error:empty { display: none; }

.choice { border: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice legend { padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
    display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; color: var(--text);
    border: 1px solid rgba(216, 185, 119, .45); transition: border-color .3s, background .3s;
}
.choice span::before { content: ''; width: 12px; height: 12px; border: 1px solid var(--gold); flex: none; transition: background .3s; }
.choice input:checked + span { border-color: var(--gold-hi); background: rgba(216, 185, 119, .1); }
.choice input:checked + span::before { background: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.form__status { min-height: 1.4em; font-size: .95rem; color: var(--text-dim); }
.form__status a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.form__status.is-ok { color: var(--gold-hi); }
.form__status.is-error { color: #f4b3a6; }
.btn.is-busy { pointer-events: none; opacity: .7; }

.contact__map { position: relative; height: clamp(300px, 42vw, 460px); margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); background: var(--ink-3); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.5) hue-rotate(-8deg) brightness(.95); }

@media (min-width: 560px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .choice { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }

/* ============================================================
   PIE DE PÁGINA
============================================================ */
.site-footer { position: relative; overflow: hidden; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 110px); }
.site-footer__top { display: grid; gap: 40px; max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }
.site-footer__brand img { width: clamp(140px, 14vw, 200px); height: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 20em; color: var(--text-dim); }
.site-footer h2 { margin-bottom: 1.2rem; font: 500 .7rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a:not(.btn) { color: var(--text-dim); transition: color .3s; }
.site-footer a:not(.btn):hover { color: var(--gold-hi); }
.site-footer address, .site-footer__contact p { color: var(--text-dim); margin-bottom: .8rem; }
.site-footer__word {
    margin-top: clamp(30px, 5vw, 70px); padding-bottom: .22em; text-align: center; white-space: nowrap; user-select: none;
    font: italic 500 clamp(7rem, 27vw, 30rem)/.8 var(--font-display);
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold-lo) 52%, rgba(169, 133, 71, 0) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-footer__legal { padding: 1.2rem var(--gutter) 1.6rem; text-align: center; color: var(--text-mute); font-size: .82rem; border-top: 1px solid var(--line-soft); }
@media (min-width: 700px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__top { grid-template-columns: 1.3fr .7fr 1fr 1fr; } }

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-fab); display: flex; align-items: center; }
.wa-fab__box { position: relative; display: grid; place-items: center; width: 60px; height: 60px; background: var(--ink); color: var(--gold); border: 1px solid rgba(216, 185, 119, .5); transition: background .4s, color .4s; }
.wa-fab__box svg { width: 28px; height: 28px; fill: currentColor; }
.wa-fab__box::before { content: ''; position: absolute; inset: -1px; border: 1px solid var(--gold); pointer-events: none; animation: ripple 2.8s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }
.wa-fab__label {
    display: none; align-items: center; height: 60px; padding: 0 1.2rem; white-space: nowrap;
    font: 500 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--gold);
    opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .4s, transform .6s var(--ease-out);
}
.wa-fab:hover .wa-fab__box, .wa-fab:focus-visible .wa-fab__box { background: var(--gold); color: var(--ink); }
@media (hover: hover) {
    .wa-fab__label { display: flex; }
    .wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: none; }
}

/* ============================================================
   VISOR DE IMÁGENES
============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; place-items: center;
    background: rgba(8, 7, 6, .95); opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.lb-figure { display: grid; gap: 1rem; justify-items: center; width: min(92vw, 1000px); margin: 0; }
.lb-figure img { width: auto; height: auto; max-width: 100%; max-height: 74vh; max-height: 74svh; object-fit: contain; border: 1px solid var(--line); background: var(--ink-3); }
.lb-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; width: 100%; font: 500 clamp(1.3rem, 2vw, 1.8rem)/1.1 var(--font-display); }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; color: var(--gold); background: rgba(10, 9, 8, .7); border: 1px solid var(--line); transition: background .3s, color .3s; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--gold); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-close span { position: absolute; width: 22px; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-close span + span { transform: rotate(-45deg); }
.lb-prev, .lb-next { top: calc(50% - 26px); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-prev i, .lb-next i { width: 12px; height: 12px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.lb-prev i { transform: rotate(45deg); margin-left: 5px; }
.lb-next i { transform: rotate(-135deg); margin-right: 5px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 16px; } }

/* ============================================================
   MOVIMIENTO REDUCIDO
============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
