/* ==========================================================================
   Ovilune Records · Sitio web · v5 «escaparate iluminado»
   La fachada de la tienda (laca negra, rótulo en latón, titulares romanos)
   enmarca la web: cabecera, portada y pie. El contenido sigue sobre blanco,
   con las cajas y fichas de la v3. Titulares en Libre Caslon Display, texto en Inter.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-opsz-var.woff2") format("woff2-variations"),
       url("../fonts/inter-opsz-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Fachada */
  --lacquer: #14120F;          /* laca de la fachada */
  --lacquer-2: #201D18;        /* laca a la luz: hover y bordes sobre negro */
  --brass: #CDB68A;            /* rótulo de latón: logotipo, titulares y botón sobre negro */
  --brass-hover: #DCC79E;
  --ivory: #EEE7D8;            /* texto sobre negro. Nunca como fondo */

  --vl-ink: #1B1915;
  --vl-white: #FFFFFF;
  --vl-graphite: #777770;
  --vl-green: #14120F;         /* el verde de VINILORE desaparece: la acción principal es la laca */
  --vl-font-serif: "Libre Caslon Display", "Big Caslon", Didot, Georgia, serif;
  --vl-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vl-font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --vl-radius-sm: 4px;
  --vl-radius-md: 6px;

  /* Derivados */
  --bg: #FFFFFF;
  --panel: #F5F5F3;            /* superficie neutra, sin matiz crema */
  --panel-2: #ECECE9;
  --border: #E3E3E0;           /* bordes de cajas, como en Discogs */
  --border-strong: #CFCFCB;    /* campos de formulario */
  --text: #1C1C1A;
  --text-2: #5F5F59;           /* 6,4:1 sobre blanco */
  --green-hover: #2E2A23;
  --error: #8E1B10;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --t-hero: clamp(2.25rem, 1.55rem + 2.9vw, 3.75rem);

  --gutter: 1.25rem;
  --section: 4rem;
  --max: 74rem;
  --measure: 40rem;
}
@media (min-width: 40rem) { :root { --gutter: 2rem; --section: 5.5rem; } }
@media (min-width: 64rem) { :root { --gutter: 3rem; --section: 7rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--vl-font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--vl-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--vl-green); color: var(--vl-white); }
strong { font-weight: 600; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -4rem; padding: 0.75rem 1rem; background: var(--vl-white); color: var(--vl-ink); z-index: 10; border-radius: var(--vl-radius-sm); }
.skip:focus { top: 0.75rem; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: 2.5rem; }
.narrow { max-width: 30rem; }
.muted { color: var(--text-2); }

