/* LIVIN tienda: shared foundation.
   Tokens, reset, base type, layout, and every shared component. Page-only CSS lives in
   css/pages/<page>.css. Class names are Spanish (BEM-ish: .bloque__parte--variante); state
   classes are .is-*. See README for the component markup. */

/* ------------------------------------------------------------------ tokens */
:root {
  /* official palette */
  --blanco: #FFFFFF;
  --tinta: #111111;
  --tinta-2: #4A4A4A;
  --peach: #FFAAA9;
  --peach-claro: #FDD7D5;
  --lime: #D3E579;
  --lime-claro: #E6EDAC;
  --butter: #FFEA8F;
  --butter-claro: #FCECB8;
  --sky: #ACDCEA;
  --sky-claro: #D0EEF4;
  /* frisante fields follow the real cans */
  --lila: #DFB4D5;
  --lila-claro: #EAD3E6;
  --ciruela: #230B1B;                /* near-black plum (was #4A1739): the #561B42 can now reads lighter than its field */
  --ciruela-texto: #FBEFF5;
  /* derived */
  --acento: var(--peach);            /* badge (black text on it: 10.4:1) */
  --rosa: #D8345A;                   /* the comp's deep pink, derived from peach: 4.6:1 on white (white numerals, error text),
                                        3.8:1 on butter and 3.5:1 on peach light, so there it is display-size text only */
  /* each hue deep enough to be read as display lettering on its own light tone (the entrance's big words, 2026-11-18:
     "en algunos sabores las letras se pierden con el fondo"): all 3.45:1 there, like --rosa on peach light (3.48:1).
     Butter leans to amber (hue 80° instead of 97°): a yellow darkened on its own hue turns olive. */
  --butter-hondo: #A67500;
  --sky-hondo: #0087A2;
  --lila-hondo: #B54A8D;
  --linea-control: #8A8A8A;          /* form control edges on white (3.45:1) */
  --suelo-tienda: #F8F4F1;           /* studio ground (the comp's lit wall): assets/tienda/hero-latas.webp is transparent over it */
  --linea: #DCDCDC;                  /* hairlines and separators on white */
  --linea-suave: #ECECEC;
  --gris-campo: #F4F4F4;             /* neutral fill for controls only, never for content */
  --deshabilitado-fondo: #E6E6E6;
  --deshabilitado-texto: #5C5C5C;
  /* secondary text tinted from each hue (all ≥ 6.5:1 on their strong and light tones) */
  --tinta-butter: #5C4A12;
  --tinta-peach: #5E2324;
  --tinta-sky: #1D4553;
  --tinta-lime: #3E4A12;
  --tinta-lila: #55264B;
  --tinta-ciruela: #E9C6D9;
  --tinta-arena: #5D4A3C;            /* on --suelo-tienda (7.65:1), from the ground's own 26° hue */

  /* type */
  --fuente: "Mulish", ui-sans-serif, sans-serif;
  --fuente-display: "Mulish", sans-serif; /* since 2026-11-17 only the brand's type: display words are HERBI outlines (svg), so this only sets their hidden .sr-only text */
  --t-micro: 0.75rem;
  --t-chico: 0.875rem;
  --t-cuerpo: clamp(1rem, 0.94rem + 0.18vw, 1.0625rem);
  --t-lead: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  --t-h4: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
  --t-h2: clamp(2.125rem, 1.1rem + 3.1vw, 3.75rem);
  --t-h1: clamp(2.75rem, 1.3rem + 4.2vw, 5.125rem);
  --t-display: clamp(2.5rem, 1.2rem + 3.6vw, 4rem);
  --t-overline: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);

  /* spacing (4px base) */
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 32px;
  --e-7: 48px;
  --e-8: 64px;
  --e-9: 96px;
  --e-10: 128px;
  --seccion: clamp(64px, 2.5rem + 4.5vw, 120px);   /* vertical rhythm between sections */
  --gutter: clamp(16px, 4vw, 48px);
  --ancho: 1296px;                                  /* content width at desktop */
  --alto-cabecera: 72px;

  /* radii: pills only; image blocks and colour fields are square */
  --r-pill: 999px;

  /* motion */
  --dur-rapida: 150ms;
  --dur: 200ms;
  --dur-media: 320ms;
  --dur-lenta: 600ms;
  --dur-revelar: 720ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* exponential ease-out */
  --ease-out-suave: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --z-cabecera: 50;
  --z-hoja: 80;
  --z-toast: 90;

  color-scheme: light;
  accent-color: var(--tinta);
}
@media (max-width: 899px) {
  :root { --alto-cabecera: 60px; }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + 24px); /* the one anchor offset: header + 24px */
  scrollbar-color: #8F8F8F var(--blanco);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: var(--t-cuerpo);
  font-weight: 400;
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--tinta);
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:where(ul[class], ol[class], nav ul, nav ol) { list-style: none; padding: 0; }
p, h1, h2, h3, h4, h5, h6, li, dt, dd, figcaption { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* browser surfaces, themed */
::selection { background: var(--butter); color: var(--tinta); }
.campo-frisante-tinto ::selection, .superficie-ciruela ::selection { background: var(--ciruela-texto); color: var(--ciruela); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
.campo-frisante-tinto :focus-visible, .superficie-ciruela :focus-visible { outline-color: var(--ciruela-texto); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-skip-ink: auto; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #8F8F8F; border: 3px solid var(--blanco); border-radius: var(--r-pill); }
::-webkit-scrollbar-track { background: var(--blanco); }

/* ------------------------------------------------------------------ utilities */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.saltar {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--tinta); color: var(--blanco); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.saltar:focus-visible { transform: none; outline-color: var(--tinta); }
.num, .precio, .tabular { font-variant-numeric: tabular-nums lining-nums; }
.medida { max-width: 62ch; }
.texto-suave { color: var(--texto-suave, var(--tinta-2)); }
.centrado { text-align: center; }

/* icons: authored Lucide-style sprite (partials/icons.html), 1.5px stroke */
.icon {
  width: var(--icon, 24px); height: var(--icon, 24px); flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.icon--16 { --icon: 16px; }
.icon--18 { --icon: 18px; }
.icon--20 { --icon: 20px; }
.icon--28 { --icon: 28px; }
.icon--32 { --icon: 32px; }
.icon--girar { animation: girar 0.9s linear infinite; transform-origin: 50% 50%; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ type */
.overline {
  display: block;
  font-size: var(--t-overline);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: var(--e-4); /* 16px to the heading below; heroes over a --t-h1 display heading use 24px */
}
.titulo-1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; }
.titulo-2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.03; letter-spacing: -0.032em; }
.titulo-3 { font-size: var(--t-h3); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.titulo-4 { font-size: var(--t-h4); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.titulo-display {
  font-family: var(--fuente-display);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}
/* ------------------------------------------------------------------ HERBI headings
   Rule: HERBI for the headings of the brand pages (portada, momentos, filosofía, preguntas, próximamente) and
   of the Vinos tab (tienda.html); Mulish for the product detail, the cart and the checkout. The real HERBI ships only as inline SVG outlines (fuente/herbi-svg.py: the
   client's licence forbids @font-face); each heading keeps its words in a .sr-only span, the svg is
   aria-hidden. The svg carries --ancho/--alto in em: it is ancho·em wide (a definite size, so shrink-to-fit
   columns size to it instead of to the 300px default of an svg) capped at 100%, at its own aspect ratio,
   so a narrow column scales the whole heading down instead of letterboxing it. */
.titulo-herbi { --herbi-escala: 0.88; } /* HERBI's cap is 0.8em against Mulish's 0.72em and its blocks are heavier */
:is(h1, h2, h3).titulo-herbi.titulo-herbi { max-width: none; } /* the breaks are drawn in; ch limits set for Mulish no longer apply */
.palabra-herbi {
  display: block;
  width: calc(var(--ancho) * var(--herbi-escala, 1) * 1em);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--ancho) / var(--alto);
  overflow: visible;
  fill: currentColor;
}
.palabra-herbi .herbi-rosa { fill: var(--rosa); } /* display size only: 4.6:1 on white */
.palabra-herbi--movil { display: none; }
@media (max-width: 599px) {
  .palabra-herbi--ancho { display: none; }
  .palabra-herbi--movil { display: block; }
}
/* entrance: each line rises from behind its own edge (its nested svg clips it), once, as the heading enters.
   Only when JS runs and motion is allowed (html.js-revelar); ui.js adds .herbi-visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .titulo-herbi .herbi-tinta {
    transform-box: fill-box;
    transition: transform 900ms var(--ease-out) calc(var(--herbi-retraso, 0ms) + var(--l, 0) * 85ms);
  }
  html.js-revelar .titulo-herbi:not(.herbi-visible) .herbi-tinta { transform: translateY(106%); }
  /* a HERBI heading that is itself a .revelar only fades in; its lines do the rising */
  html.js-revelar .titulo-herbi.revelar:not(.is-visible) { transform: none; }
  /* hero headings (…__entra): the page's slide-in becomes a fade and the lines rise just after it starts */
  html :is(h1, h2).titulo-herbi[class*="__entra"] { animation-name: herbi-fundido; --herbi-retraso: 120ms; }
}
@keyframes herbi-fundido { from { opacity: 0; } }
.lead { font-size: var(--t-lead); line-height: 1.45; font-weight: 400; }
.texto-chico { font-size: var(--t-chico); line-height: 1.5; }
.prosa > * + * { margin-top: 1em; }

/* section heading block: overline + title (+ a deck line under it) */
.cabeza-seccion { display: grid; gap: var(--e-5); margin-bottom: clamp(var(--e-6), 3vw, var(--e-7)); }

/* ------------------------------------------------------------------ layout */
.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.seccion { padding-top: var(--seccion); padding-bottom: var(--seccion); } /* longhands: the static design scanner cannot read padding-block */
.seccion--arriba { padding-bottom: 0; }
.seccion--abajo { padding-top: 0; }
.pila > * + * { margin-top: var(--pila, var(--e-4)); }

/* split: two halves that stack under 900px (modifiers flip or weight the halves) */
.dividido { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .dividido { grid-template-columns: 1fr 1fr; }
  .dividido--55 { grid-template-columns: 11fr 9fr; }
  .dividido--45 { grid-template-columns: 9fr 11fr; }
  .dividido--invertido > :first-child { order: 2; }
}
.mitad-texto {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: clamp(var(--e-6), 5vw, var(--e-9)); padding-bottom: clamp(var(--e-6), 5vw, var(--e-9));
  padding-left: clamp(var(--e-5), 5vw, var(--e-9)); padding-right: clamp(var(--e-5), 5vw, var(--e-9));
}

/* product grids: 3 / 2 / 5 across; .rejilla--deslizable becomes a snap row on phones */
.rejilla { display: grid; gap: var(--rejilla-gap, clamp(16px, 2vw, 24px)); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.rejilla--2 { --cols: 2; }
.rejilla--3 { --cols: 3; }
.rejilla--5 { --cols: 5; --rejilla-gap: clamp(12px, 1.4vw, 20px); }
@media (max-width: 1199px) { .rejilla--5 { --cols: 3; } }
@media (max-width: 899px) { .rejilla--3, .rejilla--5 { --cols: 2; } }
@media (max-width: 767px) {
  .rejilla--2, .rejilla--3, .rejilla--5 { --cols: 1; }
}
/* .rejilla--deslizable: a horizontal snap row under 900px (≈2.3 cards on tablet, 1.2 on phones) */
@media (max-width: 899px) {
  .rejilla--deslizable {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(42%, 320px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter));
    padding-bottom: var(--e-3); scrollbar-width: none;
  }
  .rejilla--deslizable::-webkit-scrollbar { display: none; }
  .rejilla--deslizable > * { scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .rejilla--deslizable { grid-auto-columns: min(78%, 320px); }
}

/* ------------------------------------------------------------------ surfaces and colour fields */
/* palette surfaces for section blocks: background + tinted secondary text */
.superficie-blanco { background: var(--blanco); --texto-suave: var(--tinta-2); }
.superficie-peach { background: var(--peach); --texto-suave: var(--tinta-peach); }
.superficie-peach-claro { background: var(--peach-claro); --texto-suave: var(--tinta-peach); }
.superficie-lime { background: var(--lime); --texto-suave: var(--tinta-lime); }
.superficie-lime-claro { background: var(--lime-claro); --texto-suave: var(--tinta-lime); }
.superficie-butter { background: var(--butter); --texto-suave: var(--tinta-butter); }
.superficie-butter-claro { background: var(--butter-claro); --texto-suave: var(--tinta-butter); }
.superficie-sky { background: var(--sky); --texto-suave: var(--tinta-sky); }
.superficie-sky-claro { background: var(--sky-claro); --texto-suave: var(--tinta-sky); }
.superficie-lila { background: var(--lila); --texto-suave: var(--tinta-lila); }
.superficie-lila-claro { background: var(--lila-claro); --texto-suave: var(--tinta-lila); }
.superficie-ciruela { background: var(--ciruela); color: var(--ciruela-texto); --texto-suave: var(--tinta-ciruela); }
.superficie-tienda { background: var(--suelo-tienda); --texto-suave: var(--tinta-arena); }
[class*="superficie-"] .texto-suave, [class*="superficie-"] .lead.texto-suave { color: var(--texto-suave); }

/* product colour fields: set the variables with .campo-<slug>, paint with .campo */
.campo-blanco { --campo: var(--butter); --campo-claro: var(--butter-claro); --campo-tinta: var(--tinta); --campo-suave: var(--tinta-butter); --campo-claro-suave: var(--tinta-butter); }
.campo-rosado { --campo: var(--peach); --campo-claro: var(--peach-claro); --campo-tinta: var(--tinta); --campo-suave: var(--tinta-peach); --campo-claro-suave: var(--tinta-peach); }
.campo-tinto { --campo: var(--sky); --campo-claro: var(--sky-claro); --campo-tinta: var(--tinta); --campo-suave: var(--tinta-sky); --campo-claro-suave: var(--tinta-sky); }
/* frisante rosado: the can itself is lila (#DFB4D5), so its field is lila light and the can reads as the
   darker shape; --campo-claro is #EAD3E6 mixed 50% with white (same hue) for the detalle stage sweep */
.campo-frisante-rosado { --campo: var(--lila-claro); --campo-claro: #F5E9F3; --campo-tinta: var(--tinta); --campo-suave: var(--tinta-lila); --campo-claro-suave: var(--tinta-lila); }
.campo-frisante-tinto { --campo: var(--ciruela); --campo-claro: var(--lila-claro); --campo-tinta: var(--ciruela-texto); --campo-suave: var(--tinta-ciruela); --campo-claro-suave: var(--tinta-lila); }
.campo { background: var(--campo, var(--gris-campo)); color: var(--campo-tinta, var(--tinta)); --texto-suave: var(--campo-suave, var(--tinta-2)); }
.campo--claro { background: var(--campo-claro, var(--gris-campo)); color: var(--tinta); --texto-suave: var(--campo-claro-suave, var(--tinta-2)); }
.campo .texto-suave, .campo--claro .texto-suave { color: var(--texto-suave); }

/* a colour field holding a packshot, square corners, overflow hidden for the hover zoom.
   --ratio sets the box (default 8/7), --lata-alto the can image height (default 80%). */
.campo-lata {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: var(--ratio, 8 / 7);
}
.campo-lata__img {
  position: absolute; inset: 0; margin: auto;
  height: var(--lata-alto, 80%); width: auto; max-width: 88%; object-fit: contain;
  transition: transform var(--dur-lenta) var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .campo-lata__img, .campo-lata:hover > .campo-lata__img, .tarjeta:hover .campo-lata__img { transform: scale(1.05); }
}

/* ------------------------------------------------------------------ buttons */
.boton {
  --boton-alto: 48px;
  --boton-px: 26px;
  --boton-fondo: var(--tinta);
  --boton-texto: var(--blanco);
  --boton-borde: var(--tinta);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--boton-alto);
  padding: 0 var(--boton-px);
  border: 1px solid var(--boton-borde);
  border-radius: var(--r-pill);
  background: var(--boton-fondo);
  color: var(--boton-texto);
  font-family: var(--fuente);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur-rapida) var(--ease-out);
}
.boton .icon { --icon: 18px; }
.boton__flecha { transition: transform var(--dur) var(--ease-out); }
.boton:hover { --boton-fondo: #333333; --boton-borde: #333333; }
.boton:hover .boton__flecha, .enlace-flecha:hover .icon { transform: translateX(3px); }
.boton:active { transform: scale(0.98); }
.boton:focus-visible { outline-offset: 3px; }

.boton--contorno { --boton-fondo: transparent; --boton-texto: currentColor; --boton-borde: currentColor; } /* currentColor = the surrounding text colour */
.boton--contorno:hover { --boton-fondo: rgb(17 17 17 / 0.06); --boton-borde: currentColor; }
.campo-frisante-tinto .boton--contorno:hover, .superficie-ciruela .boton--contorno:hover { --boton-fondo: rgb(251 239 245 / 0.12); }
.boton--blanco { --boton-fondo: var(--blanco); --boton-texto: var(--tinta); --boton-borde: var(--tinta); }
.boton--blanco:hover { --boton-fondo: #F2F2F2; --boton-borde: var(--tinta); }
.boton--claro { --boton-fondo: var(--ciruela-texto); --boton-texto: var(--ciruela); --boton-borde: var(--ciruela-texto); }
.boton--claro:hover { --boton-fondo: var(--blanco); --boton-borde: var(--blanco); }

.boton--chico { --boton-alto: 40px; --boton-px: 18px; font-size: 0.875rem; gap: 8px; }
.boton--chico .icon { --icon: 16px; }
.boton--grande { --boton-alto: 56px; --boton-px: 32px; font-size: 1rem; }
.boton--bloque { display: flex; width: 100%; }

.boton:disabled, .boton[aria-disabled="true"]:not(.is-cargando):not(.is-exito) {
  --boton-fondo: var(--deshabilitado-fondo); --boton-texto: var(--deshabilitado-texto); --boton-borde: var(--deshabilitado-fondo);
  cursor: not-allowed; transform: none;
}
.boton--contorno:disabled, .boton--contorno[aria-disabled="true"]:not(.is-cargando):not(.is-exito) {
  --boton-fondo: transparent; --boton-texto: #6B6B6B; --boton-borde: #BDBDBD;
}
/* add-to-cart states (carrito.js): the width is locked while the label changes */
.boton.is-cargando { cursor: progress; transform: none; }
/* while busy or confirming, hover does not change the fill */
.boton.is-cargando:hover, .boton.is-exito:hover { --boton-fondo: var(--tinta); --boton-borde: var(--tinta); }
.boton--contorno.is-cargando:hover, .boton--contorno.is-exito:hover { --boton-fondo: transparent; --boton-borde: currentColor; }
.boton--blanco.is-cargando:hover, .boton--blanco.is-exito:hover { --boton-fondo: var(--blanco); --boton-borde: var(--tinta); }
.boton--claro.is-cargando:hover, .boton--claro.is-exito:hover { --boton-fondo: var(--ciruela-texto); --boton-borde: var(--ciruela-texto); }
.boton.is-cargando .icon { animation: girar 0.9s linear infinite; }
.boton.is-exito .icon { animation: aparecer-check 360ms var(--ease-out) both; }
@keyframes aparecer-check { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boton.is-cargando .icon, .boton.is-exito .icon, .icon--girar { animation: none; }
}

/* text link with arrow */
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.3;
  color: inherit; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur) var(--ease-out);
}
.enlace-flecha:hover { text-decoration-color: currentColor; }
.enlace-flecha .icon { --icon: 18px; transition: transform var(--dur) var(--ease-out); }
.enlace { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }
.enlace:hover { text-decoration-thickness: 2px; }

/* icon buttons (header) */
.icono-boton {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  color: var(--tinta); text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}
.icono-boton:hover { background: var(--gris-campo); }
.icono-boton:active { background: var(--linea-suave); }
.insignia {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--acento); color: var(--tinta);
  font-size: 0.6875rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.insignia.is-latido { animation: latido 420ms var(--ease-out); }
@keyframes latido { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .insignia.is-latido { animation: none; } }

/* carousel arrows: the round ones under Filosofía's carousels and the home page's wines row. Switched off at
   either end of a row that does not loop (it keeps its place, faded, and takes no click). */
.carrusel__flechas { display: flex; gap: var(--e-2); }
.carrusel__flecha {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  color: var(--tinta); transition: background-color var(--dur) var(--ease-out), transform var(--dur-rapida) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.carrusel__flecha .icon { --icon: 32px; stroke-width: 1.2; }
.carrusel__flecha--atras .icon { transform: scaleX(-1); }
.carrusel__flecha:hover { background: var(--gris-campo); }
.carrusel__flecha:active { transform: scale(0.96); }
.carrusel__flecha:disabled { opacity: 0.28; cursor: default; background: none; transform: none; }

/* ------------------------------------------------------------------ header */
.cabecera {
  position: sticky; top: 0; z-index: var(--z-cabecera);
  background: var(--blanco);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-media) var(--ease-out);
}
.cabecera.is-desplazada { border-bottom-color: var(--linea-suave); }
.cabecera__fila { display: flex; align-items: center; gap: var(--e-6); height: var(--alto-cabecera); }
.cabecera__logo { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px 0; border-radius: 2px; }
.cabecera__logo img { height: 30px; width: auto; }
/* Livincito in the season's costume, left of the logo with his open hand presenting it (src/partials/mascota.html).
   He sits in the header's height; over the logo he gives a small wave, never on his own. */
.cabecera__logo .cabecera__mascota { height: 62px; flex: none; transform-origin: 50% 92%; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cabecera__logo:hover .cabecera__mascota { animation: livincito-saluda 720ms var(--ease-out); }
}
@keyframes livincito-saluda { 30% { transform: rotate(-5deg) translateY(-2px); } 65% { transform: rotate(3deg); } }
.cabecera__nav { flex: 1; }
.cabecera__nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); padding-left: clamp(8px, 4vw, 72px); }
.cabecera__nav a, .pie__nav a {
  position: relative; display: inline-block; padding: 10px 0;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cabecera__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-media) var(--ease-out);
}
.cabecera__nav a:hover::after, .cabecera__nav a[aria-current="page"]::after { transform: scaleX(1); }
.cabecera__nav a[aria-current="page"] { font-weight: 800; }
.cabecera__acciones { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: -10px; }
.cabecera__menu { display: none; }
@media (max-width: 899px) {
  .cabecera__nav, .cabecera__solo-escritorio { display: none; }
  .cabecera__menu { display: inline-grid; }
  .cabecera__logo img { height: 24px; }
  .cabecera__logo .cabecera__mascota { height: 50px; }
}

