/* Illuprint · página principal. Mundo: salón luminoso por la mañana; el dorado miel es el único acento. */

@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/libre-caslon-text.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/libre-caslon-text-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --wall: #e8ded3;        /* yeso cálido de la pared */
  --paper: #f7f2ec;       /* banda de pasos y secciones */
  --ink: #3d260f;         /* marrón profundo: titulares */
  --ink-soft: #5e4a39;    /* texto */
  --gold: #94672a;        /* dorado miel: botón */
  --gold-deep: #7a5420;
  --gold-line: #8f6420;   /* números y trazos finos */

  --serif: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* marco del cuadro en la foto del salón (2560 × 1280), en fracciones */
  --frame-x: 0.4553;
  --frame-y: 0.1016;
  --frame-w: 0.3877;
  --frame-h: 0.6578;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #e9cf9f; color: var(--ink); }
html { scrollbar-color: #c9b49a var(--paper); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #cdb9a0; border-radius: 6px; border: 3px solid var(--paper); }
:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Cabecera ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15vw 3.3vw 0 8.8vw;
}
.wordmark {
  font-family: var(--serif); color: var(--ink); text-decoration: none;
  font-size: clamp(1.6rem, 2.55vw, 3rem); letter-spacing: -0.01em; line-height: 1;
}
.nav {
  display: flex; align-items: center; gap: 1.15vw;
  font: 600 clamp(0.72rem, 0.86vw, 1rem)/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.nav a { text-decoration: none; padding: 0.5em 0; transition: color 200ms var(--ease-out); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .dot { color: var(--gold-line); }
.menu { display: none; }

/* ---------- Primera pantalla (escritorio): todo colocado sobre la foto ---------- */
.hero { position: relative; --vx: 0; --vw: 1; overflow-x: clip; }
.stage {
  position: relative; overflow: hidden;
  aspect-ratio: calc(1.9765 * var(--vw)) / 1;
  background: var(--wall);
  container-type: inline-size;
}
.room img {
  position: absolute; top: 0; height: 100%; max-width: none;
  width: calc(100% / var(--vw));
  left: calc(-100% * var(--vx) / var(--vw));
}
.hero-copy {
  position: absolute; z-index: 3; left: 10.1vw; top: 11.7vw; width: 34vw;
}
.hero-copy h1 {
  font-size: 4.3vw; line-height: 1.1; letter-spacing: -0.012em;
}
.lede {
  margin: 2.6vw 0 0; color: var(--ink-soft); font-weight: 450;
  font-size: clamp(0.95rem, 1.42vw, 1.7rem); line-height: 1.55;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; text-decoration: none;
  font: 600 clamp(0.78rem, 0.98vw, 1.15rem)/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.25em 2.4em; border-radius: 2px;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cta:hover { background: var(--gold-deep); }
.cta:active { transform: translateY(1px); }
.hero-copy .cta { margin-top: 2.3vw; min-width: 15.3vw; }
.reveal-link {
  display: block; margin-top: 2.2vw; padding: 0.3em 0;
  background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font: 400 clamp(0.8rem, 1.02vw, 1.2rem)/1.3 var(--sans);
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px;
}
.reveal-link:hover { color: var(--ink); }

/* el cuadro, dentro del marco de la foto */
.art {
  position: absolute; margin: 0; z-index: 2;
  left: calc((var(--frame-x) - var(--vx)) / var(--vw) * 100%);
  width: calc(var(--frame-w) / var(--vw) * 100%);
  top: calc(var(--frame-y) * 100%); height: calc(var(--frame-h) * 100%);
  touch-action: pan-y; cursor: crosshair;
  --lx: 45%; --ly: 54%; --lr: 13rem;
}
.art img, .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-reveal {
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 50%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 50%, transparent 100%);
}
.art::after {           /* el halo de la luz sobre el cuadro */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle calc(var(--lr) * 1.15) at var(--lx) var(--ly), rgb(255 236 200 / 0.55), transparent 70%);
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.art[data-state="live"]::after { opacity: 1; }

.caption {
  position: absolute; z-index: 3; margin: 0;
  left: min(calc((var(--frame-x) + var(--frame-w) - var(--vx)) / var(--vw) * 100% + 2.4vw), calc(100% - 9.6vw)); top: 18.6vw; width: 8.4vw;
  font: 400 clamp(0.72rem, 0.98vw, 1.15rem)/1.5 var(--sans); color: var(--ink);
}
.hero.nota-abajo .caption { left: var(--marco-izq); top: calc(var(--marco-abajo) + 0.9vw); width: auto; }
.hero.nota-abajo .caption br, .hero.nota-abajo .caption svg { display: none; }
.caption svg { width: 2.3vw; margin: 0.9vw 0 0 0.2vw; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }

/* ---------- Banda de pasos ---------- */
.steps {
  list-style: none; margin: 0; padding: 2vw 10vw 1.7vw;
  display: grid; grid-template-columns: 24vw 5.3vw 26vw 5vw auto; align-items: center;
  padding-right: 3vw; background: var(--paper); border-top: 1px solid #e6dccf;
  font: 600 clamp(0.72rem, 0.88vw, 1.05rem)/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.steps li { display: flex; align-items: center; gap: 1.1em; }
.steps .num { border-width: 1.5px; width: 2.2em; height: 2.2em; }
.steps .sep { color: var(--gold-line); justify-self: center; transform: translateX(-1.6vw); }
.num {
  display: inline-grid; place-items: center; flex: none;
  width: 2.1em; height: 2.1em; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold-line);
  font: 400 1em/1 var(--serif); letter-spacing: 0; font-variant-numeric: lining-nums;
}

/* ---------- Secciones ---------- */
.story, .seeing, .gifts, .prints {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1rem, 10vw, 12rem) 0;
}
h2 { font-size: clamp(1.9rem, 3.2vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 18ch; }
.intro, .gifts p, .prints p, .fallback { max-width: 60ch; font-size: clamp(1.02rem, 1.25vw, 1.3rem); margin: 1.4rem 0 0; }

.trio {
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.6rem);
}
.trio figure { margin: 0; }
.trio img {
  width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  box-shadow: 0 1px 2px rgb(61 38 15 / 0.08), 0 18px 40px -24px rgb(61 38 15 / 0.45);
}
.trio figcaption {
  margin-top: 1.1rem;
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft);
}
.trio figure:nth-child(2) { margin-top: clamp(1.5rem, 3vw, 3rem); }
.trio figure:nth-child(3) { margin-top: clamp(3rem, 6vw, 6rem); }
.note { margin: 2rem 0 0; font-size: 0.85rem; color: #7a6656; }

.seeing {
  margin-top: clamp(4.5rem, 9vw, 9rem); padding-bottom: clamp(4.5rem, 8vw, 8rem);
  background: var(--wall) url("assets/plates/plaster.jpg") center / 900px auto repeat;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.seeing-side { grid-row: span 2; }
.seeing .howto li::before { border-color: var(--gold-deep); color: var(--gold-deep); }   /* sobre yeso: dorado más hondo para que se lea */
.dots { margin: 2.2rem 0 0; max-width: 26rem; }
.dots img { width: 100%; height: auto; background: var(--paper); box-shadow: 0 1px 2px rgb(61 38 15 / 0.08), 0 18px 40px -24px rgb(61 38 15 / 0.45); }
.dots figcaption { margin-top: 0.9rem; font-size: 0.95rem; }
.howto { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.howto li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.2rem 1rem; max-width: 52ch; font-size: clamp(1rem, 1.15vw, 1.2rem); }
.howto li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold-line); font: 400 1rem/1 var(--serif);
}
.howto strong { display: block; font-weight: 500; color: var(--ink); }
.seeing .fallback { grid-column: 2; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid #e6dccf; }

.depth-secret {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1rem, 10vw, 12rem) 0;
}
.secret-scene { margin: 0; }
.secret-copy p { max-width: 60ch; font-size: clamp(1.02rem, 1.25vw, 1.3rem); margin: 1.4rem 0 0; }
.secret-copy .cta { margin-top: 2.2rem; }