/* ---------- Estructura ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--panel { background: var(--panel); }
.section--tight { padding-top: calc(var(--section) * 0.55); }
.section + .section:not(.section--panel):not(.band) { border-top: 1px solid var(--border); }

.split { display: grid; gap: 1.75rem; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; } }

.h-section { font-size: var(--t-xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; max-width: 18em; }
.h-sub { font-size: var(--t-body); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--text); max-width: 32rem; letter-spacing: -0.005em; }
.section__intro { margin-top: 1rem; max-width: 26rem; color: var(--text-2); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose--lg { font-size: var(--t-lg); line-height: 1.5; }

/* ---------- Cabecera (marco negro) ---------- */
.site-header { background: var(--vl-ink); color: var(--vl-white); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: var(--t-sm); font-weight: 500; }
.site-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.82); padding: 0.5rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--vl-white); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-header :focus-visible { outline-color: var(--vl-white); }
@media (min-width: 40rem) {
  .site-header__bar { min-height: 4.5rem; }
  .site-nav { gap: 2rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border: 1px solid var(--vl-ink); border-radius: var(--vl-radius-sm);
  background: var(--vl-ink); color: var(--vl-white);
  font: 600 var(--t-sm)/1.2 var(--vl-font-sans); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #2B2B28; border-color: #2B2B28; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--vl-green); border-color: var(--vl-green); }
.btn--primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn--line { background: var(--vl-white); color: var(--vl-ink); border-color: var(--border-strong); }
.btn--line:hover { background: var(--panel); border-color: var(--vl-ink); }
.btn--light { background: var(--vl-white); border-color: var(--vl-white); color: var(--vl-ink); }
.btn--light:hover { background: var(--panel-2); border-color: var(--panel-2); }
.btn--submit { background: var(--vl-green); border-color: var(--vl-green); width: 100%; min-height: 3.25rem; font-size: 1rem; }
.btn--submit:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn--submit[aria-busy="true"] { cursor: progress; opacity: 0.75; }
@media (min-width: 40rem) { .btn--submit { width: auto; min-width: 18rem; } }

.link-wa { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 600; font-size: var(--t-sm); white-space: nowrap; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
@media (max-width: 39.99rem) { .actions { flex-direction: column; align-items: stretch; } .actions .link-wa { justify-content: center; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.hero__grid { display: grid; gap: 3rem; }
.hero__title {
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: 12em;
}
.hero__lead { margin-top: 1.5rem; }
.hero__note { margin-top: 1.25rem; color: var(--text-2); font-size: var(--t-sm); max-width: 28rem; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; align-items: center; }
}

/* ---------- Ficha (estilo de anuncio de Discogs) ---------- */
.spec {
  border: 1px solid var(--border);
  border-radius: var(--vl-radius-md);
  background: var(--vl-white);
  overflow: hidden;
}
.spec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--border); }
.spec__title { font-size: var(--t-sm); font-weight: 600; }
.spec__aside { font-size: var(--t-xs); color: var(--text-2); }
.spec__list { padding: 0.35rem 1.25rem 0.5rem; }
.spec__row { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; font-size: var(--t-sm); line-height: 1.45; }
.spec__row + .spec__row { border-top: 1px solid var(--border); }
.spec__row dt { color: var(--text-2); }
@media (min-width: 40rem) { .spec__row { grid-template-columns: 7.5rem minmax(0, 1fr); } }
.spec__row dd { color: var(--text); }
.spec__grade { display: inline-block; min-width: 2.6rem; margin-right: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 3px; background: var(--panel-2); font-family: var(--vl-font-mono); font-size: var(--t-xs); text-align: center; color: var(--vl-ink); }
.spec__foot { padding: 0.9rem 1.25rem 1.1rem; border-top: 1px solid var(--border); font-size: var(--t-xs); color: var(--text-2); }

/* Caja de pasos para la landing */
.needs { border: 1px solid var(--border); border-radius: var(--vl-radius-md); padding: 1.5rem 1.5rem 1.75rem; background: var(--panel); }
.needs__title { font-size: var(--t-body); font-weight: 600; }
.needs__list { margin-top: 1rem; display: grid; gap: 0.6rem; counter-reset: need; }
.needs__list li { position: relative; padding-left: 2rem; font-size: var(--t-sm); }
.needs__list li::before { counter-increment: need; content: counter(need); position: absolute; left: 0; top: 0.05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--vl-ink); color: var(--vl-white); font-size: 0.75rem; font-weight: 600; display: grid; place-items: center; }
.needs .btn { margin-top: 1.5rem; width: 100%; }

/* ---------- Puntos ---------- */
.points { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; } }
.point__text { margin-top: 0.35rem; color: var(--text-2); font-size: var(--t-sm); line-height: 1.55; }