/* the account button (js/cuenta.js). Signed in (html.con-sesion, set before the first paint by head.html) it shows
   the initial of the name on a black disc, and opens a small menu: who, Mi cuenta, Mis pedidos, Cerrar sesión */
.cabecera__acciones { position: relative; }
html.con-sesion .cabecera [data-cuenta] .icon { display: none; }
html.con-sesion .cabecera [data-cuenta]::after {
  content: var(--inicial, "");
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--tinta); color: var(--blanco);
  font-size: 0.875rem; font-weight: 800; line-height: 1;
}
.cabecera [data-cuenta][aria-expanded="true"] { background: var(--gris-campo); }
.cuenta-menu {
  position: absolute; top: calc(100% + 6px); right: 4px; z-index: 1;
  width: 288px; max-width: calc(100vw - 2 * var(--gutter));
  padding: 6px 0; background: var(--blanco); border: 1px solid var(--linea);
  box-shadow: 0 16px 36px -16px rgb(17 17 17 / 0.28), 0 2px 6px rgb(17 17 17 / 0.06);
}
.cuenta-menu[hidden] { display: none; }
.cuenta-menu__quien {
  display: grid; gap: 2px; padding: 10px 16px 14px; border-bottom: 1px solid var(--linea-suave);
  font-size: var(--t-chico); line-height: 1.35; overflow-wrap: anywhere;
}
.cuenta-menu__quien b { font-weight: 800; }
.cuenta-menu__quien span { color: var(--tinta-2); }
.cuenta-menu__lista { padding: 6px 0; border-bottom: 1px solid var(--linea-suave); }
.cuenta-menu__lista a, .cuenta-menu__salir {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px;
  font-size: 0.9375rem; font-weight: 600; color: var(--tinta); text-decoration: none; text-align: left;
  transition: background-color var(--dur) var(--ease-out);
}
.cuenta-menu__lista a:hover, .cuenta-menu__salir:hover { background: var(--gris-campo); }
.cuenta-menu__lista a:focus-visible, .cuenta-menu__salir:focus-visible { outline-offset: -3px; }
.cuenta-menu .icon { --icon: 20px; }
.cuenta-menu__salir { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .cuenta-menu:not([hidden]) { animation: cuenta-menu-entra 220ms var(--ease-out); }
}
@keyframes cuenta-menu-entra { from { opacity: 0; transform: translateY(-6px); } }

/* mobile sheet: full height, focus-trapped (ui.js) */
.hoja {
  position: fixed; inset: 0; z-index: var(--z-hoja);
  background: var(--blanco);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.hoja__cabeza { display: flex; align-items: center; justify-content: space-between; height: var(--alto-cabecera); flex: none; }
.hoja__cabeza img { height: 24px; width: auto; }
.hoja__nav { padding-top: var(--e-6); display: grid; }
.hoja__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-4);
  padding: 18px 0; border-bottom: 1px solid var(--linea-suave);
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none;
}
.hoja__nav a .icon { --icon: 24px; flex: none; }
.hoja__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.hoja__pie { margin-top: auto; padding-top: var(--e-7); padding-bottom: var(--e-6); display: flex; flex-wrap: wrap; gap: var(--e-3); }
.hoja:not(.is-abierta) { display: none; } /* no JS: the footer carries the nav */
.hoja.is-abierta { animation: hoja-entra var(--dur-media) var(--ease-out); }
.hoja.is-abierta .hoja__nav li { animation: hoja-item 520ms var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
@keyframes hoja-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes hoja-item { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hoja.is-abierta, .hoja.is-abierta .hoja__nav li { animation: none; } }
html.hoja-abierta { overflow: hidden; }

/* ------------------------------------------------------------------ breadcrumb */
.miga { font-size: var(--t-chico); }
.miga ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.miga li { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-2); }
.miga li + li::before {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); margin-right: 4px; opacity: 0.7;
}
.miga a { text-decoration: none; }
.miga a:hover { text-decoration: underline; }
.miga [aria-current="page"] { color: var(--tinta); font-weight: 700; }

