/* Telicolor web prototype. Palette and type from web/direccion-de-arte.md, refined after Christian's
   20-oct review (odd/tasks/web-telicolor.md L7). Mobile first. Colours only through the variables below,
   so the page background can be swapped in one place (--bg). */
:root {
  --azul: #2D4C6D;
  --azul-profundo: #1B202E;
  --pizarra: #6982A0;
  --gris-tela: #B4B5B4;
  --hueso: #F6F3EE;
  --blanco-calido: #FBFBFA;
  --blanco: #FFFFFF;
  --pizarra-texto: #5A7392;   /* #6982A0 one step darker: 4.7:1 on --bg, 4.9:1 on white */
  --wa: #1F7A4D;
  --wa-hover: #165C3A;
  --bajo: #8A5A12;
  --agotado: #6B6C6B;

  --bg: var(--blanco-calido);
  --surface: var(--blanco);
  --ink: var(--azul-profundo);
  --ink-soft: #3B4252;
  --ink-muted: #4A5163;
  --label: var(--pizarra-texto);
  --hairline: rgba(180, 181, 180, .5);
  --rule-soft: #E6E3DD;
  --ink-on-dark: #D9DCE2;

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-micro: 360ms;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --max: 1280px;
  /* One container for the whole site: every band pads its sides by --gutter, so the header logo,
     the first heading of each page and the footer start at the same x. 100% is the band's own
     width (the viewport without its scrollbar), resolved where the variable is used. */
  --gutter: max(var(--pad), (100% - var(--max)) / 2);   /* only on full-width bands */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azul); }

/* Type: Archivo for titles (sentence case), Archivo caps only for the logo's voice (hero title,
   wordmark, family names). Labels and eyebrows are Source Serif italic, sentence case. */
h1, h2, h3, .btn, .site-nav, .menu-toggle, .num { font-family: var(--font-display); }
h1, h2, h3 { font-weight: 800; line-height: 1.05; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.05rem; letter-spacing: 0; }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.eyebrow, .label {
  margin: 0 0 .75rem;
  font: italic 400 1rem/1.3 var(--font-body);
  letter-spacing: 0; text-transform: none; color: var(--label);
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .9rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  position: relative; z-index: 20;
}
.site-header--over {
  position: absolute; inset: 0 0 auto 0;
  background: transparent; border-bottom: 0;
  justify-content: flex-end;
}

/* Brand: Richard's original logo, untouched, on a white plate with square corners and a fine border.
   The plate is the one frame in the site. It only casts a shadow over the hero photo. */
.brand, .hero__brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__plate, .hero__plate {
  display: block; flex: none; background: var(--blanco); border-radius: 0;
  border: 2px solid var(--azul);
}
.hero__plate { box-shadow: 0 16px 40px -18px rgb(27 32 46 / .35); }
.brand__plate { padding: 6px 10px; }
.hero__plate { padding: clamp(10px, 1.4vw, 16px) clamp(14px, 2vw, 24px); }
.brand__logo { display: block; width: auto; height: 30px; }
.hero__logo { display: block; width: clamp(200px, 26vw, 340px); height: auto; }
.hero__brand { margin: 0 0 2rem; }