/* ---------- Separadores de cubeta (géneros) ---------- */
.crate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.1rem 0.75rem; margin-top: 2.75rem; }
@media (min-width: 40rem) { .crate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.divider {
  position: relative;
  height: 3.25rem;
  background: var(--panel-2);
  border-radius: 0 var(--vl-radius-sm) var(--vl-radius-sm) var(--vl-radius-sm);
}
.divider__tab {
  position: absolute;
  bottom: 100%;
  left: 0;
  max-width: 100%;
  padding: 0.3rem 0.7rem 0.15rem;
  background: inherit;
  border-radius: var(--vl-radius-sm) var(--vl-radius-sm) 0 0;
  font-size: var(--t-xs);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* pestañas escalonadas, como en una cubeta real */
.crate .divider:nth-child(3n + 2) .divider__tab { left: 50%; transform: translateX(-50%); }
.crate .divider:nth-child(3n + 2) { border-radius: var(--vl-radius-sm); }
.crate .divider:nth-child(3n) .divider__tab { left: auto; right: 0; }
.crate .divider:nth-child(3n) { border-radius: var(--vl-radius-sm) 0 var(--vl-radius-sm) var(--vl-radius-sm); }
.divider--ink { background: var(--vl-ink); color: var(--vl-white); }
.divider--green { background: var(--vl-green); color: var(--vl-white); }

/* ---------- Lugares ---------- */
.places { font-size: var(--t-xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 22em; }
.places__soft { color: var(--text-2); font-weight: 500; }

/* ---------- Proceso de la landing ---------- */
.sides { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.side { border: 1px solid var(--border); border-radius: var(--vl-radius-md); padding: 1.5rem; }
.side__title { font-size: var(--t-body); font-weight: 600; }
.side__title span { display: block; margin-top: 0.1rem; color: var(--text-2); font-weight: 400; font-size: var(--t-sm); }
.steps { margin-top: 1.25rem; display: grid; gap: 1.1rem; }
.step__title { font-weight: 600; font-size: var(--t-sm); }
.step__text { margin-top: 0.2rem; color: var(--text-2); font-size: var(--t-sm); line-height: 1.55; }

/* ---------- Guías ---------- */
.guide-list { display: grid; border-top: 1px solid var(--border); }
.guide-list li { border-bottom: 1px solid var(--border); }
.guide-list__link { display: grid; gap: 0.3rem; padding: 1.25rem 0; text-decoration: none; }
.guide-list__title { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.guide-list__link:hover .guide-list__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.guide-list__text { color: var(--text-2); font-size: var(--t-sm); max-width: 36rem; }

/* ---------- Banda final ---------- */
.band { background: var(--vl-green); color: var(--vl-white); }
.band .h-section { color: var(--vl-white); }
.band__text { margin-top: 0.9rem; color: rgba(255, 255, 255, 0.8); max-width: 34rem; }
.band :focus-visible { outline-color: var(--vl-white); }

/* ---------- Pie (marco negro) ---------- */
.site-footer { background: var(--vl-ink); color: var(--vl-white); padding-top: 3.5rem; padding-bottom: 2.5rem; font-size: var(--t-sm); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__text { margin-top: 1rem; color: rgba(255, 255, 255, 0.68); max-width: 20rem; }
.site-footer__nav { display: grid; gap: 0.55rem; align-content: start; }
.site-footer__nav a { text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { color: var(--vl-white); text-decoration: underline; }
.site-footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--t-xs); color: rgba(255, 255, 255, 0.62); }
.site-footer__legal a { color: inherit; }
.site-footer :focus-visible { outline-color: var(--vl-white); }
@media (min-width: 52rem) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Fotografía documental (huecos reservados) ---------- */
.docphoto { margin-top: 2.5rem; }
.docphoto img { width: 100%; background: var(--panel); border-radius: var(--vl-radius-md); }
.docphoto figcaption { margin-top: 0.5rem; font-size: var(--t-xs); color: var(--text-2); }

/* ---------- Tabla comparativa ---------- */
.compare { margin-top: 2rem; max-width: 46rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--vl-radius-md); }
.compare__table { width: 100%; min-width: 19rem; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.45; }
.compare caption { text-align: left; padding: 0.9rem 1.1rem; font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--border); }
.compare th, .compare td { padding: 0.7rem 1.1rem 0.7rem 0; text-align: left; vertical-align: top; }
.compare th:first-child, .compare td:first-child { padding-left: 1.1rem; }
.compare tbody tr, .compare tfoot tr { border-top: 1px solid var(--border); }
.compare thead th { font-weight: 600; padding-top: 0.9rem; }
.compare tbody th { width: 6rem; font-weight: 400; color: var(--text-2); }
.compare__same td { color: var(--text-2); }
.compare tfoot { background: var(--panel); }
.compare tfoot th { font-weight: 400; color: var(--text-2); }
.compare tfoot td { font-weight: 600; }
@media (min-width: 40rem) { .compare tbody th { width: 7.5rem; } }

/* ---------- Formulario ---------- */
.form-card { border: 1px solid var(--border); border-radius: var(--vl-radius-md); background: var(--vl-white); padding: 1.5rem 1.25rem 1.75rem; }
@media (min-width: 40rem) { .form-card { padding: 2rem 2rem 2.25rem; } }
.notice { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-radius: var(--vl-radius-sm); background: var(--panel); font-size: var(--t-sm); }
.intake { max-width: 40rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
fieldset.field { margin-bottom: 1.6rem; }
.field__label { display: block; padding: 0; margin-bottom: 0.4rem; font-size: var(--t-sm); font-weight: 600; }
.field__label em { font-style: normal; font-weight: 400; color: var(--text-2); }
.field__input {
  display: block; width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-strong); border-radius: var(--vl-radius-sm);
  background: var(--vl-white); color: var(--vl-ink);
  font: 400 1.0625rem/1.4 var(--vl-font-sans); /* ≥16px: evita el zoom de iOS */
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input::placeholder { color: var(--vl-graphite); opacity: 1; }
.field__input:hover { border-color: var(--vl-graphite); }
.field__input:focus { outline: none; border-color: var(--vl-ink); box-shadow: 0 0 0 3px rgba(17, 17, 15, 0.12); }
.field__input--area { min-height: 7rem; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(142, 27, 16, 0.12); }
.field__hint { margin: 0 0 0.9rem; font-size: var(--t-sm); color: var(--text-2); }
.field__error { margin-top: 0.4rem; font-size: var(--t-sm); font-weight: 600; color: var(--error); }

.choices { display: grid; gap: 0.5rem; }
@media (min-width: 30rem) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice {
  display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong); border-radius: var(--vl-radius-sm);
  background: var(--vl-white); cursor: pointer; font-size: var(--t-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--vl-graphite); }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--vl-ink); }
.choice:has(input:checked) { border-color: var(--vl-ink); background: var(--panel); }
.choice:has(input:checked) span { font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--vl-ink); outline-offset: 2px; }
.field--choice[aria-invalid="true"] .choice { border-color: var(--error); }