/* ------------------------------------------------------------------ product card */
.tarjeta { display: flex; flex-direction: column; min-width: 0; }
.tarjeta__media { display: block; position: relative; }
.tarjeta__cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: var(--e-5); padding-left: var(--e-5); padding-right: var(--e-5); padding-bottom: 0; flex: 1; }
.tarjeta__nombre { font-size: var(--t-h4); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tarjeta__nombre a { text-decoration: none; }
.tarjeta__nombre a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.tarjeta__linea { color: var(--texto-suave, var(--tinta-2)); max-width: 30ch; line-height: 1.45; }
.tarjeta__precio { font-weight: 800; font-size: 1.0625rem; margin-top: var(--e-2); }
.tarjeta__acciones { display: grid; gap: var(--e-3); width: 100%; margin-top: var(--e-4); }
.tarjeta__acciones--fila { display: flex; flex-wrap: wrap; width: auto; }
/* card body sits on white; the colour lives in the media field */
.tarjeta .campo-lata { width: 100%; }

/* wide card (frisantes): can on its field left, text right, same field. It wraps into a stack by
   itself whenever the card is narrower than ~500px (2-up at tablet, phones), no breakpoint needed. */
.tarjeta--ancha { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; background: var(--campo); color: var(--campo-tinta); --texto-suave: var(--campo-suave); }
.tarjeta--ancha .tarjeta__media { flex: 1 1 250px; align-self: stretch; }
.tarjeta--ancha .campo-lata { --lata-alto: 86%; aspect-ratio: auto; min-height: clamp(280px, 26vw, 380px); background: transparent; } /* height comes from align-self: stretch */
.tarjeta--ancha .tarjeta__cuerpo { flex: 1 1 230px; padding-top: var(--e-6); padding-bottom: var(--e-6); padding-right: var(--e-6); padding-left: var(--e-5); }
.tarjeta--ancha .tarjeta__acciones { max-width: 260px; }

/* mini card (recommendations): a square field by default; a page sets its own --ratio / --lata-alto */
.tarjeta--mini .campo-lata { --ratio: 1 / 1; --lata-alto: 78%; }
.tarjeta--mini .tarjeta__cuerpo { padding-top: var(--e-4); padding-left: 0; padding-right: 0; padding-bottom: 0; gap: 2px; }
.tarjeta--mini .tarjeta__nombre { font-size: 1rem; letter-spacing: -0.01em; }
.tarjeta--mini .tarjeta__precio { margin-top: 0; font-size: 1rem; }
.tarjeta--mini .tarjeta__acciones { margin-top: var(--e-3); }
.tarjeta.is-actual .campo-lata::after {
  content: "Estás viendo"; position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--blanco); color: var(--tinta);
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}

.precio { font-weight: 800; letter-spacing: -0.01em; }
.precio__moneda { font-weight: 600; font-size: 0.82em; margin-left: 0.2em; }

/* ------------------------------------------------------------------ pending photo */
/* An art-directed placeholder for the client's lifestyle photos: a light palette block, an
   optional rendered can, a quiet "Foto pendiente" tag and one line describing the shot.
   Set the comp's aspect ratio with --ratio and the tint with a .superficie-* class. */
.foto-pendiente {
  position: relative; overflow: hidden; isolation: isolate;
  container-type: inline-size;
  aspect-ratio: var(--ratio, 4 / 3);
  color: var(--texto-suave);
  text-decoration: none;
}
:where(.foto-pendiente) { background: var(--peach-claro); --texto-suave: var(--tinta-peach); }
.foto-pendiente__escena { position: absolute; inset: 0; transition: transform 900ms var(--ease-out); }
.foto-pendiente__lata {
  position: absolute; z-index: 1;
  left: var(--lata-x, 50%); bottom: var(--lata-base, 16%);
  height: var(--lata-alto, 64%); width: auto; max-width: none;
  transform: translateX(-50%) rotate(var(--lata-giro, 0deg));
  transform-origin: 50% 100%;
}
.foto-pendiente__lata--2 { left: var(--lata2-x, 64%); bottom: var(--lata2-base, var(--lata-base, 16%)); height: var(--lata2-alto, var(--lata-alto, 64%)); }
.foto-pendiente__sombra {
  position: absolute; z-index: 0;
  left: var(--lata-x, 50%); bottom: calc(var(--lata-base, 16%) - 1.4%);
  width: calc(var(--lata-alto, 64%) * 0.42); height: 3.2%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: currentColor; opacity: 0.22; filter: blur(9px);
}
.foto-pendiente__nota {
  position: absolute; z-index: 2; left: var(--e-5); right: var(--e-5); bottom: var(--e-5);
  display: grid; gap: 6px; justify-items: start; max-width: var(--nota-ancho, 34ch);
}
.foto-pendiente--nota-arriba .foto-pendiente__nota { bottom: auto; top: var(--e-5); }
.foto-pendiente__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2;
}
.foto-pendiente__tag::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.foto-pendiente__desc { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
/* the client's photo in its block (.foto-pendiente--lista; tools/preparar-fotos.py makes the files and one
   partial per photo): the photo fills the scene (cover, focal point --foco), the pastel behind it shows only
   while it loads, and the block keeps the zoom / reveal / parallax rules already written for the scene. */
.foto-pendiente--lista { color: inherit; }
.foto-pendiente__foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--foco, 50% 50%);
}
.foto-pendiente--lista .foto-pendiente__escena[data-parallax] { inset: -12% 0; } /* room for the parallax travel (≈±0.04 × 700px) */
/* small blocks: the note moves to the top-left so it never sits on the can */
@container (max-width: 520px) {
  .foto-pendiente__nota { left: var(--e-4); right: var(--e-4); bottom: var(--e-4); max-width: 30ch; }
  .foto-pendiente:has(.foto-pendiente__lata) .foto-pendiente__nota { bottom: auto; top: var(--e-4); max-width: 34ch; }
  .foto-pendiente__desc { font-size: 0.75rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .foto-pendiente .foto-pendiente__escena, a.foto-pendiente:hover .foto-pendiente__escena, .foto-pendiente--zoom:hover .foto-pendiente__escena { transform: scale(1.05); }
}
@media (prefers-reduced-motion: no-preference) {
  a.foto-pendiente:focus-visible .foto-pendiente__escena { transform: scale(1.05); }
}

/* ------------------------------------------------------------------ trust strip */
.confianza { border-top: 1px solid var(--linea-suave); border-bottom: 1px solid var(--linea-suave); padding-top: var(--e-6); padding-bottom: var(--e-6); }
.confianza__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.confianza__item {
  display: flex; align-items: center; justify-content: center; gap: var(--e-4);
  padding-top: 4px; padding-bottom: 4px; padding-left: var(--e-4); padding-right: var(--e-4); min-width: 0;
  font-size: var(--t-chico); font-weight: 600; line-height: 1.35;
}
.confianza__item + .confianza__item { border-left: 1px solid var(--linea); }
/* stroke-width counts in the 24-unit viewBox: a 38px box at 0.95 draws a ~30px glyph with a 1.5px stroke */
.confianza__item .icon { --icon: 38px; stroke-width: 0.95; }
.confianza__item span { max-width: 17ch; }
@media (max-width: 899px) {
  .confianza { padding-top: var(--e-2); padding-bottom: var(--e-2); }
  .confianza__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confianza__item { flex-direction: column; text-align: center; gap: var(--e-3); padding-top: var(--e-5); padding-bottom: var(--e-5); padding-left: var(--e-3); padding-right: var(--e-3); }
  .confianza__item + .confianza__item { border-left: 0; }
  .confianza__item:nth-child(even) { border-left: 1px solid var(--linea); }
  .confianza__item:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}
/* compact: four icons in a row under the buy buttons (detalle) */
.confianza--compacta { border-top: 0; border-bottom: 0; padding-top: var(--e-2); padding-bottom: var(--e-2); }
.confianza--compacta .confianza__item { flex-direction: column; text-align: center; gap: var(--e-2); padding-top: var(--e-2); padding-bottom: var(--e-2); padding-left: var(--e-2); padding-right: var(--e-2); font-size: 0.75rem; font-weight: 600; }
.confianza--compacta .confianza__item .icon { --icon: 26px; stroke-width: 1.3; } /* unchanged by the full strip's 38px box */
.confianza--compacta .confianza__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 0; }
.confianza--compacta .confianza__item:nth-child(n) { border-top: 0; border-left: 0; }
.confianza--compacta .confianza__item + .confianza__item { border-left: 1px solid var(--linea); }
@media (max-width: 479px) {
  .confianza--compacta .confianza__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confianza--compacta .confianza__item:nth-child(n) { border-left: 0; padding-top: var(--e-4); padding-bottom: var(--e-4); }
  .confianza--compacta .confianza__item:nth-child(even) { border-left: 1px solid var(--linea); }
  .confianza--compacta .confianza__item:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}

/* ------------------------------------------------------------------ footer */
.pie { padding-top: var(--e-7); padding-bottom: var(--e-6); }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-5) var(--e-7); }
.pie__logo img { height: 28px; width: auto; }
.pie__nav ul { display: flex; flex-wrap: wrap; gap: var(--e-2) clamp(20px, 2.4vw, 36px); }
.pie__nav a { font-size: var(--t-chico); padding: 6px 0; }
.pie__nav a:hover, .pie__legal a:hover { text-decoration: underline; }
.pie__derecha { display: flex; align-items: center; gap: var(--e-5); margin-left: auto; }
.pie__redes { display: flex; gap: 2px; }
.pie__redes .icono-boton { width: 40px; height: 40px; }
.pie__redes .icon { --icon: 20px; }
.pie__sep { width: 1px; height: 28px; background: var(--linea); }
.pie__legal { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); font-size: var(--t-chico); }
.pie__legal a { text-decoration: none; padding: 6px 0; }
.pie__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-3); margin-top: var(--e-6); padding-top: var(--e-5); border-top: 1px solid var(--linea-suave); font-size: 0.75rem; color: var(--tinta-2); }
@media (max-width: 899px) {
  .pie__fila { flex-direction: column; align-items: flex-start; }
  .pie__derecha { margin-left: 0; flex-direction: column; align-items: flex-start; gap: var(--e-4); }
  .pie__redes { margin-left: -10px; }
  .pie__sep { display: none; }
}
/* phones: the four links in two even rows (Vinos · Nuestra filosofía / Momentos · Preguntas frecuentes) */
@media (max-width: 599px) {
  .pie__nav ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 24px; row-gap: 12px; }
}

/* ------------------------------------------------------------------ toast */
.toasts {
  position: fixed; z-index: var(--z-toast);
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; gap: var(--e-2); width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--e-3);
  padding: 12px 8px 12px 14px;
  background: var(--tinta); color: var(--blanco);
  font-size: var(--t-chico); font-weight: 600; line-height: 1.35;
  animation: toast-entra var(--dur-media) var(--ease-out) both;
}
.toast .icon { --icon: 20px; }
.toast__icono { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--acento); color: var(--tinta); }
.toast__icono .icon { --icon: 16px; stroke-width: 2; }
.toast__texto { min-width: 0; }
.toast__texto a { color: var(--blanco); font-weight: 800; white-space: nowrap; margin-left: 4px; }
.toast__cerrar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); color: var(--blanco); transition: background-color var(--dur) var(--ease-out); }
.toast__cerrar:hover { background: rgb(255 255 255 / 0.12); }
.toast__cerrar:focus-visible, .toast__texto a:focus-visible { outline-color: var(--blanco); }
.toast.is-saliendo { animation: toast-sale var(--dur) var(--ease-out) both; }
@keyframes toast-entra { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-sale { to { opacity: 0; transform: translateY(6px); } }
@media (max-width: 599px) {
  .toasts { left: 16px; right: 16px; width: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-saliendo { animation: none; } }

/* ------------------------------------------------------------------ tabs */
.pestanas__lista {
  position: relative; display: flex; gap: clamp(8px, 4vw, 64px);
  border-bottom: 1px solid var(--linea);
  overflow-x: auto; scrollbar-width: none;
}
.pestanas__lista::-webkit-scrollbar { display: none; }
.pestanas__tab {
  position: relative; padding: 16px 4px; min-width: 7.5rem; flex: none;
  font-size: 1rem; font-weight: 600; color: var(--tinta-2); white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
.pestanas__tab:hover { color: var(--tinta); }
@media (max-width: 599px) {
  .pestanas__lista { gap: 0; }
  .pestanas__tab { min-width: 0; flex: 1 1 auto; padding-inline: 8px; font-size: 0.9375rem; }
}
.pestanas__tab[aria-selected="true"] { color: var(--tinta); font-weight: 800; }
.pestanas__tab:focus-visible { outline-offset: -3px; border-radius: 4px; }
/* no JS: a static underline under the selected tab; with JS the indicator slides */
.pestanas__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tinta); }
.pestanas.is-lista .pestanas__tab[aria-selected="true"]::after { display: none; }
.pestanas__indicador {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--ind-w, 0); background: var(--tinta);
  transform: translateX(var(--ind-x, 0)); transition: transform var(--dur-media) var(--ease-out), width var(--dur-media) var(--ease-out);
}
.pestanas:not(.is-lista) .pestanas__indicador { display: none; }
.pestanas__panel { padding-top: clamp(var(--e-6), 4vw, var(--e-7)); }
.pestanas__panel:focus-visible { outline-offset: 6px; }
.pestanas.is-lista .pestanas__panel.is-entrando { animation: panel-entra 360ms var(--ease-out) both; }
@keyframes panel-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pestanas__indicador { transition: none; }
  .pestanas.is-lista .pestanas__panel.is-entrando { animation: none; }
}