.gifts, .prints { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.prints { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.scene { margin: 0; }
.secret-scene img { aspect-ratio: 4 / 3; }   /* imagen de Canva (flores) sin recortar: Claude, 1-nov, acordado con el Jefe */
.scene img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 1px 2px rgb(61 38 15 / 0.08), 0 24px 50px -28px rgb(61 38 15 / 0.5); }
.gifts h2, .prints h2 { max-width: 16ch; }
.prints { padding-bottom: clamp(5rem, 9vw, 9rem); }
.prints .cta { margin-top: 2.2rem; }

.foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 2rem clamp(1rem, 10vw, 12rem) calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e6dccf; font-size: 0.85rem; color: #7a6656;
}
.wordmark.small { font-size: 1.5rem; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .top { position: relative; padding: calc(0.9rem + env(safe-area-inset-top)) 1rem 0.9rem; background: var(--wall); }
  .wordmark { font-size: 1.75rem; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
    -webkit-tap-highlight-color: transparent;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 200ms var(--ease-out); }
  .menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu-panel {
    position: absolute; right: 0; top: 50px; z-index: 5; min-width: 14rem;
    display: grid; padding: 0.5rem; background: var(--paper);
    box-shadow: 0 2px 4px rgb(61 38 15 / 0.08), 0 16px 34px -12px rgb(61 38 15 / 0.35);
  }
  .menu-panel a {
    padding: 0.85rem 0.9rem; text-decoration: none;
    font: 500 0.82rem/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink);
  }

  .hero { background: var(--wall); }
  .hero-copy { position: static; width: auto; padding: 1.4rem 1rem 2rem; }
  .hero-copy h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .lede { margin-top: 1rem; font-size: 1.05rem; }
  .hero-copy .cta { margin-top: 1.6rem; width: 100%; min-height: 3.4rem; font-size: 0.85rem; }
  .reveal-link { margin-top: 1rem; font-size: 0.95rem; min-height: 44px; }

  .hero { --vx: 0.43; --vw: 0.57; }
  .caption { position: static; width: auto; padding: 0.9rem 1rem 0; font: 400 0.9rem/1.4 var(--sans); color: var(--ink); text-align: center; }
  .caption svg { display: none; }
  .hero { padding-bottom: 1.2rem; }

  .steps { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem 1rem; gap: 0.9rem; font-size: 0.8rem; }
  .steps .sep { display: none; }

  .depth-secret { grid-template-columns: 1fr; row-gap: 2rem; padding-left: 1rem; padding-right: 1rem; }
  .secret-copy .cta { width: 100%; min-height: 3.4rem; }
  .story, .seeing, .gifts, .prints { padding-left: 1rem; padding-right: 1rem; }
  .trio { grid-template-columns: 1fr; gap: 2rem; }
  .trio figure:nth-child(n) { margin-top: 0; }
  .seeing { grid-template-columns: 1fr; }
  .seeing-side { grid-row: auto; margin-bottom: 2rem; }
  .gifts, .prints { grid-template-columns: 1fr; row-gap: 2rem; }
  .prints .scene { order: -1; }
  .seeing .fallback { grid-column: 1; }
  .prints .cta { width: 100%; min-height: 3.4rem; }
  .foot { padding-left: 1rem; padding-right: 1rem; }
}

@media (hover: none) { .nav a:hover, .reveal-link:hover { color: inherit; } }