.photopick { width: 100%; }
.photopick:has(+ input:focus-visible) { outline: 2px solid var(--vl-ink); outline-offset: 3px; }
@media (min-width: 40rem) { .photopick { width: auto; } }
.field__count { margin-top: 0.75rem; color: var(--text-2); font-size: var(--t-sm); min-height: 1.2em; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.625rem; margin-top: 0.75rem; }
.contact:empty { display: none; }
@media (min-width: 40rem) { .contact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact__item { min-width: 0; }
.contact__img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel); border-radius: var(--vl-radius-sm); }
.contact__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.15rem; }
.contact__no { color: var(--text-2); font-size: var(--t-xs); }
.contact__remove { min-height: 2.75rem; min-width: 2.75rem; padding: 0 0 0 0.5rem; border: 0; background: none; color: var(--vl-ink); font: 600 var(--t-xs)/1 var(--vl-font-sans); text-decoration: underline; text-underline-offset: 0.2em; text-align: right; cursor: pointer; }

.privacy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--t-sm); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--vl-ink); }
.privacy__info { margin-top: 0.9rem; font-size: var(--t-sm); }
.privacy__info summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; color: var(--text-2); }
.privacy__list { margin-top: 0.5rem; display: grid; gap: 0.7rem; padding: 1.1rem 1.25rem; border-radius: var(--vl-radius-sm); background: var(--panel); }
.privacy__list dt { font-weight: 600; }
.privacy__list dd { color: var(--text-2); }
.privacy__more { margin-top: 0.75rem; }

.submit { margin-top: 1.75rem; }
.submit__status { margin-top: 1rem; min-height: 1.4em; font-size: var(--t-sm); color: var(--text-2); }
.submit__status[data-tone="error"] { color: var(--error); font-weight: 600; }