/* spec list and quiet tags (Información / Maridaje) */
.specs { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; border-top: 1px solid var(--linea-suave); }
.specs dt, .specs dd { padding: 14px 0; border-bottom: 1px solid var(--linea-suave); }
.specs dt { font-size: var(--t-chico); font-weight: 800; letter-spacing: 0.04em; padding-right: var(--e-6); }
.specs dd { color: var(--tinta-2); }
.etiquetas { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.etiqueta-nota {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 1px solid var(--linea); border-radius: var(--r-pill);
  font-size: var(--t-chico); font-weight: 600; color: var(--tinta-2);
}

/* ------------------------------------------------------------------ quantity stepper */
.cantidad {
  display: inline-flex; align-items: center; height: 48px; padding: 3px;
  border: 1px solid var(--tinta); border-radius: var(--r-pill); background: var(--blanco);
}
.cantidad__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  color: var(--tinta); transition: background-color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.cantidad__btn .icon { --icon: 18px; }
.cantidad__btn:hover { background: var(--gris-campo); }
.cantidad__btn:active { background: var(--linea-suave); }
.cantidad__btn:disabled { opacity: 0.35; cursor: not-allowed; background: none; }
.cantidad__btn:focus-visible { outline-offset: 0; }
.cantidad__input {
  width: 3ch; min-width: 44px; border: 0; background: none; text-align: center;
  font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.cantidad__input::-webkit-outer-spin-button, .cantidad__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad__input:focus-visible { outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ live 3D can */
.lata3d { position: relative; display: block; width: 100%; height: 100%; --lata-altura: 0.8; }
.campo-lata > .lata3d, .foto-pendiente > .lata3d { position: absolute; inset: 0; width: auto; height: auto; }
.lata3d__poster {
  position: absolute; left: 50%; top: 50%;
  height: calc(var(--lata-altura) * 105%); width: auto; max-width: 92%; object-fit: contain;
  transform: translate(-50%, -50%);
  transition: opacity 500ms var(--ease-out) 160ms;
}
.lata3d[data-escala="real"][data-formato="236"] .lata3d__poster { height: calc(var(--lata-altura) * 105% / 1.2696); }
.lata3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 500ms var(--ease-out); }
.lata3d.is-vivo .lata3d__canvas { opacity: 1; }
.lata3d.is-vivo .lata3d__poster { opacity: 0; }
.lata3d__control {
  position: absolute; z-index: 2; left: var(--e-4); bottom: var(--e-4);
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill); background: var(--blanco); color: var(--tinta);
  font-size: 0.8125rem; font-weight: 700;
  transition: background-color var(--dur) var(--ease-out), transform var(--dur-rapida) var(--ease-out);
}
.lata3d__control .icon { --icon: 16px; stroke-width: 1.8; }
.lata3d__control:hover { background: #F2F2F2; }
.lata3d__control:active { transform: scale(0.97); }
.lata3d:not(.is-vivo) .lata3d__control { display: none; }

/* ------------------------------------------------------------------ brand stickers */
/* The brand's own stickers and drawings (marca/elementos-20261105 → tools/preparar-marca.py), stuck by
   hand where a moment earns one: in the white beside a heading, on the seam between two blocks, across a
   photo's edge or tight in a colour field's corner, never over what a photo shows (2026-11-07). One per
   moment, never over text or a control (revision/marca/probar-marca.mjs),
   never catching a click: the host keeps its link. The host is .con-sticker (positioned, not clipping)
   or a positioned block it sits inside; each use sets --tam (width), --giro and its side through
   --arriba / --derecha / --abajo / --izquierda. Decorative: the wrapper is aria-hidden, the img alt="".
   They arrive with their block, whole (revision/marca/probar-sticker-entrada.mjs): with a fading block as
   it fades in, on a wiped photo with a short fade once the photo under it is uncovered ("reveal on
   scroll"). Only the portada's hero sticker has a landing of its own.
   The host stands one step over its neighbours (z-index: 1). A block making its entrance (.revelar) is a
   stacking context until its fade ends, which shuts the sticker's own z-index inside it, and from 900px
   a split's photo paints after its text (order: 2): without the step, the half of the Nuestro origen
   sticker that crosses onto the vineyard only showed when the fade ended (2026-11-05). */
.con-sticker { position: relative; z-index: 1; }
.sticker {
  position: absolute; z-index: 4; pointer-events: none;
  width: var(--tam, clamp(88px, 9vw, 140px));
  top: var(--arriba, auto); right: var(--derecha, auto); bottom: var(--abajo, auto); left: var(--izquierda, auto);
  rotate: var(--giro, -8deg);
}
.sticker__img {
  display: block; width: 100%; height: auto;
  /* vinyl lifts a hair off the surface: a tight contact shadow and a soft one under it */
  filter: drop-shadow(0 1px 1px rgb(17 17 17 / 0.14)) drop-shadow(0 7px 12px rgb(17 17 17 / 0.13));
  transition: transform 420ms var(--ease-out);
}
/* a drawing is ink on the colour field, not a sticker on top of it */
.sticker--dibujo .sticker__img { filter: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .con-sticker:hover .sticker__img { transform: rotate(-5deg) scale(1.05); }
  .con-sticker:hover .sticker--dibujo .sticker__img { transform: translateX(4%) rotate(3deg); }
}

/* ------------------------------------------------------------------ phrases ribbon */
/* The portada's band of the brand's lettering ("FUN, FRESH & SIMPLE", "anywhere anytime", "WINE ON THE
   GO", "CANNED WINE", LIVIN with the peace hand) between the coloured hands. It slides with the scroll,
   never on its own (ui.js iniciarCintas → --cinta-x), and stands still under reduced motion or without
   JS. Decorative: aria-hidden; the same phrases are set as text elsewhere. Two copies of the run keep
   the track longer than the band at any scroll. */
.cinta { overflow: clip; padding-top: clamp(14px, 1.7vw, 24px); padding-bottom: clamp(14px, 1.7vw, 24px); }
.cinta__pista { display: flex; align-items: center; gap: clamp(26px, 3.2vw, 52px); width: max-content; translate: var(--cinta-x, 0px) 0; }
.cinta__item { flex: none; display: block; }
.cinta__img { display: block; width: auto; height: clamp(16px, 1.65vw, 25px); }
.cinta__item--script .cinta__img { height: clamp(36px, 3.4vw, 52px); }
.cinta__item--logo .cinta__img { height: clamp(32px, 3.1vw, 48px); }
.cinta__item--mano .cinta__img { height: clamp(30px, 2.9vw, 44px); rotate: var(--giro, -10deg); }

/* ------------------------------------------------------------------ reveal on scroll */
/* Visible by default. The head script adds html.js-revelar only when JS runs and motion is
   allowed; ui.js then reveals each .revelar as soon as any part of it is on screen (its observer
   reaches 28px below the screen: keep that equal to the 28px rise below). A 2.5s guard removes
   the class if ui.js never starts, so content can never stay hidden. */
html.js-revelar .revelar {
  transition: opacity var(--dur-revelar) var(--ease-out), transform var(--dur-revelar) var(--ease-out);
  transition-delay: var(--retraso, 0ms);
}
html.js-revelar .revelar:not(.is-visible) { opacity: 0; transform: translateY(28px); }
html.js-revelar .revelar--suave:not(.is-visible) { transform: none; }
/* image wipe: a cover in the surrounding colour (--revelar-fondo, default white) lifts off the
   block from the bottom up. The block must be positioned (.foto-pendiente and .campo-lata are). */
html.js-revelar .revelar--imagen:not(.is-visible) { opacity: 1; transform: none; }
html.js-revelar .revelar--imagen::after {
  content: ""; position: absolute; inset: -1px; z-index: 5; pointer-events: none;
  background: var(--revelar-fondo, var(--blanco));
  transform-origin: 50% 0%;
  transition: transform 1000ms var(--ease-out) var(--retraso, 0ms);
}
html.js-revelar .revelar--imagen.is-visible::after { transform: scaleY(0); }
/* a sticker on a wiped photo is not uncovered with it, cut by the cover's edge: it waits over the cover,
   hidden, and fades in whole once the photo under it is uncovered (by 600ms the wipe has cleared all but
   the photo's top ~1%, a few px, and a sticker sits at least 14px in; revision/marca/probar-sticker-entrada.mjs) */
html.js-revelar .revelar--imagen > .sticker { z-index: 6; transition: opacity 360ms var(--ease-out) calc(var(--retraso, 0ms) + 600ms); }
html.js-revelar .revelar--imagen:not(.is-visible) > .sticker { opacity: 0; }
html.js-revelar .revelar-grupo > .revelar:nth-child(2) { --retraso: 90ms; }
html.js-revelar .revelar-grupo > .revelar:nth-child(3) { --retraso: 180ms; }
html.js-revelar .revelar-grupo > .revelar:nth-child(4) { --retraso: 270ms; }
html.js-revelar .revelar-grupo > .revelar:nth-child(5) { --retraso: 360ms; }
@media (prefers-reduced-motion: reduce) {
  html.js-revelar .revelar, html.js-revelar .revelar:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  html.js-revelar .revelar--imagen::after { display: none; }
  html.js-revelar .revelar--imagen > .sticker, html.js-revelar .revelar--imagen:not(.is-visible) > .sticker { opacity: 1; transition: none; }
}
[data-parallax] { will-change: transform; }

/* ------------------------------------------------------------------ forms (phase 2: carrito, finalizar compra) */
/* Markup:
   <div class="form-campo" data-campo>
     <label class="form-campo__etiqueta" for="nombre">Nombre completo <span class="obligatorio" aria-hidden="true">*</span></label>
     <input class="entrada" id="nombre" name="nombre" autocomplete="name" required aria-describedby="nombre-error">
     <p class="form-campo__error" id="nombre-error"><svg class="icon" aria-hidden="true"><use href="#i-info"/></svg><span></span></p>
   </div>
   The page's JS sets aria-invalid on the control and .is-invalido on .form-campo; the error line shows only then.
   A <select> goes inside .selector (the wrapper draws the chevron). Controls are pills like every other control. */
.formulario { display: grid; gap: var(--e-5); }
.form-rejilla { display: grid; gap: var(--e-5) var(--e-5); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.form-rejilla--3 { --cols: 3; }
@media (max-width: 599px) { .form-rejilla, .form-rejilla--3 { --cols: 1; gap: var(--e-4); } }
.form-campo { display: grid; gap: 6px; align-content: start; min-width: 0; }
.form-campo__etiqueta { font-size: var(--t-chico); font-weight: 700; line-height: 1.3; }
.form-campo__opcional { font-weight: 400; color: var(--tinta-2); }
.obligatorio { color: var(--rosa); font-weight: 800; }
.entrada {
  width: 100%; min-height: 52px; padding: 0 20px;
  border: 1px solid var(--linea-control); border-radius: var(--r-pill);
  background: var(--blanco); color: var(--tinta);
  font-size: 1rem; line-height: 1.3;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.entrada::placeholder { color: #767676; opacity: 1; }
.entrada:hover { border-color: var(--tinta-2); }
.entrada:focus { border-color: var(--tinta); }
.entrada:focus-visible { outline-offset: 2px; }
.entrada[aria-invalid="true"] { border-color: var(--rosa); }
.entrada:disabled { background: var(--gris-campo); color: var(--deshabilitado-texto); border-color: var(--linea); cursor: not-allowed; }
.entrada--chica { min-height: 44px; padding: 0 16px; font-size: var(--t-chico); }
.selector { position: relative; }
.selector .entrada { padding-right: 48px; appearance: none; -webkit-appearance: none; background-image: none; }
.selector .entrada:invalid, .selector .entrada.is-vacio { color: #767676; } /* the placeholder option reads like a placeholder */
.selector .icon { --icon: 18px; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--tinta); }
.form-campo__ayuda { font-size: var(--t-micro); line-height: 1.4; color: var(--tinta-2); }
.form-campo__error {
  display: none; align-items: flex-start; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--rosa);
}
.form-campo.is-invalido .form-campo__error { display: flex; }
.form-campo__error .icon { --icon: 16px; stroke-width: 1.8; margin-top: 1px; }
.form-campo.is-invalido .form-campo__ayuda { display: none; }
/* checkbox: a square 20px box (a control glyph, not an image block) */
.casilla { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: var(--t-chico); font-weight: 600; line-height: 1.4; }
.casilla input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px;
  display: grid; place-items: center;
  border: 1px solid var(--linea-control); border-radius: 4px; background: var(--blanco);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.casilla:hover input { border-color: var(--tinta); }
.casilla input:checked { background: var(--tinta); border-color: var(--tinta); }
.casilla input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--blanco); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.casilla input:focus-visible { outline-offset: 2px; }
/* a line of feedback under a control group: role=status, state class picks the colour */
.form-aviso { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.form-aviso .icon { --icon: 16px; stroke-width: 1.8; margin-top: 1px; }
.form-aviso.is-ok { color: var(--tinta-lime); }
.form-aviso.is-error { color: var(--rosa); }
.form-aviso:empty { display: none; }

/* ------------------------------------------------------------------ order summary (resumen) */
/* <aside class="resumen superficie-tienda"> … <dl class="resumen__filas"> rows … Rows are dt/dd pairs inside
   .resumen__fila; --total is the big one; .resumen__fila--descuento paints the amount pink. */
.resumen {
  padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 36px);
  padding-left: clamp(20px, 3vw, 36px); padding-right: clamp(20px, 3vw, 36px);
}
.resumen__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4); margin-bottom: var(--e-4); }
.resumen__titulo { font-size: var(--t-h4); font-weight: 800; letter-spacing: -0.02em; }
.resumen__titulo small { font-size: var(--t-chico); font-weight: 600; color: var(--texto-suave, var(--tinta-2)); letter-spacing: 0; margin-left: 6px; }
.resumen__editar { font-size: var(--t-chico); font-weight: 700; text-underline-offset: 0.25em; white-space: nowrap; }
.resumen__filas { margin: 0; }
.resumen__fila {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4);
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid rgb(93 74 60 / 0.18); /* --tinta-arena at 18% */
  font-size: var(--t-chico);
}
.resumen__fila dt { color: var(--texto-suave, var(--tinta-2)); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.resumen__fila dd { font-weight: 700; white-space: nowrap; }
.resumen__fila--descuento dd { color: var(--rosa); }
.resumen__fila--total { border-bottom: 0; padding-top: var(--e-4); padding-bottom: 0; align-items: flex-start; }
.resumen__fila--total dt { color: var(--tinta); font-weight: 800; font-size: 1.125rem; }
.resumen__fila--total dd { display: grid; justify-items: end; gap: 2px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.resumen__fila--total dd small { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0; color: var(--texto-suave, var(--tinta-2)); }
.resumen__gratis { color: var(--tinta-lime); }
.resumen__acciones { margin-top: var(--e-5); display: grid; gap: var(--e-4); justify-items: center; }
.resumen__acciones .boton { width: 100%; }
.resumen__legal { margin-top: var(--e-4); font-size: var(--t-micro); line-height: 1.5; color: var(--texto-suave, var(--tinta-2)); text-align: center; text-wrap: pretty; }
.resumen__legal a { color: inherit; font-weight: 700; text-underline-offset: 0.2em; }
/* read-only product lines (checkout, confirmation): thumbnail on its colour field, name, volume × qty, amount */
.resumen__lineas { display: grid; gap: var(--e-3); margin-bottom: var(--e-3); }
.resumen-linea { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: var(--e-3); }
.resumen-linea__media { --ratio: 1 / 1; --lata-alto: 82%; }
.resumen-linea__nombre { display: block; font-size: var(--t-chico); font-weight: 800; line-height: 1.25; }
.resumen-linea__detalle { display: block; font-size: var(--t-micro); color: var(--texto-suave, var(--tinta-2)); margin-top: 2px; }
.resumen-linea__importe { font-size: var(--t-chico); font-weight: 700; white-space: nowrap; }

/* info button + tooltip: <span class="info"><button class="info__btn" type="button" aria-label="…" aria-describedby="t1">
   <svg class="icon"><use href="#i-info"/></svg></button><span class="info__texto" role="tooltip" id="t1">…</span></span>
   Shows on hover and on focus (keyboard and tap). Screen readers get it through aria-describedby. */
.info { position: relative; display: inline-flex; }
.info__btn { display: grid; place-items: center; width: 24px; height: 24px; margin: -4px 0; border-radius: var(--r-pill); color: var(--tinta-2); transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.info__btn .icon { --icon: 16px; stroke-width: 1.7; }
.info__btn:hover, .info__btn:focus { color: var(--tinta); background: rgb(17 17 17 / 0.06); }
.info__btn:focus-visible { outline-offset: 1px; }
.info__texto {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  width: max-content; max-width: min(260px, 70vw); padding: 10px 12px;
  background: var(--tinta); color: var(--blanco);
  font-size: var(--t-micro); font-weight: 600; line-height: 1.4; text-align: left; text-wrap: pretty;
  transform: translate(-50%, 4px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s var(--dur);
}
.info__texto::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: var(--tinta); transform: translate(-50%, -50%) rotate(45deg); }
.info__btn:hover + .info__texto, .info__btn:focus + .info__texto, .info.is-abierta .info__texto { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.info--izq .info__texto { left: auto; right: -8px; transform: translate(0, 4px); }
.info--izq .info__texto::after { left: auto; right: 12px; }
.info--izq .info__btn:hover + .info__texto, .info--izq .info__btn:focus + .info__texto, .info--izq.is-abierta .info__texto { transform: none; }
@media (prefers-reduced-motion: reduce) { .info__texto { transition: none; transform: translate(-50%, 0); } }

/* applied discount code: lime light chip with the code and an optional remove button */
.codigo-aplicado {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 16px;
  background: var(--lime-claro); color: var(--tinta-lime);
  font-size: var(--t-chico); font-weight: 600; line-height: 1.35;
}
.codigo-aplicado .icon { --icon: 18px; stroke-width: 1.8; flex: none; }
.codigo-aplicado__texto { flex: 1; min-width: 0; }
.codigo-aplicado__texto b { color: var(--tinta); font-weight: 800; letter-spacing: 0.04em; }
.codigo-aplicado__quitar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); color: var(--tinta-lime); transition: background-color var(--dur) var(--ease-out); }
.codigo-aplicado__quitar:hover { background: rgb(62 74 18 / 0.1); }
.codigo-aplicado__quitar .icon { --icon: 16px; }

/* ------------------------------------------------------------------ checkout steps (pasos) */
/* <ol class="pasos"><li class="pasos__paso is-activo"><a class="pasos__enlace" href="#paso-1" aria-current="step">
   <span class="pasos__num">1</span><span class="pasos__texto">Datos</span></a></li> … </ol>
   States: is-activo (pink, the current step), is-completo (black with a check), else pending. */
.pasos { display: flex; align-items: flex-start; max-width: 560px; counter-reset: paso; }
.pasos__paso { position: relative; flex: 1 1 0; min-width: 0; counter-increment: paso; }
.pasos__paso + .pasos__paso::before {
  content: ""; position: absolute; top: 15px; right: calc(50% + 24px); left: calc(-50% + 24px); height: 1px;
  background: var(--linea); transition: background-color var(--dur-media) var(--ease-out);
}
.pasos__paso.is-completo + .pasos__paso::before, .pasos__paso.is-completo + .pasos__paso.is-activo::before { background: var(--tinta); }
.pasos__enlace { display: grid; justify-items: center; gap: 8px; padding: 0 4px 4px; color: var(--tinta-2); text-decoration: none; border-radius: 8px; }
.pasos__enlace:focus-visible { outline-offset: 2px; }
.pasos__num {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--linea-control); border-radius: var(--r-pill); background: var(--blanco);
  font-size: var(--t-chico); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tinta-2);
  transition: background-color var(--dur-media) var(--ease-out), border-color var(--dur-media) var(--ease-out), color var(--dur-media) var(--ease-out);
}
.pasos__num .icon { --icon: 16px; stroke-width: 2.2; display: none; }
.pasos__texto { font-size: var(--t-chico); font-weight: 600; line-height: 1.2; text-align: center; transition: color var(--dur-media) var(--ease-out); }
.pasos__paso.is-activo .pasos__num { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }
.pasos__paso.is-activo .pasos__texto { color: var(--tinta); font-weight: 800; }
.pasos__paso.is-completo .pasos__num { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.pasos__paso.is-completo .pasos__num .icon { display: block; }
.pasos__paso.is-completo .pasos__num span { display: none; }
.pasos__paso.is-completo .pasos__texto { color: var(--tinta); }
@media (hover: hover) { .pasos__enlace:hover .pasos__texto { color: var(--tinta); } }
@media (max-width: 479px) {
  .pasos__texto { font-size: var(--t-micro); }
  .pasos__num { width: 28px; height: 28px; font-size: var(--t-micro); }
  .pasos__paso + .pasos__paso::before { top: 13px; right: calc(50% + 20px); left: calc(-50% + 20px); }
}

/* ------------------------------------------------------------------ phase 3 shared bits (filosofía, momentos, preguntas) */
/* the comps' short pink rule under a title or next to an overline */
.raya { display: block; width: 40px; height: 2px; background: var(--rosa); }
.overline--raya { display: inline-flex; align-items: center; gap: 12px; }
.overline--raya::before { content: ""; width: 28px; height: 2px; background: var(--rosa); }
/* a round tinted disc with a line icon (values, FAQ categories): colour with --disco */
.icono-circulo {
  --disco: var(--peach-claro);
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-pill);
  background: var(--disco); color: var(--tinta);
  transition: transform var(--dur-media) var(--ease-out);
}
.icono-circulo .icon { --icon: 26px; stroke-width: 1.4; }
.icono-circulo--peach { --disco: var(--peach-claro); }
.icono-circulo--lime { --disco: var(--lime-claro); }
.icono-circulo--butter { --disco: var(--butter-claro); }
.icono-circulo--sky { --disco: var(--sky-claro); }
.icono-circulo--lila { --disco: var(--lila-claro); }
.icono-circulo--grande { width: 72px; height: 72px; }
.icono-circulo--grande .icon { --icon: 32px; stroke-width: 1.2; }
/* copy the client still owes (policies, contact data): the text twin of the "Foto pendiente" tag */
.texto-pendiente {
  display: inline-block; padding: 3px 8px; border: 1px solid currentColor;
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.4;
  color: var(--tinta-2); vertical-align: middle;
}