.menu-toggle {
  display: none;
  font-size: .95rem; font-weight: 600;
  background: none; border: 1px solid currentColor; color: var(--ink);
  padding: .55rem .95rem; border-radius: 2px; cursor: pointer;
}
.site-header--over .menu-toggle { color: var(--blanco); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-nav a {
  position: relative; display: inline-block; padding: .35rem 0;
  font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
/* The one added micro-interaction: the underline grows from the left. */
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-micro) var(--ease-out);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header--over .site-nav a { color: var(--blanco); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* With JS the nav collapses into the "Menú" button below 900px. */
@media (max-width: 899px) {
  .js .menu-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .js .site-nav a { padding: .7rem 0; font-size: 1.05rem; }
  .js .site-header--over .site-nav.is-open {
    background: var(--azul-profundo); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); width: calc(100% + 2 * var(--pad));
  }
}

/* ---------- buttons, availability, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  background: var(--azul); color: var(--blanco); border: 1px solid var(--azul); border-radius: 2px;
  cursor: pointer; transition: background-color var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.btn:hover { background: var(--azul-profundo); border-color: var(--azul-profundo); }
.btn--light { background: var(--blanco); color: var(--ink); border-color: var(--blanco); }
.btn--light:hover { background: var(--hueso); border-color: var(--hueso); }
.btn--ghost { background: transparent; color: var(--azul); }
.btn--ghost:hover { background: var(--azul); color: var(--blanco); }
.btn--ghost-light { background: transparent; color: var(--blanco); border-color: var(--blanco); }
.btn--ghost-light:hover { background: var(--blanco); color: var(--ink); border-color: var(--blanco); }
.btn--wa { background: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); }
:focus-visible { outline: 2px solid var(--pizarra); outline-offset: 3px; }

/* Availability: plain text with a 6 px dot, no pill. */
.estado { display: inline-flex; align-items: center; gap: .45rem; font: 400 .95rem/1.3 var(--font-body); white-space: nowrap; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.estado--ok { color: var(--azul); }
.estado--low { color: var(--bajo); }
.estado--out { color: var(--agotado); text-decoration: line-through; text-decoration-thickness: 1px; }
.tag-ejemplo {
  display: inline-block; vertical-align: baseline; margin-left: .35rem;
  font: italic 400 .8rem/1 var(--font-body);
  color: var(--label); background: rgba(105, 130, 160, .12); padding: .2rem .4rem; border-radius: 2px;
}

/* ---------- sections ---------- */
section, .ficha { padding: var(--section-y) var(--gutter); }
.section-head { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.section-lead { max-width: 38rem; margin: 0; color: var(--ink-soft); }

/* hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92svh; display: flex; align-items: flex-end;
  padding-top: 6rem; color: var(--blanco); background: var(--azul-profundo);
}
.hero__media { position: absolute; inset: -4% 0 auto 0; height: 108%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Scrim: soft dark gradient that pools behind the text block (bottom-left) and under the nav. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(27, 32, 46, .72) 0%, rgba(27, 32, 46, .4) 45%, rgba(27, 32, 46, 0) 75%),
    linear-gradient(to top, rgba(27, 32, 46, .6) 0%, rgba(27, 32, 46, .25) 40%, rgba(27, 32, 46, 0) 65%),
    linear-gradient(to bottom, rgba(27, 32, 46, .45) 0%, rgba(27, 32, 46, 0) 22%),
    rgba(27, 32, 46, .12);
}
.hero__content { width: 100%; }
.hero__title {
  color: var(--blanco); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2.6rem, 10vw, 6rem); line-height: .92; margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
/* Text mask: each line clips its inner span, which rises from below. */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__inner { display: block; }
/* Page titles (app.js splits them while they rise) are sentence case with descenders: a deeper mask. */
main h1:not(.hero__title) .line { padding-bottom: .22em; margin-bottom: -.22em; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 30rem; margin: 0 0 1.75rem; text-wrap: balance; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* families: an editorial list, rows separated by hairlines */
.familias { overflow-x: clip; }
.familias__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.familia { border-top: 1px solid var(--hairline); }
.familia__row {
  display: grid; gap: .6rem 2rem; grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.5rem, 4vw, 2.75rem) 0; color: var(--ink); text-decoration: none;
}
.familia__name {
  font: 800 clamp(2rem, 6vw, 4rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em;
  overflow-wrap: anywhere;
  transition: transform var(--t-micro) var(--ease-out);
}
.familia__row:hover .familia__name, .familia__row:focus-visible .familia__name { transform: translateX(8px); }
.familia__desc { display: flex; flex-direction: column; gap: .4rem; max-width: 34rem; font-size: 1.05rem; color: var(--ink-soft); }
.familia__meta { font: italic 400 1rem/1.3 var(--font-body); color: var(--label); }
.familia--activa .familia__meta { color: var(--azul); }
.familia--pronto .familia__name { color: var(--ink-muted); }
/* The Camisería swatch bleeds to the right edge of the viewport. */
.familia__swatch {
  display: block; height: clamp(9rem, 22vw, 15rem); overflow: hidden; background: var(--surface);
  margin-right: calc((min(var(--max), 100vw - 2 * var(--pad)) - 100vw) / 2);
}
/* Wider than its frame so the pinked edges of the scan stay outside. */
.familia__swatch img { width: 112%; max-width: none; height: 100%; margin-left: -6%; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) {
  .familia__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
  .familia__swatch { grid-column: 2; margin-top: 1rem; }
}

/* fabric grid */
.fichas { background: var(--surface); }
.tela-grid { display: grid; gap: 2.25rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tela-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2rem; } }
.tela-card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}
.tela-card__zoom { position: absolute; inset: 0; display: block; }
.tela-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tela-card__muestra { object-fit: cover; }
/* Wider than its frame so the pinked edges of the scan stay outside. */
.tela-card__media .tela-card__muestra { left: -6%; width: 112%; max-width: none; }
/* Swatch to shirt: a 350 ms crossfade, on hover with a mouse, on tap with a finger (app.js). */
.tela-card__camisa { object-fit: contain; background: var(--surface); opacity: 0; transition: opacity 350ms ease; }
.tela-card__media:focus-visible .tela-card__camisa,
.tela-card.is-swapped .tela-card__camisa { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tela-card__media:hover .tela-card__camisa { opacity: 1; }
}
.tela-card__body { padding-top: .9rem; }
.tela-card h3 { margin: 0 0 .45rem; font: 600 clamp(1rem, 2.6vw, 1.2rem)/1.25 var(--font-body); letter-spacing: 0; }
.tela-card h3 a { color: var(--ink); text-decoration: none; }
.tela-card__estado { margin: 0; }
.tela-card__cta {
  display: inline-block; margin-top: .55rem; font: 600 .95rem/1.2 var(--font-display); color: var(--azul); text-decoration: none;
  transition: opacity var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
/* "Ver ficha" shows on hover with a mouse; on touch, and without JS, it is always there. */
@media (hover: hover) and (pointer: fine) {
  .js .tela-card__cta { opacity: 0; transform: translateX(-6px); }
  .js .tela-card:hover .tela-card__cta, .js .tela-card:focus-within .tela-card__cta { opacity: 1; transform: none; }
}

/* about teaser and contact strip */
.teaser > * { max-width: 52rem; }
.teaser p { font-size: 1.15rem; }
.contact-strip { background: var(--azul); color: var(--blanco); display: flex; flex-direction: column; gap: 1.25rem; }
.contact-strip__title { margin: 0; font: 800 clamp(1.6rem, 5vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.01em; }
.contact-strip__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .contact-strip { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- product sheet ---------- */
.breadcrumb { font: italic 400 .95rem/1.4 var(--font-body); color: var(--label); margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.breadcrumb a { color: var(--label); }
.ficha__head h1 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); overflow-wrap: anywhere; }
.ficha__estado { margin: 0 0 2rem; }
.ficha__fotos { display: grid; gap: 1.5rem; }
.ficha__fotos figure { margin: 0; }
.ficha__fotos figcaption { font-size: .9rem; color: var(--ink-muted); margin-top: .6rem; }
.ficha__camisa img { background: var(--surface); }
.lupa-target {
  position: relative; background: var(--surface); cursor: crosshair;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.lupa-target img { -webkit-user-drag: none; pointer-events: none; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-mouse { display: inline; } .hint-touch { display: none; } }
.lupa {
  /* content-box: the 3px border must not shrink the canvas, or the scan stops being 1 source px = 1 device px */
  box-sizing: content-box;
  position: absolute; z-index: 50; pointer-events: none;
  border: 3px solid var(--blanco); box-shadow: 0 10px 30px rgba(27, 32, 46, .35);
  background: var(--blanco);
}
.lupa[hidden] { display: none; }
.ficha__info { margin-top: 2.5rem; display: grid; gap: 2rem; }
.ficha__tabla { width: 100%; border-collapse: collapse; background: var(--surface); }
.ficha__tabla caption { text-align: left; font: italic 400 1rem/1.2 var(--font-body); color: var(--label); padding: 0 0 .9rem; }
.ficha__tabla th, .ficha__tabla td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--rule-soft); }
.ficha__tabla th { width: 38%; font: italic 400 .95rem/1.4 var(--font-body); color: var(--label); }
.ficha__tabla ul { margin: 0; padding-left: 1.1rem; }
.ficha__side { display: flex; flex-direction: column; gap: 1.25rem; }
.ficha__acciones { display: flex; flex-direction: column; gap: .75rem; }
.ficha__nota { margin: 0; font-size: .9rem; color: var(--ink-muted); }
.ficha-acceso:has(> [hidden]) { display: none; }
.ficha-acceso > section { padding: 0; }
.ficha-acceso button { min-height: 48px; }
@media (min-width: 900px) {
  .ficha__fotos { grid-template-columns: 1fr 1fr; align-items: start; }
  .ficha__info { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 3rem; }
  .ficha__side { position: sticky; top: 2rem; }
}

/* ---------- catalogue ---------- */
.book-wrap { position: relative; background: var(--surface); padding: clamp(.75rem, 3vw, 1.25rem); }
.book { margin: 0 auto; }
.book-page { background: var(--blanco); overflow: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: contain; }
.book-page { position: relative; }
/* S22: the sheet as painted (app.js crispPage); the <img> under it keeps the layout and the loupe */
.book-page .book-sheet { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.book-page img.is-under { opacity: 0; }
.book-page[data-density="hard"] { background: var(--hueso); box-shadow: inset 0 0 0 1px rgba(180, 181, 180, .6); }
.book:not(.is-ready) { display: grid; gap: 1rem; }
.book-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.book-controls .btn { padding: .7rem 1rem; }
.book-count { font: 600 .95rem/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center; }

/* ---------- about ---------- */
.about__title {
  max-width: 36ch; margin: 0 0 1.25rem; text-wrap: balance;
  font: 400 clamp(1.9rem, 4.4vw, 3.6rem)/1.15 var(--font-body); letter-spacing: -.01em; color: var(--ink);
}
.about__sub { margin: 0; color: var(--ink-soft); }
/* The sample book: the six real scans side by side, edge to edge, on white so their pinked edges read. */
.muestrario { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--surface); }
.muestrario__lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0;
}
@media (min-width: 900px) { .muestrario__lista { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.muestrario__item a { display: block; color: var(--ink); text-decoration: none; }
.muestrario__item img { width: 100%; }
.muestrario__nombre {
  display: block; padding: .6rem .75rem 0; font: italic 400 .9rem/1.3 var(--font-body); color: var(--ink-soft);
}
.muestrario__item a:hover .muestrario__nombre { color: var(--azul); }
/* Three short lines with air between them: no numbering, no separators. */
.about__facts .facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: minmax(0, 1fr);
}
.fact { margin: 0; max-width: 24ch; font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.3 var(--font-body); color: var(--ink); }
@media (min-width: 900px) {
  .about__facts .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.about .about__how { padding-top: 0; }
.pasos { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.paso { display: grid; gap: 1.25rem; align-items: center; }
.paso__texto h3 { margin: 0 0 .5rem; font: 600 clamp(1.15rem, 2.4vw, 1.4rem)/1.25 var(--font-body); }
.paso__texto p { margin: 0; max-width: 34rem; color: var(--ink-soft); }
@media (min-width: 900px) { .paso { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.about__cierre { max-width: 40rem; margin: clamp(2.5rem, 6vw, 4rem) 0 0; color: var(--ink-soft); }
.about__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The loupe crop: drawn at its own size (1 CSS px = 1 source px), so --cm is 1 cm of the fabric. */
.pieza-lupa { margin: 0; }
.pieza-lupa__ventana { position: relative; height: 260px; max-width: 420px; overflow: hidden; background: var(--surface); }
.pieza-lupa__ventana img { width: 100%; height: 100%; max-width: none; object-fit: none; object-position: 50% 50%; }
.pieza-lupa__barra {
  position: absolute; left: 1rem; bottom: 1rem; width: var(--cm); height: 4px; background: var(--azul-profundo);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .8);
}
.pieza-lupa__barra span {
  position: absolute; left: 0; bottom: 8px; padding: .1rem .35rem;
  font: 600 .8rem/1.2 var(--font-display); color: var(--ink); background: rgba(255, 255, 255, .85);
}
.pieza-lupa figcaption { margin-top: .6rem; font-size: .9rem; color: var(--ink-muted); }

/* Availability example: the same chips as on the sheets. */
.stock { list-style: none; margin: 0; padding: 0; max-width: 420px; }
.stock li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: .7rem 0; }
.stock li + li { border-top: 1px solid var(--rule-soft); }
.stock__nombre { font-weight: 600; }
.stock__estado { display: inline-flex; align-items: baseline; white-space: nowrap; }

/* WhatsApp message preview: the bubble WhatsApp draws for a sent message. */
.wa-preview { margin: 0; max-width: 420px; }
.wa-burbuja {
  position: relative; display: inline-block; margin: 0; padding: .6rem .8rem;
  max-width: min(100% - 10px, 30rem); font: 400 1rem/1.4 var(--font-body); color: #111B21;
  background: #D9FDD3; border-radius: 8px 0 8px 8px;
}
/* The tail on the top right corner, as WhatsApp draws a sent message. */
.wa-burbuja::after {
  content: ""; position: absolute; top: 0; right: -9px; width: 10px; height: 12px;
  background: #D9FDD3; clip-path: polygon(0 0, 100% 0, 0 100%);
}
.wa-preview figcaption { margin-top: .5rem; font-size: .9rem; color: var(--ink-muted); }

/* ---------- contact ---------- */
/* Two columns: WhatsApp and the data in type on the page background, a real fabric scan the full height on
   the right. No panels: the green button is the only strong colour on the page. */
.contacto { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.contacto__main { padding: var(--section-y) var(--pad); }
.contacto__main .section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.contacto__whatsapp { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contacto__canal { margin: 0; font: italic 400 1.05rem/1.3 var(--font-body); color: var(--label); }
.contacto__numero {
  margin: 0; font-size: clamp(2rem, 7.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.015em;
  color: var(--ink); white-space: nowrap;
}
.contacto__nota { margin: -.35rem 0 .5rem; }
.nota-ejemplo { font: italic 400 .85rem/1.3 var(--font-body); color: var(--label); }
.contacto__whatsapp .wa-preview { margin-bottom: .5rem; }
.contacto__datos { margin: clamp(2.5rem, 6vw, 3.5rem) 0 0; display: grid; gap: 1.5rem; }
.contacto__datos dt { font: italic 400 1rem/1.3 var(--font-body); color: var(--label); margin-bottom: .25rem; }
.contacto__datos dd { margin: 0; font-size: 1.1rem; line-height: 1.55; overflow-wrap: anywhere; }
.contacto__tela { margin: 0; display: flex; flex-direction: column; }
.contacto__tela-marco { position: relative; flex: 1; min-height: 22rem; overflow: hidden; background: var(--surface); }
/* Wider and taller than its frame so the pinked edges of the scan stay outside. */
.contacto__tela-marco img { position: absolute; inset: -6% -8%; width: 116%; height: 112%; max-width: none; object-fit: cover; }
.contacto__tela figcaption { margin: 0; padding: .7rem var(--pad) 1.5rem; font-size: .9rem; color: var(--ink-muted); }
@media (min-width: 900px) {
  /* The band starts at the site gutter; the scan bleeds to the right edge. */
  .contacto { padding-left: var(--gutter); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: calc(100svh - 76px); }
  .contacto__main { padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) 0; }
  .contacto__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .contacto__datos > div:nth-child(2) { grid-row: span 2; }
  .contacto__tela figcaption { padding: .7rem 0 1.25rem; }
}

/* ---------- 404 ---------- */
.no-encontrada { min-height: 60svh; }
.no-encontrada > * { max-width: 40rem; }
.no-encontrada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--azul-profundo); color: var(--ink-on-dark); padding: 3rem var(--gutter) 2rem; font-size: .95rem; }
.site-footer a { color: var(--blanco); }
.site-footer .tag-ejemplo { color: var(--blanco); background: rgba(255, 255, 255, .15); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.25rem; }
.footer-grid p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.footer-logo { width: 200px; background: var(--blanco); padding: .5rem .75rem; margin-bottom: 1rem; }
.footer-note { max-width: var(--max); margin: 2rem auto 0; font-size: .85rem; color: var(--gris-tela); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.3fr 1.3fr; } }

/* ---------- motion (app.js) ---------- */
/* html.entrada exists only with JS and without reduced motion, and only until app.js has set the starting
   states (3 s at most): it keeps the entrance elements from showing in their final place for a frame first. */
.entrada .hero__plate, .entrada .brand__plate, .entrada main h1, .entrada .muestrario__item,
.entrada .ficha__muestra .lupa-target, .entrada .book-wrap, .entrada .contacto .wa-burbuja { visibility: hidden; }
/* The curtain over the catalogue while the closed book enters: touches go through it to the book. */
.cortina { position: absolute; inset: 0; z-index: 30; background: var(--bg); pointer-events: none; transform-origin: 50% 100%; }
/* The sheet of paper over a fabric sheet's swatch: its top edge lifts first (the part in view), hinged at the
   bottom, then app.js removes it. */
.velo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 1800px; }
.velo__hoja {
  position: absolute; inset: 0; transform-origin: 50% 100%; background: var(--surface);
  box-shadow: 0 0 32px rgb(27 32 46 / .22);
}

/* ---------- Productos submenu (S19): Telas (Drill, Denim, Camisería, Tejido de punto) and Prendas ---------- */
.nav-sub { position: relative; }
.site-nav .nav-sub__menu { display: none; }
.nav-sub__grupo { display: block; padding: .35rem 0 .1rem; font: italic 400 .95rem/1.3 var(--font-body); color: var(--label); }
@media (min-width: 900px) {
  .site-nav .nav-sub__menu {
    position: absolute; top: 100%; left: -1rem; z-index: 30; min-width: 13rem;
    flex-direction: column; gap: 0; padding: .6rem 1rem .8rem;
    background: var(--surface); border: 1px solid var(--hairline);
  }
  .nav-sub:hover .nav-sub__menu, .nav-sub:focus-within .nav-sub__menu { display: flex; }
  .site-nav .nav-sub__menu ul { flex-direction: column; gap: 0; padding-left: .75rem; }
  .site-header--over .nav-sub__menu a { color: var(--ink); text-shadow: none; }
}
@media (max-width: 899px) {
  .site-nav .nav-sub__menu { display: flex; flex-direction: column; gap: 0; padding: 0 0 .25rem 1rem; }
  .site-nav .nav-sub__menu ul { flex-direction: column; gap: 0; padding: 0 0 0 .75rem; }
  .site-header--over .nav-sub__grupo { color: var(--ink-on-dark); }
}

/* ---------- Productos page: families, articles and their colour cards ---------- */
.familia-bloque { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--hairline); scroll-margin-top: 1rem; }
.familia-bloque__head { margin: 0 0 1.5rem; }
.familia-bloque__head h2 {
  margin: 0 0 .5rem; font: 800 clamp(2rem, 5vw, 3.25rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em;
}
.familia-bloque__nota, .familia-bloque__pronto { margin: 0 0 2rem; font: italic 400 1rem/1.4 var(--font-body); color: var(--label); }
.articulos { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.articulo {
  display: grid; gap: 1rem 2.5rem; grid-template-columns: minmax(0, 1fr);
  padding: 1.75rem 0; border-top: 1px solid var(--rule-soft);
}
@media (min-width: 900px) {
  .articulo { grid-template-columns: 11rem minmax(0, 1fr) 21rem; align-items: start; }
}
.articulo__nombre { margin: 0; font: 800 1.35rem/1.1 var(--font-display); }
.carta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem .75rem; }
.carta__color { display: flex; flex-direction: column; gap: .35rem; width: 4.75rem; }
.carta__cuadro { display: block; width: 4.75rem; height: 4.75rem; border: 1px solid var(--hairline); }
.carta__nombre { font-size: .85rem; line-height: 1.2; color: var(--ink-soft); overflow-wrap: anywhere; }
.articulo__datos { margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.articulo__datos div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
.articulo__datos dt { color: var(--label); font-style: italic; }
.articulo__datos dd { margin: 0; color: var(--ink); }
.articulo__cta { grid-column: 1 / -1; justify-self: start; font-weight: 600; color: var(--azul); text-underline-offset: .2em; }
@media (min-width: 900px) { .articulo__cta { grid-column: 2 / 3; } }
.productos--prendas { padding-top: 0; }

/* Reduced motion: no smooth scroll, transitions become instant (GSAP is skipped in app.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