.received { padding: 2rem 1.5rem 2.25rem; border-radius: var(--vl-radius-md); background: var(--vl-green); color: var(--vl-white); }
.received:focus { outline: none; }
.received__mark { color: rgba(255, 255, 255, 0.78); font-size: var(--t-sm); }
.received__title { margin-top: 0.5rem; font-size: var(--t-xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.received .prose { margin-top: 1rem; }
.received__ref { margin-top: 1.5rem; font-weight: 600; }
@media (min-width: 40rem) { .received { padding: 2.5rem; } }

.wa { margin-top: 2rem; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--border); border-radius: var(--vl-radius-md); background: var(--vl-white); max-width: 24rem; }
.wa__text { margin-top: 0.4rem; color: var(--text-2); font-size: var(--t-sm); }

/* ---------- Páginas de texto: guías y legales ---------- */
.doc__head { max-width: 48rem; }
.doc__crumb { font-size: var(--t-sm); color: var(--text-2); }
.doc__crumb a { color: inherit; }
.doc__title { margin-top: 0.75rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.doc__lead { margin-top: 1.25rem; font-size: var(--t-lg); line-height: 1.5; max-width: 40rem; }
.doc__meta { margin-top: 1rem; font-size: var(--t-sm); color: var(--text-2); }
.doc__body { max-width: var(--measure); margin-top: 3rem; }
.doc__body h2 { margin-top: 2.75rem; font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: 1.6rem; font-size: var(--t-body); font-weight: 600; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body dl { margin-top: 0.9rem; }
.doc__body ul, .doc__body ol { padding-left: 1.2rem; }
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body li + li { margin-top: 0.45rem; }
.doc__body li::marker { color: var(--vl-graphite); }

.owner { margin-top: 2rem; display: grid; border: 1px solid var(--border); border-radius: var(--vl-radius-md); max-width: 40rem; overflow: hidden; }
.owner > div { display: grid; gap: 0.15rem; padding: 0.8rem 1.1rem; font-size: var(--t-sm); }
.owner > div + div { border-top: 1px solid var(--border); }
@media (min-width: 40rem) { .owner > div { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; } }
.owner dt { color: var(--text-2); }

/* ---------- Impresión ---------- */
@media print {
  .site-nav, .actions, .intake, .skip, .band, .site-footer { display: none !important; }
  .site-header { background: none; }
}

/* ---------- Fotografía ---------- */
.hero__intro { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .hero__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; } }
.hero__intro .actions { margin-top: 1.75rem; }
.hero__photo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 60%; border-radius: var(--vl-radius-md); background: var(--panel); }
@media (min-width: 40rem) { .hero__photo img { aspect-ratio: 1600 / 585; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; max-width: 46rem; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--vl-radius-md); background: var(--panel); }
.pair figcaption { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--text-2); }
.pair figcaption strong { color: var(--text); }


/* ==========================================================================
   v4 · Escaparate
   ========================================================================== */