/* numbered section heading inside the checkout and the review: pink circle + title */
.paso-titulo { display: flex; align-items: center; gap: var(--e-3); }
.paso-titulo__num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--rosa); color: var(--blanco); font-size: var(--t-chico); font-weight: 800; font-variant-numeric: tabular-nums;
}
.paso-titulo__texto { font-size: var(--t-h4); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* ------------------------------------------------------------------ entrance: "Destapa tu LIVIN" (2026-11-09)
   src/partials/edad.html opens it before the first paint, js/edad.js runs the liquid and the can. A modal <dialog> over
   the page, which loads underneath and waits (its CSS entrances paused, its reveals held by ui.js).
   Since 2026-11-10 it shows no text ("debías dejar la animación de líquido al inicio y solo mostrar la lata girando
   suave, la lata debe entrar desde abajo y quedarse en el centro, todos los demás textos no se deberán mostrar"):
   1) the liquid, the wine's colour with the logo and bubbles, drips away on its own; 2) the can rises alone from below
   and stays in the middle, turning slowly, nothing else on screen; 3) a tap on the can opens it (the tab, the foam)
   into the page. */
html.edad-pendiente { overflow: hidden; }
html.edad-pendiente body > :not(.edad), html.edad-pendiente body > :not(.edad) * { animation-play-state: paused !important; }

.edad {
  --edad-campo: var(--peach-claro);
  --edad-ola: var(--peach);
  --edad-letra: var(--rosa);        /* the lettering on the field: the wine's own hue, deep enough to read (see the tokens) */
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--edad-campo); color: var(--tinta);
  overflow: hidden; overscroll-behavior: contain;
}
.edad::backdrop { background: var(--blanco); }
.edad:focus { outline: none; }
.edad[data-vino="blanco"] { --edad-campo: var(--butter-claro); --edad-ola: var(--butter); --edad-letra: var(--butter-hondo); }
.edad[data-vino="tinto"] { --edad-campo: var(--sky-claro); --edad-ola: var(--sky); --edad-letra: var(--sky-hondo); }
.edad[data-vino^="frisante"] { --edad-campo: var(--lila-claro); --edad-ola: var(--lila); --edad-letra: var(--lila-hondo); }

/* the can's layer, over the curtain and the liquid (z 5 > 4 > 3) */
.edad__marco { position: relative; z-index: 5; min-height: 100%; pointer-events: none; transition: opacity 220ms var(--ease-out); }   /* only the can's button takes a press */

/* the can alone: its room is the whole screen; js/edad.js floats the 3D can in its middle, turning slowly, and the
   front packshot shows there until then; the whole can is the button that opens it */
.edad__hueco {
  position: absolute; inset: 0; overflow: clip;   /* the packshot waiting below the screen must not make the gate scroll */
  visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out);
}
.edad.is-sola .edad__hueco { visibility: visible; opacity: 1; }
.edad__frente {
  position: absolute; left: 50%; top: 50%; width: auto; height: 59%;
  translate: -50% 110vh; transition: opacity 360ms var(--ease-out), translate 1300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.edad.is-sola .edad__frente { translate: -50% -50%; }   /* up from below once the liquid has gone */
.edad.is-vivo .edad__frente { opacity: 0; }
.edad__destapar {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: none; width: min(44vh, 64vw); height: 64vh; padding: 0; border: 0; border-radius: 42% / 22%;
  background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.edad.is-destapable .edad__destapar { display: block; }
/* lying down (js/edad.js TAPA_DE_FRENTE) the can is its lid: a disc the smaller of 60% of the height and 86% of the width */
.edad.is-de-frente .edad__destapar { width: min(60vh, 86vw); height: min(60vh, 86vw); border-radius: 50%; }
@media (min-width: 900px) and (min-height: 500px) {   /* a computer's screen: 68% of the height */
  .edad.is-de-frente .edad__destapar { width: min(68vh, 86vw); height: min(68vh, 86vw); }
}
.edad__destapar:focus-visible { outline: 3px solid var(--tinta); outline-offset: 6px; }

/* the lettering (2026-11-10, after Slosh's hero: "tipografías posicionadas de este estilo, además de elementos gráficos
   similares"; src/partials/edad-letras.html). Behind the can (z 0, before its layer in the markup) and in place under the
   liquid from the first paint, except the two big words, which rise in once the can has come up (below). The words are
   the brand's phrases in the brand's own faces only (2026-11-17, "debemos usar la tipografía de la marca, no inventar"):
   LIVIN and WINE in HERBI, as its static outlines (herbi-edad-livin / herbi-edad-wine) at their real proportions, never
   stretched; the curve, the seal and the tag in Mulish (Muli), the base face, at 800 like the corner sticker. The big
   words and the curve are in the wine's own hue, deep enough to read on its light field (--edad-letra, 3.45:1 or more
   in every wine; 2026-11-18, "ayúdame a ajustar el contraste y color de las letras, en algunos sabores las letras se
   pierden con el fondo": in the liquid's own colour they were 1.02:1 on the white wine's field, 1.21 on the red's,
   1.29 on the frisantes', 1.37 on the rosé's); the squiggles stay in the liquid's colour (--edad-ola); the seal, the
   tag and its arrow, the eyes and the corner badge are in the lettering's colour too (since 2026-11-18); the spiked
   seal is in ink, like the brand's stickers. --u is the layout's unit: 1% of the screen's width, or 1.6% of its height when that is smaller, so the set
   keeps its proportions on any wide screen. Upright phones get their own arrangement: the two words above and below the
   can, the seal, the tag; no curve, no eyes, one squiggle. */
.edad__letras {
  --u: min(1vw, 1.6vh);
  --r: min(30vh, 43vw);                  /* the lying can's lid: the radius of .edad__destapar's disc, centred on the screen */
  --phi-x: 0.4695; --phi-y: 0.8829;      /* cos/sin of φ = 62°: where the tag's arrow meets the lid (see the tag) */
  --edad-recorte: var(--edad-campo);     /* the words on the tag and on the star, as if cut out of them: the field's own colour (3.45:1) */
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  font-family: "Mulish", sans-serif; font-weight: 800; color: var(--tinta); line-height: 1; white-space: nowrap; text-transform: uppercase;
}
@media (min-width: 900px) and (min-height: 500px) { .edad__letras { --r: min(34vh, 43vw); } }   /* the disc's computer size */
@media (max-width: 1010px), (max-height: 631px) { .edad__letras { --edad-recorte: var(--blanco); } }   /* where those words are under 18.7px (u < 10.1px): white, 4.1:1 or more */
@media (max-aspect-ratio: 17/10) { .edad__letras { --phi-x: 0.3420; --phi-y: 0.9397; } }       /* φ = 70°: less room at the side */
@media (max-height: 460px) { .edad__letras { --phi-x: 0.7193; --phi-y: 0.6947; } }             /* φ = 44°: landscape phones, big corner sticker */
.edad__letras > * { position: absolute; }
/* the two big words, after the reference's "SLOSH / SELTZER" (2026-11-17: "la lata sube y aparece, es ahí cuando aparecen
   los textos detrás… que diga LIVIN y abajo WINE"): LIVIN to the upper left of the can and WINE to its lower right, in
   HERBI at one size, straight, behind the can, which covers the end of one and the start of the other. Both are set from
   the lid (its centre is the screen's, its radius --r): LIVIN's baseline is 0.45 radii above the centre and its right end
   0.74 radii left of it; WINE's caps start 0.42 radii below the centre and its left end is 0.76 radii right of it. Their
   size is what fits between the screen's edge (4vw of margin) and that point, 0.76 radii at most (LIVIN is 2.442em wide;
   the svg box reaches 0.17em over the caps and 0.12em under the baseline).
   They are not there under the liquid: once the liquid has gone and the can is coming up (.is-sola, then --espera) each
   word rises from behind its own lower edge, letter by letter (2026-11-18: "que aparezcan a destiempo, simulando el
   efecto que tiene la referencia en las palabras"). In the reference each letter leaves about 20 ms after the one
   before it, reaches its place between 0.41 s (the first) and 0.72 s (the fifth), passes it by 11 % of its height (the
   first) down to 4 % (the fifth) and comes back, so the word settles as a wave from left to right, done within 1.1 s;
   the second word starts 60 ms after the first. The five curves below are that motion itself: the top of every letter
   of "SLOSH", measured frame by frame in the filmed reference (revision/edad/herramientas/curvas-letras.py), as
   linear() easings on one clock (0 = hidden 1.18 heights down, 1 = in place), each letter's lateness inside its own
   curve. WINE's four letters take the first four. A browser without linear() gets one plain overshoot curve, each
   letter 22 ms after the one before. With reduced motion they are simply there.
   The fizz in the letters (2026-11-18: "deberán tener el efecto de efervescencia dentro, burbujas dentro de ellas"):
   each letter is a group (fuente/herbi-svg.py, palabras.json "burbujas") holding its path and, clipped by that same
   path, two layers of bubbles like the liquid's (white, see-through, the big ones ringed): big ones that rise one
   tile (900 units) in 3.2 s and small ones in 4.6 s, each layer swaying 14 units to each side, every letter with its
   own place in the tile and its own moment. They go with the letter as it rises in, and only move once the liquid
   has gone (.is-sola). With reduced motion the bubbles are there, still. The letter's rise is in user units (944 =
   1.18 letter heights), not a percentage of its box, because the group's box also holds the bubbles. */
.edad__palabra {
  font-size: min(calc(var(--r) * 0.76), calc((50vw - var(--r) * 0.74 - 4vw) / 2.442));
  line-height: 0; color: var(--edad-letra);
  clip-path: inset(-60% -6% 0 -6%);   /* its lower edge is the line the word rises from */
}
.edad__palabra .herbi-linea { overflow: visible; }   /* the span clips: the line's own box would cut the word as it passes its place */
.edad__palabra--a { right: calc(50% + var(--r) * 0.74); bottom: calc(50% + var(--r) * 0.45 - 0.12em); --espera: 800ms; }
.edad__palabra--b { left: calc(50% + var(--r) * 0.76); top: calc(50% + var(--r) * 0.42 - 0.17em); --espera: 860ms; }
@media (prefers-reduced-motion: no-preference) {
  .edad__palabra .herbi-letra {
    transform: translateY(944px);
    transition: transform 950ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--espera) + var(--n) * 22ms);
  }
  .edad.is-sola .edad__palabra .herbi-letra { transform: none; }
  .edad.is-sola .herbi-burbujas__sube { animation: herbi-burbujas-sube var(--t) linear var(--d) infinite; }
  .edad.is-sola .herbi-burbujas__mece { animation: herbi-burbujas-mece var(--m) ease-in-out var(--d) infinite alternate; }
  @supports (transition-timing-function: linear(0, 1)) {
    .edad__palabra .herbi-letra { transition-duration: 1100ms; transition-delay: var(--espera); }
    .edad__palabra .herbi-letra:nth-child(1) { transition-timing-function: linear(0, 0.136 3.6%, 0.332 9.5%, 0.473 14.2%, 0.595 18.5%, 0.714 23.3%, 0.848 29.1%, 0.971 35.3%, 1.018 38.5%, 1.081 46.2%, 1.094 49.1%, 1.062 58.2%, 1.036 62.9%, 0.992 74.9%, 0.988 79.3%, 1); }
    .edad__palabra .herbi-letra:nth-child(2) { transition-timing-function: linear(0, 0 1.5%, 0.008 1.8%, 0.124 5.1%, 0.315 10.9%, 0.531 18.5%, 0.651 23.3%, 0.761 28%, 0.882 33.8%, 0.965 38.5%, 1 41.5%, 1.063 50.5%, 1.079 53.5%, 1.082 55.3%, 1.073 58.5%, 1.007 74.5%, 0.989 81.1%, 1); }
    .edad__palabra .herbi-letra:nth-child(3) { transition-timing-function: linear(0, 0.002 3.3%, 0.178 8.4%, 0.356 14.2%, 0.476 18.5%, 0.596 23.3%, 0.702 28%, 0.823 33.8%, 0.91 38.5%, 0.953 41.5%, 0.969 42.9%, 1.032 52%, 1.072 61.1%, 1.068 64%, 1.037 71.6%, 0.998 85.5%, 0.994 92.7%, 1); }
    .edad__palabra .herbi-letra:nth-child(4) { transition-timing-function: linear(0, 0 4.7%, 0.008 5.1%, 0.166 9.8%, 0.295 14.2%, 0.426 18.9%, 0.569 24.7%, 0.644 28%, 0.77 34.2%, 0.896 41.5%, 0.941 44.7%, 0.972 49.1%, 1.013 56.7%, 1.036 62.5%, 1.057 70.2%, 1.008 88.4%, 0.998 94.5%, 1); }
    .edad__palabra .herbi-letra:nth-child(n + 5) { transition-timing-function: linear(0, 0 6.5%, 0.007 6.9%, 0.091 9.5%, 0.233 14.2%, 0.365 18.9%, 0.508 24.7%, 0.612 29.5%, 0.759 37.1%, 0.858 42.9%, 0.901 46.2%, 0.934 50.5%, 0.981 59.6%, 1.033 77.8%, 1.035 83.6%, 1); }
  }
}
@keyframes herbi-burbujas-sube { to { transform: translateY(-900px); } }   /* BURBUJA_PERIODO in fuente/herbi-svg.py */
@keyframes herbi-burbujas-mece { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
.edad__rizo { overflow: visible; }
.edad-g-rizo { fill: none; stroke: var(--edad-ola); stroke-width: 9px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.edad__rizo--a { left: -1%; top: -3%; width: calc(var(--u) * 15); }
.edad__rizo--b { left: 9%; top: 43%; width: calc(var(--u) * 17); rotate: 6deg; }
/* the phrase on a curve (2026-11-18, the reference's "GET THE PARTY STARTED" in front: "wine on the go no tiene el ángulo
   de la lata, está invertido, ve la referencia; además debe aparecer hasta que la lata se posicione con la tapa hacia
   el frente y aparecer de izquierda a derecha"). It goes round the lying can's lid, on a circle about the lid's centre
   (edad-letras.html: the box is 3 lid radii wide, centred on the lid; the baseline's radius is 1.21, the letters 0.13
   tall with their heads to the can; from 166° (angles from the right, turning down), under the squiggle, 54° round
   to the lower left, clear of the spiked seal). As the can turns its lid to us the phrase comes in along that circle
   from the left, its last word first, as the reference's does (filmed: 0.92 s, fast at first, done as the can faces
   us): the svg starts turned 58° back and turns into place, and the span's clip hides whatever has not yet passed
   169°. 1.6 s after the liquid has gone (.is-sola), 0.9 s long: it ends with the can's 2.5 s entrance (js/edad.js,
   ENTRADA). With reduced motion it is simply there. On screens narrower than 5:4 the lid leaves it no room beside
   the seal: it is not shown (nor on upright phones, as before). */
.edad__curva {
  left: calc(50% - var(--r) * 1.5); top: calc(50% - var(--r) * 1.5); width: calc(var(--r) * 3); aspect-ratio: 1;
  clip-path: polygon(50% 50%, -48.16% 69.08%, -50% 150%, 150% 150%, 150% 50%);   /* from 169° round the bottom to the right */
}
.edad__curva svg { display: block; width: 100%; height: 100%; overflow: visible; }
.edad__curva text { font-family: "Mulish", sans-serif; font-weight: 800; font-size: 13px; fill: var(--edad-letra); }
@media (prefers-reduced-motion: no-preference) {
  .edad__curva svg { rotate: 58deg; transition: rotate 900ms cubic-bezier(0, 0.28, 0.82, 1) 1600ms; }
  .edad.is-sola .edad__curva svg { rotate: 0deg; }
}
/* the star (2026-11-18, the reference's in front: "refinemos este elemento, la estrella; el diseño de nuestra referencia
   es totalmente diferente, tan solo cómo maneja los colores se ve mejor; además tiene dos estados: inicia mostrando
   el porcentaje de alcohol con una forma específica y después se transforma en este logo"). Until that day: a white
   burst with ink lines and ink words, tilted. Now, as there: one shape in the lettering's colour, the words and a
   line inside it in the cut-out colour (--edad-recorte: the field's, or white where the words are small), upright.
   Two states: a four-pointed star with the wine's alcohol (the catalogue's figure, "ALC. VOL."), there under the
   liquid from the first paint; then, 1.6 s after the liquid has gone, as the can turns its lid to us, it spins half
   a turn and becomes the burst of "FUN, FRESH & SIMPLE". Filmed there, 0.78 s in all: the first words are wiped away
   at once (70 ms), the star spins (400 ms), in the middle of the spin its outline becomes the burst's (160 ms; the
   two polygons share their 44 corners, tools/generar-estrella-edad.py), the new words are wiped in from the top, and
   last the line appears inside the edge. With reduced motion it is the burst from the start. */
.edad__picos { left: 5%; bottom: 5%; width: calc(var(--u) * 20); aspect-ratio: 1; color: var(--edad-recorte); }
.edad__picos-forma {
  position: absolute; inset: 0; background: var(--edad-letra);
  clip-path: polygon(100.00% 50.00%, 86.78% 55.29%, 80.91% 59.08%, 76.75% 62.22%, 73.40% 65.04%, 70.47% 67.74%, 67.74% 70.47%, 65.04% 73.40%, 62.22% 76.75%, 59.08% 80.91%, 55.29% 86.78%, 50.00% 100.00%, 44.71% 86.78%, 40.92% 80.91%, 37.78% 76.75%, 34.96% 73.40%, 32.26% 70.47%, 29.53% 67.74%, 26.60% 65.04%, 23.25% 62.22%, 19.09% 59.08%, 13.22% 55.29%, 0.00% 50.00%, 13.22% 44.71%, 19.09% 40.92%, 23.25% 37.78%, 26.60% 34.96%, 29.53% 32.26%, 32.26% 29.53%, 34.96% 26.60%, 37.78% 23.25%, 40.92% 19.09%, 44.71% 13.22%, 50.00% 0.00%, 55.29% 13.22%, 59.08% 19.09%, 62.22% 23.25%, 65.04% 26.60%, 67.74% 29.53%, 70.47% 32.26%, 73.40% 34.96%, 76.75% 37.78%, 80.91% 40.92%, 86.78% 44.71%);
}
.edad__picos-linea { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--edad-recorte); stroke-width: 1.3px; stroke-linejoin: miter; opacity: 0; }
.edad__picos-texto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; font-size: calc(var(--u) * 1.85); line-height: 1.12; }
.edad__picos-texto--a { font-size: calc(var(--u) * 1.72); line-height: 1.1; }
.edad__grado { font-size: 1.62em; line-height: 1; }
.edad__picos-texto--b { clip-path: inset(0 0 100% 0); }
.edad.is-sola .edad__picos-forma {
  rotate: 180deg;
  clip-path: polygon(100.00% 50.00%, 88.11% 55.48%, 97.97% 64.09%, 85.02% 65.99%, 92.06% 77.03%, 79.10% 75.21%, 82.74% 87.79%, 70.81% 82.39%, 70.77% 95.48%, 60.85% 86.94%, 57.12% 99.49%, 50.00% 88.50%, 42.88% 99.49%, 39.15% 86.94%, 29.23% 95.48%, 29.19% 82.39%, 17.26% 87.79%, 20.90% 75.21%, 7.94% 77.03%, 14.98% 65.99%, 2.03% 64.09%, 11.89% 55.48%, 0.00% 50.00%, 11.89% 44.52%, 2.03% 35.91%, 14.98% 34.01%, 7.94% 22.97%, 20.90% 24.79%, 17.26% 12.21%, 29.19% 17.61%, 29.23% 4.52%, 39.15% 13.06%, 42.88% 0.51%, 50.00% 11.50%, 57.12% 0.51%, 60.85% 13.06%, 70.77% 4.52%, 70.81% 17.61%, 82.74% 12.21%, 79.10% 24.79%, 92.06% 22.97%, 85.02% 34.01%, 97.97% 35.91%, 88.11% 44.52%);
}
.edad.is-sola .edad__picos-linea { opacity: 1; }
.edad.is-sola .edad__picos-texto--a { clip-path: inset(100% 0 0 0); }
.edad.is-sola .edad__picos-texto--b { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .edad__picos-forma { transition: rotate 400ms cubic-bezier(0.45, 0, 0.3, 1) 1600ms, clip-path 160ms cubic-bezier(0.4, 0, 0.6, 1) 1770ms; }
  .edad__picos-linea { transition: opacity 90ms linear 2300ms; }
  .edad__picos-texto--a { clip-path: inset(0 0 0 0); transition: clip-path 70ms linear 1600ms; }
  .edad__picos-texto--b { transition: clip-path 140ms linear 1800ms; }
}
/* the tag and its arrow hang off the lying can's lid (2026-11-17, "coloca bien el elemento de destapa tu livin"). Both are
   set from the lid's centre (the screen's) and radius --r, not from the screen's sides, so the gap to the lid is the same
   on every screen. The arrow's head stops just off the rim (1.04 --r) at the angle φ; its tail rises from just left of the
   tag's middle, so the stroke never runs behind the tag. In the arrow's box (240 × 200, 17u wide) the head is at (24, 62)
   = (1.7u, 4.39u) and the tail at (222, 190) = (15.73u, 13.46u); the tag (1.405em = 2.95u tall) is centred on the
   tail, 1.07u to its right. φ (above) keeps the tag clear of the lid, the screen's edge, the corner sticker and the eyes.
   The tag and the line, refined (2026-11-18: "refinemos la línea… el color no me agrada del todo, se ve tosca de color
   negro, el grosor no es el adecuado, el cuadro del texto no se ve bien así… debería tener el efecto de cortar la
   línea"), with the reference's "POP THE TOP" measured (revision/edad/herramientas/medir-lazo-referencia.py): line and
   box are one colour, the lettering's (--edad-letra), the words the field's; the line is 0.26 cap heights thick there,
   here 3 % of the lid's radius on the loop and 0.55u on the small hook (never under 3px); the box is twice the cap
   height tall: half a cap height (0.35em; Mulish's caps are 0.705em) over and under the words and 0.52em beside
   them, the padding taking in the line box's own room (0.175em over the caps, 0.12em under the baseline) and the
   letters' side bearings; the caps are tracked 0.03em. */