/* Titulares romanos, como el rótulo */
.hero__title, .h-section, .doc__title, .received__title, .places, .guide-list__title {
  font-family: var(--vl-font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.hero__title { font-size: clamp(2.9rem, 1.9rem + 4vw, 5.25rem); line-height: 1; max-width: 11em; }
.h-section { font-size: clamp(2.125rem, 1.6rem + 2vw, 3.125rem); line-height: 1.04; }
.doc__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.04; }
.places { font-size: clamp(2rem, 1.5rem + 1.9vw, 2.875rem); line-height: 1.08; }
.places__soft { font-weight: 400; color: var(--text-2); }
.guide-list__title { font-size: clamp(1.625rem, 1.4rem + 0.8vw, 1.9375rem); line-height: 1.12; }
.received__title { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1.08; }
.doc__body h2 { font-family: var(--vl-font-serif); font-weight: 400; letter-spacing: 0; font-size: clamp(1.75rem, 1.5rem + 0.9vw, 2.125rem); line-height: 1.1; }
.spec__title { font-family: var(--vl-font-serif); font-weight: 400; font-size: 1.375rem; letter-spacing: 0; }

/* Rótulo: OVILUNE en latón y RECORDS en texto vivo, legible a cualquier tamaño */
.brand { display: inline-grid; justify-items: center; row-gap: 0.4em; text-decoration: none; color: var(--brass); padding: 0.9rem 0; }
.brand__word { width: 9.5rem; }
.brand__sub {
  font: 500 0.6875rem/1 var(--vl-font-sans);
  letter-spacing: 0.62em;
  margin-right: -0.62em;       /* compensa el interletraje final para centrar */
  text-transform: uppercase;
}
.brand:hover { color: var(--brass-hover); }
@media (min-width: 40rem) {
  .brand__word { width: 11.5rem; }
  .brand__sub { font-size: 0.75rem; }
}
.brand--footer { padding: 0; }
.brand--footer .brand__word { width: 13rem; }
.brand--footer .brand__sub { font-size: 0.8125rem; }

/* Cabecera: el toldo de la fachada */
.site-header { background: var(--lacquer); color: var(--ivory); border-bottom: 1px solid rgba(205, 182, 138, 0.22); }
.site-header__bar { min-height: 4.75rem; }
.site-nav a { color: rgba(238, 231, 216, 0.78); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.site-header :focus-visible, .site-footer :focus-visible, .hero--facade :focus-visible, .band :focus-visible { outline-color: var(--brass); }
@media (min-width: 40rem) { .site-header__bar { min-height: 5.75rem; } }
@media (max-width: 26rem) {
  .brand__word { width: 8rem; }
  .brand__sub { font-size: 0.625rem; letter-spacing: 0.5em; margin-right: -0.5em; }
  .site-nav { gap: 1rem; }
}

/* Portada: la fachada continúa bajo la cabecera y la foto queda como escaparate */
.hero--facade {
  background: var(--lacquer);
  color: var(--ivory);
}
.hero--facade .hero__title { color: var(--ivory); }
.hero--facade .lead { color: rgba(238, 231, 216, 0.86); }
.hero--facade .hero__note { color: rgba(238, 231, 216, 0.64); }
.hero--facade .btn--primary { background: var(--brass); border-color: var(--brass); color: var(--lacquer); }
.hero--facade .btn--primary:hover { background: var(--brass-hover); border-color: var(--brass-hover); }
.hero--facade .link-wa { color: var(--ivory); }

/* (el escaparate de la portada está en la capa v5) */

/* Landing: la caja de requisitos es la hoja pegada en el cristal */
.hero--facade .needs { background: var(--vl-white); border-color: transparent; color: var(--vl-ink); }
.hero--facade .needs .hero__note { color: var(--text-2); }
.hero--facade .needs .btn { background: var(--lacquer); border-color: var(--lacquer); color: var(--ivory); }
.hero--facade .needs .btn:hover { background: var(--lacquer-2); }

/* Botones sobre blanco: laca con letra marfil */
.btn { color: var(--ivory); }
.btn--line, .btn--light { color: var(--vl-ink); }
.needs__list li::before { background: var(--lacquer); color: var(--brass); }

/* Banda final y confirmación: el mismo negro de la fachada */
.band { background: var(--lacquer); color: var(--ivory); }
.band .h-section { color: var(--brass); }
.band__text { color: rgba(238, 231, 216, 0.78); }
.band .btn--light { background: var(--brass); border-color: var(--brass); color: var(--lacquer); }
.band .btn--light:hover { background: var(--brass-hover); border-color: var(--brass-hover); }
.received { background: var(--lacquer); color: var(--ivory); }
.received__title { color: var(--brass); }

/* Pie */
.site-footer { background: var(--lacquer); color: var(--ivory); border-top: 1px solid rgba(205, 182, 138, 0.22); }
.site-footer__text { margin-top: 1.25rem; color: rgba(238, 231, 216, 0.66); }
.site-footer__nav a { color: rgba(238, 231, 216, 0.84); }
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { color: var(--brass); }
.site-footer__legal { border-top-color: rgba(205, 182, 138, 0.18); color: rgba(238, 231, 216, 0.58); }

::selection { background: var(--brass); color: var(--lacquer); }

@media print {
  .hero--facade, .site-header { background: none !important; color: #000; }
  .hero--facade .hero__title { color: #000; }
}


/* ==========================================================================
   v5 · Escaparate iluminado: más aire, una entrada y respuestas al gesto
   ========================================================================== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }
@media (min-width: 40rem) { :root { --section: 7rem; } }
@media (min-width: 64rem) { :root { --section: 9rem; } }
.split { gap: 2rem; }
@media (min-width: 64rem) { .split { gap: 5rem; } }

.hero__title { font-size: clamp(3rem, 1.9rem + 4.6vw, 5.75rem); line-height: .98; max-width: 10em; }
.hero__title span { display: block; }
.h-section { font-size: clamp(2.25rem, 1.6rem + 2.3vw, 3.5rem); line-height: 1.02; max-width: 12em; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 34rem; }
.section__intro { margin-top: 1.25rem; }
.hero.hero--facade { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

/* Grano de laca, casi invisible */
.site-header, .hero--facade, .band, .site-footer, .pause { position: relative; isolation: isolate; }
.site-header::before, .hero--facade::before, .band::before, .site-footer::before, .pause::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("../img/grano.svg");
}

/* Cabecera fija que se compacta al bajar (motion.js) */
.site-header { position: sticky; top: 0; z-index: 20; transition: box-shadow .4s var(--ease); }
.site-header.is-compact { box-shadow: 0 1px 0 rgba(205, 182, 138, .22), 0 10px 30px -18px rgba(0, 0, 0, .8); }
.site-header__bar { transition: min-height .45s var(--ease); }
.brand__word { transition: width .45s var(--ease); }
.brand__sub { transition: font-size .45s var(--ease); }
.is-compact .site-header__bar { min-height: 4rem; }
.is-compact .brand { padding: .55rem 0; }
.is-compact .brand__word { width: 8.75rem; }
.is-compact .brand__sub { font-size: .625rem; }
@media (max-width: 26rem) { .is-compact .brand__word { width: 7.25rem; } }
html { scroll-padding-top: 5rem; }

/* Menú: línea de latón que se dibuja */
.site-nav a { position: relative; text-decoration: none !important; transition: color .25s var(--ease); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Escaparate de la portada */
.hero--facade:has(.window) {
  --base: clamp(5rem, 15vw, 12rem);
  padding-bottom: 0;
  background: linear-gradient(var(--lacquer) 0 calc(100% - var(--base)), var(--bg) 0);
}
.hero--facade:has(.window)::before { bottom: var(--base); }
.hero--facade:has(.window) + .section { border-top: 0; }
.window { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.window__glass { position: relative; overflow: hidden; border-radius: 2px; background: #0c0b09; }
.window__glass img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 60%; border-radius: 0; }
@media (min-width: 40rem) { .window__glass img { aspect-ratio: 1600 / 640; } }
.window__glass::after {               /* luz cálida de las lámparas */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 80% at 22% 0%, rgba(255, 196, 120, .22), transparent 70%), radial-gradient(40% 60% at 85% 10%, rgba(255, 190, 110, .14), transparent 70%);
}
.window__frame { position: absolute; inset: .75rem; border: 1px solid rgba(205, 182, 138, .6); pointer-events: none; }
@media (min-width: 40rem) { .window__frame { inset: 1.1rem; } }

/* Entrada: se encienden las luces (una vez, solo CSS) */
.window__glass img { animation: lights-img 1.9s .35s var(--ease) both; }
.window__glass::after { animation: lights-glow 2.4s .5s var(--ease) both; }
.window__frame { animation: frame-draw 1.3s 1.15s var(--ease) both; }
.hero--facade .hero__title span, .hero--facade .hero__title:not(:has(span)) { animation: rise 1.1s var(--ease) both; }
.hero--facade .hero__title span:nth-child(2) { animation-delay: .12s; }
.hero--facade .hero__intro > div, .hero--facade .hero__grid > div > .lead { animation: rise 1.1s .3s var(--ease) both; }
@keyframes lights-img { from { filter: brightness(.28) saturate(.45) contrast(1.1); transform: scale(1.025); } to { filter: none; transform: none; } }
@keyframes lights-glow { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: .8; } }
@keyframes frame-draw { from { clip-path: inset(0 100% 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes rise { from { opacity: .15; transform: translateY(.4em); } to { opacity: 1; transform: none; } }

/* Pausa: foto a todo el ancho */
.pause { background: var(--lacquer); }
.pause img { width: 100%; height: clamp(16rem, 42vw, 34rem); object-fit: cover; object-position: 50% 45%; }
.pause figcaption { padding-block: 1rem 1.25rem; color: rgba(238, 231, 216, .7); font-size: var(--t-sm); }
.pause + .section { border-top: 0; }

/* Ficha: calificaciones como etiquetas de latón */
.spec__grade { background: var(--lacquer); color: var(--brass); border-radius: 2px; }

/* Cubeta: el separador se levanta al rebuscar */
.divider { transform-origin: 50% 100%; transition: transform .35s var(--ease), background-color .35s var(--ease); }
.divider__tab { transition: color .35s var(--ease); }
.crate .divider:hover { transform: translateY(-.4rem) rotate(-1.2deg); background: var(--lacquer); }
.crate .divider:hover .divider__tab { color: var(--brass); }

/* Guías: el subrayado se dibuja */
.guide-list__link { padding: 1.5rem 0; }
.guide-list__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .06em; transition: background-size .5s var(--ease); }
.guide-list__link:hover .guide-list__title, .guide-list__link:focus-visible .guide-list__title { text-decoration: none; }
.guide-list__link:hover .guide-list__title span, .guide-list__link:focus-visible .guide-list__title span { background-size: 100% 1px; }

/* Botones: un leve ascenso al pasar por encima */
.btn { transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header { position: static; }
  .pause, .window__frame { display: none; }
}