.edad__etiqueta {
  left: calc(50% + var(--r) * 1.04 * var(--phi-x) + var(--u) * 15.1);   /* 1.07u right of the tail: 0.8u clear of its round end, the gap the big tag cuts in its loop */
  top: calc(50% - var(--r) * 1.04 * var(--phi-y) + var(--u) * 7.6);
  padding: 0.175em 0.42em 0.23em 0.45em; rotate: 2deg;
  background: var(--edad-letra); color: var(--edad-recorte); font-size: calc(var(--u) * 2.1); letter-spacing: 0.03em;
}
.edad__flecha {
  left: calc(50% + var(--r) * 1.04 * var(--phi-x) - var(--u) * 1.7);
  top: calc(50% - var(--r) * 1.04 * var(--phi-y) - var(--u) * 4.39);
  width: calc(var(--u) * 17); overflow: visible;
}
.edad__lazo { display: none; overflow: visible; }
.edad__dardo { display: none; overflow: visible; }   /* the arrow into the lid: phones only (below) */
.edad__etiqueta-salto { display: none; }   /* one line, except on computer screens */
.edad-g-trazo { fill: none; stroke: var(--edad-letra); stroke-width: max(3px, calc(var(--u) * 0.55)); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.edad__lazo .edad-g-trazo { stroke-width: max(3px, calc(var(--r) * 0.03)); }
/* the eyes (2026-11-18, with the reference in front: "los ojos que aparecen podemos hacerlos algo similar a la
   referencia, además fíjate dónde están posicionados"): there they are two tall ovals drawn as a line, a wedge for
   a pupil, 0.28 of the big word's cap height tall, sitting on top of the second word, a little right of its middle,
   and every few seconds they hop. Here: the same drawing in the lettering's colour (tools/generar-garabatos.py), its
   line 0.55 of the loop arrow's; 0.28em of WINE's own type (0.31 of its caps, as tall as 0.28 there once the line
   is counted), sitting on WINE's caps over the flat left of its N (clear of the notch in its top),
   looking at the can; the font-size below is the word's (see the big words), so the eyes follow it on every screen.
   As the N comes up past its place it nudges them (the same 0.068em, at the same moment: 860 + 518 ms after
   .is-sola), and then they hop every 5.2 s: up 1.3 of their own height, leaning, and down again. With reduced motion
   they sit still. */
.edad__ojos {
  font-size: min(calc(var(--r) * 0.76), calc((50vw - var(--r) * 0.74 - 4vw) / 2.442));
  left: calc(50% + var(--r) * 0.76 + 1.06em); top: calc(50% + var(--r) * 0.42 - 0.28em); width: 0.28em; overflow: visible;
}
.edad-g-ojo { fill: none; stroke: var(--edad-letra); stroke-width: max(2px, calc(var(--r) * 0.0165)); vector-effect: non-scaling-stroke; }
.edad-g-pupila { fill: var(--edad-letra); }
@media (min-width: 900px) and (min-height: 500px) and (min-aspect-ratio: 3/2) {
  /* computer screens, after Slosh's "POP THE TOP" (2026-11-17, "ve la diferencia de un elemento bien posicionado"): a
     compact two-line tag sits, straight, on a big loop arrow that comes out from behind the can's right edge and wraps
     up and over to point back at the lid (the loop is in edad-letras.html, behind the can, the stickers and the tag).
     Everything in lid radii from the lid's centre, so the set keeps its place on every wide screen: the loop's circle is
     centred at (0.92, -0.62), radius 0.68 (the eyes, once beside it at (2.0, 0.05), sit on WINE since 2026-11-18).
     The tag on the loop (2026-11-18, refined against the reference): as wide and as tall against its loop as "POP THE
     TOP" is against its own (1.07 by 0.45 loop radii), two lines of 0.125-radius type in a box of 5.83em by 2.465em:
     0.34em of field colour over, between and under the lines' ink and 0.52em beside the longer one; each line's ink
     is centred (measured on the page, revision/edad/herramientas/etiqueta-margenes.py: the line-height, the padding
     and the second line's nudge make up for the line boxes, the round letters and the side bearings). It sits where the line runs
     almost upright, 7.6° under the loop's rightmost point, and the line crosses it at 0.70 of its width, as there:
     its centre is at (1.448, -0.530). The same box plus a gap is the cut in the line (edad-letras.html, .edad__corte). */
  .edad__flecha { display: none; }
  .edad__lazo { display: block; left: calc(50% + var(--r) * 0.16); top: calc(50% - var(--r) * 1.38); width: calc(var(--r) * 1.52); }
  .edad__etiqueta {
    left: calc(50% + var(--r) * 1.448); top: calc(50% - var(--r) * 0.530); translate: -50% -50%; rotate: none;
    box-sizing: border-box; width: 5.83em; height: 2.465em; padding: 0.157em 0.031em 0 0;
    font-size: calc(var(--r) * 0.125); line-height: 1.045; text-align: center;
  }
  .edad__etiqueta-b { position: relative; left: 0.066em; }   /* the second line's ink, centred under the first's */
  .edad__etiqueta-salto { display: inline; }
}
@media (max-aspect-ratio: 6/5) {   /* near square: the lid fills almost the whole width, so no angle leaves room beside it.
     The tag goes to the right edge (2.5u in), just under the corner sticker (24px + its width), and the arrow keeps
     its tail just left of the tag's middle (the tag is 22.3u wide, 2.95u tall). Upright phones (below) have their own. */
  .edad__etiqueta { left: calc(100% - var(--u) * 25.6); top: calc(24px + clamp(104px, 13vw, 176px) + var(--u) * 2.175); }
  .edad__flecha { left: calc(100% - var(--u) * 42.43); top: calc(24px + clamp(104px, 13vw, 176px) - var(--u) * 9.81); }
  /* and the big words go to the bands over and under the lid, as tall as the band lets them (5vh from the screen's edge;
     LIVIN's baseline and WINE's caps on the lid's top and bottom lines) */
  .edad__palabra { font-size: min(calc((45vh - var(--r)) / 0.95), 21.4vw); }
  .edad__palabra--a { left: 4vw; right: auto; top: 5vh; bottom: auto; }
  .edad__palabra--b { right: 4vw; left: auto; bottom: 5vh; top: auto; }
  /* the eyes stay on WINE: its box ends 0.12em under the baseline and its caps are 0.8em tall; it is 2.21em wide */
  .edad__ojos { font-size: min(calc((45vh - var(--r)) / 0.95), 21.4vw); left: auto; right: calc(4vw + 0.87em); top: auto; bottom: calc(5vh + 0.92em); }
}
@media (max-aspect-ratio: 5/4) { .edad__curva { display: none; } }   /* no room between the lid and the seal */
@media (max-aspect-ratio: 4/5) {
  .edad__letras { --u: 1vw; }
  .edad__palabra { font-size: min(21.4vw, 11vh); }   /* LIVIN 52vw wide, WINE 47vw, over and under the can; on tablets, short enough to end above the tag */
  .edad__palabra--a { left: 5%; right: auto; top: 5%; bottom: auto; }
  .edad__palabra--b { right: 5%; left: auto; bottom: 6%; top: auto; }
  .edad__rizo--a { width: 24vw; }
  .edad__rizo--b, .edad__curva, .edad__ojos { display: none; }
  .edad__picos { left: 3%; bottom: 2.5%; width: 34vw; }
  .edad__picos-texto { font-size: 3.15vw; }
  .edad__picos-texto--a { font-size: 2.92vw; }   /* the same 1.7 times: the star is 34vw wide here, 20u elsewhere */
  .edad__etiqueta { left: 5%; top: calc(17.5% + 1.13vw); font-size: 3.5vw; }   /* 1.13vw: the tag is slimmer than it was, and stays level with its arrow */
  .edad__flecha { left: 43%; top: 16.5%; width: 17vw; transform: rotate(90deg) scaleX(-1); }   /* from the tag down to the can */
}
/* the tag on phones (2026-11-18, with phone captures: "en la versión de celular la frase destapa tu livin no se
   posiciona bien, ¿lo quitamos o lo ajustamos?"). It stays: on a phone nothing else says the can is tapped. But it hung
   off the screen (5% in, 17.5% down), under LIVIN and far from the can, its hook reaching sideways. Two tries were
   turned down the same day: a caption with a short arrow ("se ve muy pequeña y fea") and an arc round the lid's rim
   ("no me gustó, cambiémoslo: que la flecha invada la tapa y apunte a la parte donde se abre"). So: the tag is a
   straight caption centred over the lid, 0.14 of a radius above its top, and the arrow (.edad__dardo,
   edad-letras-encima.html: a box 3 lid radii wide, centred on the lid) comes down over the lid to the tab's ring.
   The hook that first did so was liked but short ("me gustaría que la línea fuera más larga, tuviera más curvas, que
   se vea increíble y estética"): it is a long flourish now, 3.7 radii of line: an underline that starts under the
   caption's left half, a wave across the lid's top, a sweep out past the rim, a full curl and the run to the ring.
   Line 3 % of the radius, as the computer's loop; type 0.093 radii (4vw: on phones the lid is always 86vw wide).
   Everything is set from the lid, so it is the same on every phone. Upright tablets keep the arrangement above. */
@media (max-aspect-ratio: 23/40) {
  .edad__flecha { display: none; }
  .edad__dardo { display: block; left: calc(50% - var(--r) * 1.5); top: calc(50% - var(--r) * 1.5); width: calc(var(--r) * 3); max-width: none; }   /* wider than the screen (129vw): the reset's max-width: 100% would shrink it */
  .edad__dardo .edad-g-trazo { stroke-width: max(3px, calc(var(--r) * 0.03)); }
  .edad__etiqueta {
    left: 50%; top: calc(50% - var(--r) * 1.14); translate: -50% -50%; rotate: none;
    font-size: calc(var(--r) * 0.093);
  }
  /* this arrow points at the tab, so it is only there once the lid really faces us (.is-de-frente, which the 3D can
     sets when it has lain down): not while a slow 3D can is still loading and the front packshot stands in, and never
     without the 3D can (no WebGL, reduced motion), where the lid is not shown at all; the caption comes out alone */
  .edad__dardo { visibility: hidden; }
  .edad.is-de-frente .edad__dardo { visibility: visible; }
}
@media (max-aspect-ratio: 23/40) and (prefers-reduced-motion: no-preference) {
  /* here the caption comes first, as the lid turns to face us (500 ms after .is-destapable, which is that moment),
     and the line then flows out from under it: 0.9 s from 150 ms after the lid faces us, its head landing at the end */
  .edad .edad__etiqueta { transition-delay: 500ms; }   /* (two classes: the invitation's own rule comes later in this file) */
  .edad__dardo .edad__traza { transition: stroke-dashoffset 900ms cubic-bezier(0.3, 0.1, 0.25, 1) 150ms; }
  .edad.is-destapable .edad__dardo .edad__traza { stroke-dashoffset: 377; }
  .edad.is-de-frente .edad__dardo .edad__traza { stroke-dashoffset: 0; }
  .edad.is-destapable .edad__dardo .edad__punta { opacity: 0; transition-delay: 0ms; }
  .edad.is-de-frente .edad__dardo .edad__punta { opacity: 1; transition-delay: 1010ms; }
}
/* the invitation (2026-11-18: "hasta que la lata se posiciona de frente a nosotros sale este texto, pongámoslo también
   nosotros"): like the reference's "POP THE TOP", the tag and its arrow are not there while the can comes up. Filmed
   there: the arrow's line draws itself from behind the can in 0.7 s, starting half a second before the can has turned
   its lid to us; its head lands at the end; the tag fades in, in 0.22 s, 0.6 s after the can faces us. Here the can can
   be tapped (.is-destapable) at 80 % of its entrance, half a second before it faces us (js/edad.js, ENTRADA), so
   everything hangs from that class: the line (its mask's stroke, .edad__traza, uncovered along its length: the loop's
   arc is 282.5 units long, the hook 310), the head 670 ms later, the tag and its cut 1090 ms later. Without the 3D can the same
   happens as the packshot settles. With reduced motion they are simply there. */
.edad__traza { fill: none; stroke: #fff; stroke-width: 14px; }   /* user units: wider than the line (3 of them) on any screen */
.edad__flecha .edad__traza { stroke-width: 30px; }               /* the hook is drawn small (its box is 240 units for 17u) */
.edad__dardo .edad__traza { stroke-width: 4.6px; }               /* the phones' line crosses itself: its mask is barely wider than it (3), or the curl would show the other strand early */
.edad__corte { fill: #000; }                                     /* in the loop's mask: where the tag cuts the line */
@media (prefers-reduced-motion: no-preference) {
  .edad__traza { stroke-dasharray: 284; stroke-dashoffset: 284; transition: stroke-dashoffset 700ms cubic-bezier(0.3, 0.2, 0.3, 1); }
  .edad__flecha .edad__traza { stroke-dasharray: 312; stroke-dashoffset: 312; }
  .edad__dardo .edad__traza { stroke-dasharray: 377; stroke-dashoffset: 377; }
  .edad.is-destapable .edad__traza { stroke-dashoffset: 0; }
  .edad__punta { opacity: 0; transition: opacity 50ms linear 670ms; }
  .edad__etiqueta, .edad__corte { opacity: 0; transition: opacity 220ms linear 1090ms; }   /* the cut comes with the tag: until then the line is whole */
  .edad.is-destapable .edad__punta, .edad.is-destapable .edad__etiqueta, .edad.is-destapable .edad__corte { opacity: 1; }
}
.edad.is-abriendo .edad__letras { opacity: 0; transition: opacity 220ms var(--ease-out); }
.edad.is-vaciando .edad__letras { display: none; }

/* the brand's stickers rising like bubbles (2026-11-11: "en vez de esos iconos random deberemos poner los stickers que
   tenemos, juega con el tamaño, desenfoque y demás para darle un aspecto increíble"; house doodles until then). Three
   depths, like a camera focused on the can, where out of focus means far and sharp means near (2026-11-12: no blurred
   sticker ever covers a sharp one; tools/preparar-stickers-edad.py writes src/partials/edad-stickers-*.html with each
   slot's place and pace: --x column, --s width, --t seconds to cross the screen, --d how far on its way at the first
   paint, --g its tilt, --y where it rests without motion), in paint order:
     fondo   big and very soft (the blur is in the image), slow, at the very back;
     lejos   small and soft, slow, behind the giant words;
     medio   sharp, the vinyl shadow in the image, between the words and the can, a little faster. Running from the first paint under the liquid, so the drip
   uncovers them already on their way. The colours: the inline script of src/partials/edad.html. */
.edad__simbolos { position: absolute; }   /* the lettering's vector symbols (tools/generar-garabatos.py) */
.edad__stickers { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.edad__sticker {
  --k: 1;
  /* --y: where it rests without motion, kept low enough for its top to stay on screen (2026-11-13: since the per-visit
     sizes the tall ones, the can sticker above all, ran past the top under reduced motion; the can sticker, the tallest,
     stands 1.62 times its width with its baked shadow, so 1.7) */
  position: absolute; left: var(--x); bottom: clamp(0px, var(--y), calc(100% - var(--s) * var(--k) * 1.7));
  width: calc(var(--s) * var(--k));
}
.edad__sticker img { display: block; width: 100%; height: auto; }
@media (min-width: 1100px) { .edad__sticker { --k: 1.15; } }
@media (max-width: 700px) {
  .edad__sticker { --k: 0.62; }
  .edad__sticker[data-movil="no"] { display: none; }   /* (and never fetched there: they load lazily) */
}
@media (max-height: 460px) { .edad__sticker { --k: 0.55; } }
/* single-class selectors: inside a <use> copy, a selector cannot reach an ancestor outside it */
.edad.is-abriendo .edad__stickers { opacity: 0; transition: opacity 220ms var(--ease-out); }
.edad.is-vaciando .edad__stickers { display: none; }

/* the badge in the top right corner (2026-11-10, after Slosh's "4 FLAVORS" one, "en el centro en vez de una cereza estará
   la mascota"); since 2026-11-11 a round sticker after the user's sketch ("debería ser más o menos así, haría falta
   LIVIN"): "– LIVIN –" over the top and "FUN, FRESH & SIMPLE" round the bottom, both upright, in Mulish; the lettering
   turns slowly around Livincito (until 2026-11-11 the ring said "5 VINOS"; there will be more flavours). Until
   2026-11-18 it was a lime sticker with an ink border and a fine inner line; that day, the reference's "4 FLAVORS" in
   front: "la mascota con el texto girando, quitémosle el fondo verde y se me ocurre ponerlo en un tono de trazo blanco
   o similar". No disc now: the lettering and the mascot's line alone, in one colour, --edad-sello. Not white: on the
   light fields white is 1.2:1 to 1.4:1 and the thin line is lost; it is the lettering's own colour (3.45:1), as the
   reference's badge is in its lettering's. The mascot is its line drawing used as a mask (the webp is ink on nothing),
   so it takes that colour. With no disc to hide them, the stickers would show through it: it sits at the lettering's
   depth instead (edad.html: after the big words, before the sharp stickers), so the far, blurred ones pass behind it
   and the sharp ones in front, as with LIVIN and WINE. It is there from the first paint,
   under the curtain and the liquid (z 0 < 3), so the drip uncovers it already in place: no entrance, no move ("ya debe
   estar presente en cuanto pase el fluido inicial, no deberá aparecer ni desplazarse"). It leaves at the opening. */
.edad__sello {
  position: fixed; z-index: 0; top: max(var(--e-5), env(safe-area-inset-top)); right: max(var(--gutter), env(safe-area-inset-right));
  --lado: clamp(104px, 13vw, 176px);
  width: var(--lado); aspect-ratio: 1; pointer-events: none;
  --edad-sello: var(--edad-letra);
}
.edad.is-abriendo .edad__sello { opacity: 0; transition: opacity 220ms var(--ease-out); }
.edad.is-vaciando .edad__sello { display: none; }
.edad__sello-texto { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the letters turn inside the box (a turning box's corners would reach past the screen's edge on phones) */
.edad__sello-anillo { transform-box: view-box; transform-origin: 50% 50%; }
.edad__sello-texto text { font-family: "Mulish", sans-serif; font-weight: 800; font-size: 21px; fill: var(--edad-sello); }
.edad__sello-livincito {
  position: absolute; left: 50%; top: 50%; height: 54%; aspect-ratio: 220 / 334; translate: -50% -50%;
  background: var(--edad-sello);
  -webkit-mask: url("../assets/marca/livincito-220.webp") center / contain no-repeat;
  mask: url("../assets/marca/livincito-220.webp") center / contain no-repeat;
}
/* the mascot's line is fine (drawn for black on a sticker); beside the lettering's weight and in a softer colour it
   needs a little more body: the same drawing again, 0.35 % of the badge's side to each side */
.edad__sello-livincito {
  --mas: calc(var(--lado) * 0.0035);
  filter: drop-shadow(var(--mas) 0 0 var(--edad-sello)) drop-shadow(calc(var(--mas) * -1) 0 0 var(--edad-sello))
          drop-shadow(0 var(--mas) 0 var(--edad-sello)) drop-shadow(0 calc(var(--mas) * -1) 0 var(--edad-sello));
}

/* the 3D can's canvas and the lid packshot it turns into: one layer over the whole screen */
.edad__vitrina { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease-out); }
.edad.is-sola .edad__vitrina { opacity: 1; }
.edad__3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 360ms var(--ease-out); }
.edad__vitrina.is-vivo .edad__3d { opacity: 1; }
.edad__lata {
  position: absolute; left: 50%; bottom: 0;
  height: min(80vh, 92vw, 900px); aspect-ratio: 1;
  translate: -50% 0; opacity: 0; transition: opacity 200ms linear;
}
.edad__foto { display: block; width: 100%; height: 100%; }
.edad__lengueta { position: absolute; visibility: hidden; background-repeat: no-repeat; pointer-events: none; }

/* the curtain and the liquid: the wine's colour and the logo from the first paint (the curtain), then the liquid's
   canvas with its bubbles (WebGL2, js/edad.js Liquido), which drips away on its own. Without js/edad.js the curtain
   fades after 2.8 s; with reduced motion there is none (the can sits on the light colour). */
.edad__gotas { position: fixed; inset: 0; z-index: 3; display: none; width: 100%; height: 100%; pointer-events: none; }
.edad.is-liquido .edad__gotas { display: block; }
.edad__telon {
  position: fixed; inset: 0; z-index: 4; display: grid; place-items: center;
  background: var(--edad-ola); transition: opacity 360ms var(--ease-out);
}
.edad__telon-logo { width: auto; height: clamp(36px, 6vw, 64px); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
.edad__telon.is-sin-logo .edad__telon-logo { opacity: 0; transform: scale(0.94); }
.edad__telon.is-fuera { opacity: 0; }
.edad.is-goteando .edad__ola { display: block; }
@media (prefers-reduced-motion: reduce) { .edad__telon { display: none; } }

/* the opening (js/edad.js): the can turns to its lid at the bottom centre, the foam canvas covers everything, then the
   dialog empties while it drains */
.edad__ola { position: fixed; inset: 0; z-index: 2; display: none; width: 100%; height: 100%; pointer-events: none; }
.edad.is-abriendo .edad__ola { display: block; }
.edad.is-abriendo .edad__marco { opacity: 0; pointer-events: none; }
.edad.is-tapa .edad__lata { opacity: 1; }
.edad.is-tapa .edad__frente { opacity: 0; }
.edad.is-vaciando, .edad.is-vaciando::backdrop { background: transparent; }
/* not visibility: the tab sprite's own inline visibility would outlive it */
.edad.is-vaciando .edad__marco, .edad.is-vaciando .edad__vitrina { display: none; }
.edad.is-saliendo { opacity: 0; transition: opacity 220ms var(--ease-out); }
.edad.is-saliendo::backdrop { background: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .edad__telon-logo { animation: edad-respira 1.6s ease-in-out infinite; }
  .edad__sello-anillo { animation: edad-gira 22s linear infinite; }
  .edad.is-sola .edad__ojos { animation: edad-ojos-empujon 380ms cubic-bezier(0.2, 0.7, 0.3, 1) 1378ms 1, edad-ojos-brinca 5.2s linear 600ms infinite; }
  /* from below the screen to above it, swaying and tilting on the way */
  /* from fully below the screen to fully above it (a sticker is at most 1.6 times as tall as it is wide), swaying */
  .edad__sticker { bottom: calc(var(--s) * var(--k) * -1.6); animation: edad-sube var(--t) linear var(--d) infinite; will-change: transform; }
  .edad__sticker img { animation: edad-mece calc(var(--t) / 4.3) ease-in-out var(--d) infinite alternate; }
  .edad:not(.is-vivo) .edad__frente { animation: edad-flota 4.4s ease-in-out 1.4s infinite; }
}
@keyframes edad-respira { 50% { scale: 1.045; } }
@keyframes edad-gira { to { rotate: 360deg; } }
/* the eyes: nudged by the N as it passes its place (translate), and their hop (transform): two properties, so the two
   never fight */
@keyframes edad-ojos-empujon { 0%, 100% { translate: 0 0; } 41% { translate: 0 -0.075em; animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); } }
@keyframes edad-ojos-brinca {
  0%, 69% { transform: none; animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  84% { transform: translateY(-0.4em) rotate(-9deg); animation-timing-function: cubic-bezier(0.6, 0, 0.85, 0.5); }
  100% { transform: none; }
}
@keyframes edad-sube { to { transform: translate3d(0, calc(-100vh - var(--s) * var(--k) * 1.7), 0); } }
/* the sway, and a breath: each sticker grows and shrinks a little as it rises (2026-11-12: "dinámico y orgánico") */
@keyframes edad-mece { from { transform: translateX(-12px) rotate(calc(var(--g) * -1)) scale(0.93); } to { transform: translateX(12px) rotate(var(--g)) scale(1.07); } }
@keyframes edad-flota { 50% { transform: translateY(-10px) rotate(-2deg); } }   /* transform: the rise uses translate */
