/* Portada (index.html): page-only layout on top of css/livin.css.
   Sections in comp order: hero (text | pending pool photo with the comp's slanted cut),
   Momentos LIVIN (three link cards), Nuestros vinos (live 3D turntables), then the Frisantes
   and Nuestro origen split blocks. Vertical padding is written as longhands (see livin.css). */

/* ------------------------------------------------------------------ hero */
/* overflow-x: clip — the hero sticker starts its landing 1.32× its size by the screen's edge on phones and
   tablets; clipped, it never lends the page a sideways scroll (clip is not a scroll container: sticky and
   the sticker's overhang below the photo still work) */
.portada-hero { padding-top: var(--e-3); overflow-x: clip; }
.portada-hero__rejilla { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--e-7); }
.portada-hero__texto { display: flex; flex-direction: column; align-items: flex-start; padding-top: var(--e-6); }
.portada-hero__texto .overline { margin-bottom: var(--e-5); }
.portada-hero__sub {
  margin-top: var(--e-5);
  max-width: 15.5em; /* breaks after "momentos", as in the comp */
  font-size: clamp(1.125rem, 0.98rem + 0.6vw, 1.5rem);
  line-height: 1.35;
}
.portada-hero__acciones {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-4) var(--e-6);
  margin-top: clamp(var(--e-6), 2.6vw, var(--e-7));
}
.portada-hero__marca { font-size: 1rem; padding-top: 6px; padding-bottom: 6px; }

/* the pending photo: a peach-light block with the rendered rosado can. Its cut faces the text:
   the top edge on phones (text above), the left edge on desktop (text beside it, as in the comp).
   --portada-cierre (1 → 0) opens the cut on load; one animation serves both layouts, so crossing
   the breakpoint never replays it. */
@property --portada-cierre { syntax: "<number>"; inherits: false; initial-value: 0; }
.portada-hero__foto {
  --portada-cierre: 0; /* resting value, also for browsers without @property */
  --ratio: 4 / 3;
  --lata-alto: 74%; --lata-x: 71%; --lata-base: 8%; --lata-giro: 7deg;
  clip-path: polygon(0 calc(var(--portada-cierre) * 22%), 100% calc(7% + var(--portada-cierre) * 22%), 100% 100%, 0 100%);
}
/* phones and tablets: a caption bottom-left, in the space left of the can (the shared rule for
   small blocks would lift it to the top, under the slanted edge) */
.portada-hero .portada-hero__foto .foto-pendiente__nota { top: auto; bottom: var(--e-4); max-width: 47%; }

@media (min-width: 900px) {
  .portada-hero__rejilla { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); align-items: center; row-gap: 0; }
  .portada-hero__texto { padding-top: 0; padding-right: var(--e-6); }
  .portada-hero__titulo { font-size: min(var(--t-h1), 5.6vw); }
  .portada-hero__foto {
    --ratio: 25 / 18;
    --lata-alto: 76%; --lata-x: 49%; --lata-base: 9%; --lata-giro: 7deg;
    clip-path: polygon(calc(var(--portada-cierre) * 36%) 0, 100% 0, 100% 100%, calc(14.75% + var(--portada-cierre) * 36%) 100%);
  }
  /* bottom-right: clear of the slanted edge and of the can */
  .portada-hero .portada-hero__foto .foto-pendiente__nota { left: auto; right: var(--e-5); bottom: var(--e-5); max-width: 22ch; justify-items: end; text-align: right; }
}

/* grounding for the three standing cans (hero towel, Una tarde cualquiera, Nuestro origen): each can
   stands on its surface instead of hanging over a flat smudge. In the 236 packshots the can's base
   rim is centred 4.57% of the image height above the image's bottom edge and spans 65% of its
   width. The shadow is centred on that rim, about 1.08× the can's width and as flat as the rim
   seen from just above (height 0.18 × width). It turns with the can about the can's own pivot (the
   image's bottom centre, 102% down this box), as if the whole shot were taken at a slight tilt.
   Two layers: a soft pool and a tight contact line under the rim; the blur follows the block size. */
:is(.portada-hero__foto, .momento--tarde, .portada-origen__foto) .foto-pendiente__sombra {
  height: calc(var(--lata-alto) * 0.0878);
  width: auto; aspect-ratio: 1 / 0.18;
  bottom: calc(var(--lata-base) + var(--lata-alto) * 0.0018);
  transform: translateX(-50%) rotate(var(--lata-giro));
  transform-origin: 50% 102%;
  background: none; opacity: 1; filter: none;
}
:is(.portada-hero__foto, .momento--tarde, .portada-origen__foto) .foto-pendiente__sombra::before,
:is(.portada-hero__foto, .momento--tarde, .portada-origen__foto) .foto-pendiente__sombra::after { content: ""; position: absolute; border-radius: 50%; background: currentColor; }
:is(.portada-hero__foto, .momento--tarde, .portada-origen__foto) .foto-pendiente__sombra::before { inset: 12% -2% -12%; opacity: 0.24; filter: blur(1.2cqw); }
:is(.portada-hero__foto, .momento--tarde, .portada-origen__foto) .foto-pendiente__sombra::after { inset: 28% 16% 18%; opacity: 0.42; filter: blur(0.3cqw); }

/* entrance on load: the cut opens toward the text while the copy rises, then the can settles.
   Only when JS runs and motion is allowed (html.js-revelar); otherwise everything is simply there.
   The buttons never take part ("sin animaciones que retrasen la compra"): "Comprar LIVIN" is fully
   there from the first frame, and the copy above it is done rising within 720ms. */
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .portada-hero__entra { animation: portada-sube 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
  html.js-revelar .portada-hero__foto { animation: portada-corte 1200ms var(--ease-out) 60ms both; }
  html.js-revelar .portada-hero__foto .foto-pendiente__lata { animation: portada-lata 1300ms var(--ease-out) 240ms both; }
  html.js-revelar .portada-hero__foto .foto-pendiente__sombra { animation: portada-aparece 1200ms var(--ease-out) 420ms both; }
  html.js-revelar .portada-hero__foto .foto-pendiente__nota { animation: portada-aparece 800ms var(--ease-out) 760ms both; }
}
@keyframes portada-sube { from { opacity: 0; transform: translateY(18px); } }
@keyframes portada-aparece { from { opacity: 0; } }
@keyframes portada-corte { from { opacity: 0; --portada-cierre: 1; } }
@keyframes portada-lata { from { opacity: 0; transform: translateX(-50%) translateY(5%) rotate(var(--lata-giro, 0deg)); } }

/* ------------------------------------------------------------------ Momentos LIVIN */
.portada-momentos { padding-top: var(--seccion); }
/* the header works like the Vinos one: label and H2, then 12px below them the sentence, on the H2's left edge (and
   the first card's). No link to the Momentos page any more (2026-11-08, "quita la leyenda de ver todos los
   momentos"): the cards and the menu lead there. Each sentence stays whole once there is room; from 600px the
   sentence always ends 190px before the row's right edge, where the sticker stands. */
.portada-momentos__cabeza { gap: var(--e-3); }
.portada-momentos__cabeza .lead { max-width: 62ch; }
@media (min-width: 600px) {
  .portada-momentos__cabeza .lead { max-width: min(62ch, calc(100% - 190px)); }
  .portada-momentos__cabeza .lead span { display: inline-block; }
}
.portada-momentos__lista { --rejilla-gap: 12px; }
.portada-momentos__lista > li { min-width: 0; }

/* each card is one link: a pending photo (5:4, as in the comp) with its label bottom-left and a
   circled arrow bottom-right, on a band of the card's colour. On hover only the scene zooms; the text and icon stay still. */
.momento { display: block; --ratio: 5 / 4; }
.portada-momentos .momento .foto-pendiente__nota { top: var(--e-5); bottom: auto; left: var(--e-5); right: var(--e-5); max-width: 26ch; }
/* the caption is a straight band of the card's own colour (sky, butter, peach light) along its foot (2026-11-08,
   chosen over white pill bars, which read as a template's floating chips): square corners and the official
   palette, the comp's "bloques de color bien definidos, cortes rectos". The photo zooms behind it; it stays still. */
.momento__pie {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-3);
  padding: 15px 16px 15px 20px;
  background-color: inherit; color: var(--tinta);
}
/* on narrow cards (phones, tablets) the band shrinks with the card, so it never takes a third of the photo:
   60px on a 424px card, 44px on a 225px one */
.momento__pie { padding: clamp(10px, 3.5cqi, 15px) clamp(12px, 3.8cqi, 16px) clamp(10px, 3.5cqi, 15px) clamp(14px, 4.7cqi, 20px); }
.momento__nombre { font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.4375rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
/* one line in every card, so the three bands are always the same height: the label follows the card's width
   ("Una tarde cualquiera", the longest, fits a 225px card at 14px) */
.momento__nombre { font-size: clamp(0.875rem, 6.4cqi, 1.4375rem); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.momento__flecha { --icon: 30px; --icon: clamp(24px, 7cqi, 30px); stroke-width: 1.3; }
@container (max-width: 520px) {
  .portada-momentos .momento .foto-pendiente__nota { top: var(--e-4); left: var(--e-4); right: var(--e-4); }
}

/* Una tarde cualquiera: one can standing on the table */
.momento--tarde { --lata-alto: 54%; --lata-x: 66%; --lata-base: 23%; --lata-giro: -4deg; }
/* Juntarnos porque sí: the three wines raised together, leaning in as for a toast (no contact
   shadow: they are in the air) */
.momento__lata { --lata-alto: 40%; }
.momento__lata--1 { --lata-x: 27%; --lata-base: 25%; --lata-giro: 9deg; }
.momento__lata--2 { --lata-x: 50%; --lata-base: 34%; --lata-giro: -2deg; }
.momento__lata--3 { --lata-x: 73%; --lata-base: 27%; --lata-giro: -10deg; }

/* ------------------------------------------------------------------ Nuestros vinos */
.portada-vinos { padding-top: calc(var(--seccion) * 1.15); padding-bottom: clamp(var(--e-7), 5vw, var(--e-8)); }
.portada-vinos__cabeza { gap: var(--e-3); }
.portada-vinos__cabeza .lead { max-width: 62ch; }
/* comp: one line under the H2 on desktop; when a narrower window makes it wrap, both lines balance
   (no "cualquier plan." orphan). No measure cap there: the sentence (with "y dos frisantes" since 2026-11-07)
   needs about 104 characters, and the comp keeps it on one line wherever the container holds it (≥ 1280px). */
@media (min-width: 900px) {
  .portada-vinos__cabeza .lead { max-width: none; text-wrap: balance; }
}
.portada-vinos__rejilla { --rejilla-gap: clamp(16px, 3.4vw, 48px); }
/* comp: the cans stand tall in their fields. js/pages/index.js sets the same share as
   data-altura before the cans mount, so poster and live can match. */
.portada-vinos__rejilla .lata3d { --lata-altura: 0.88; }
/* hover: the live can comes forward a touch, like the zoom on the other image cards (1.04 here:
   the can already fills 88% of its field) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portada-vinos .tarjeta .lata3d { transition: transform var(--dur-lenta) var(--ease-out); }
  .portada-vinos .tarjeta:hover .lata3d { transform: scale(1.04); }
}

/* phones and tablets: both card rows scroll sideways; room for the cards' focus ring */
@media (max-width: 899px) {
  .portada-momentos__lista, .portada-vinos__rejilla { --rejilla-gap: 12px; padding-top: 6px; margin-top: -6px; }
}

/* desktop: the five cans stay in one row as well (2026-11-07). Three cards fill the container exactly as the
   three wines did (same width, same edges); the other two wait to the side and the row snaps a card at a time.
   The control under it says so (js/pages/index.js): a hairline track whose pink thumb is the part of the row
   in view, and the shared carousel arrows, switched off at either end. Under 900px the row is swiped and the
   control stays hidden. */
.portada-vinos__control { display: none; }
@media (min-width: 900px) {
  .portada-vinos__rejilla {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--rejilla-gap)) / 3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-top: 6px; padding-bottom: 8px; margin-top: -6px; margin-bottom: -8px;   /* room for the focus rings */
  }
  .portada-vinos__rejilla::-webkit-scrollbar { display: none; }
  .portada-vinos__rejilla > * { scroll-snap-align: start; }
  .portada-vinos__control { display: flex; align-items: center; gap: var(--e-5); margin-top: var(--e-5); }
  /* the arrows' circles (32px in a 44px button) end on the cards' right edge, as the track starts on their left */
  .portada-vinos__control .carrusel__flechas { margin-right: -6px; }
}
.portada-vinos__pista { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--linea); overflow: hidden; }
.portada-vinos__avance {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--visible, 1) * 100%);
  border-radius: 2px; background: var(--rosa);
  transform: translateX(calc(var(--avance, 0) * (1 / var(--visible, 1) - 1) * 100%));
}

/* ------------------------------------------------------------------ Frisantes + Nuestro origen */
.portada-bloques { padding-bottom: var(--seccion); }
.portada-bloques__pila { display: grid; gap: var(--e-3); }
.portada-split__texto {
  --split-pad: clamp(var(--e-5), 3.6vw, 56px);
  padding-top: clamp(var(--e-7), 5vw, var(--e-8)); padding-bottom: clamp(var(--e-7), 5vw, var(--e-8));
  padding-left: var(--split-pad); padding-right: var(--split-pad);
}
.portada-split__titulo { font-size: var(--t-h2); }
.portada-split__parrafo { margin-top: var(--e-4); max-width: 23ch; font-size: var(--t-lead); line-height: 1.45; }
.portada-split__boton { margin-top: clamp(var(--e-5), 2.4vw, var(--e-6)); }

/* the two frisante cans, rendered from 3D, on the light warm ground the packshots are lit for */
.portada-frisantes__foto { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--suelo-tienda); }
.portada-frisantes__foto img { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0 auto; height: 84%; width: auto; max-width: 90%; object-fit: contain; }
/* the client's studio shot (white ground): it fills the block */
.portada-frisantes__foto--real { background: #fefefe; } /* the shot's own ground, so contain shows no edge */
.portada-frisantes__foto--real img.foto-pendiente__foto { inset: 4% 3%; margin: 0; width: 94%; height: 92%; max-width: none; object-fit: contain; }

/* bubbles across the yellow block, behind its words and button (2026-11-08: "burbujas flotando… estilo dibujo como la
   mascota… en el bloque amarillo"; then "que salgan atrás del texto, apareciendo en toda el área del contenedor, de
   tamaño variado"; src/partials/frisantes-burbujas.html). The block is their own stage: it clips them at its edges
   and isolates them under its content (z-index -1 over its butter), so the heading, the sentence and the button stand
   on top and the button stays clickable. Fourteen lanes across it, 7 to 48px, each rising from under the block to over
   it in 10-24s with a sway, fading in and out on the way; drawn in the mascot's line (#111, 2px whatever their size,
   lit inside with a little white), the whole layer at 70% so the words lead. A narrower block shows fewer, smaller
   ones; under reduced motion they hold still at their own heights. */
.portada-split--frisantes .portada-split__texto { position: relative; isolation: isolate; overflow: clip; }
.portada-frisantes__burbujas {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  container: burbujas / inline-size;
  opacity: 0.7;
}
.burbuja {
  position: absolute; top: 0; bottom: 0; left: var(--x);
  --tam: calc(var(--t) * var(--escala, 1) * 1px);
  width: var(--tam);
  animation: burbuja-sube var(--dur) linear var(--retraso) infinite;
}
.burbuja svg {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible;
  fill: rgb(255 255 255 / 0.45); stroke: var(--tinta); stroke-width: 2px; stroke-linecap: round;
  animation: burbuja-vaiven calc(var(--dur) / 3.2) ease-in-out var(--retraso) infinite alternate;
}
.burbuja svg * { vector-effect: non-scaling-stroke; }
@keyframes burbuja-sube {
  0% { transform: translateY(var(--tam)); opacity: 0; } /* just under the block */
  8%, 88% { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; } /* just over it */
}
@keyframes burbuja-vaiven { from { transform: translateX(calc(-1 * var(--vaiven))); } to { transform: translateX(var(--vaiven)); } }
@container burbujas (width < 420px) {
  .burbuja { --escala: 0.82; }
  .burbuja:nth-child(3), .burbuja:nth-child(6), .burbuja:nth-child(10), .burbuja:nth-child(13) { display: none; }
  .burbuja svg { stroke-width: 1.7px; }
}
@media (prefers-reduced-motion: reduce) {
  .burbuja { animation: none; transform: translateY(calc(-1 * var(--fijo))); }
  .burbuja svg { animation: none; }
}

/* Nuestro origen: Querétaro in the HERBI stand-in, the vineyard as a pending photo with a light
   parallax on its scene (the note and the text half stay put) */
.portada-origen__titulo { --herbi-escala: 1; font-size: clamp(2.5rem, 0.4rem + 4vw, 3.75rem); margin-top: 2px; }
.portada-origen__parrafo { max-width: 46ch; font-size: var(--t-cuerpo); line-height: 1.55; }
.portada-origen__foto { --ratio: 4 / 3; --lata-alto: 52%; --lata-x: 76%; --lata-base: 12%; --lata-giro: -3deg; }
.portada-origen__escena { transition: none; } /* the parallax moves it every frame */
.portada-split--origen .portada-origen__foto .foto-pendiente__nota { max-width: 30ch; }

@media (min-width: 900px) {
  /* the comp's 2.53:1 band (512px tall at 1296 wide). A min-height rather than aspect-ratio: these
     blocks are grid items, and an aspect-ratio item that grows for its text would widen itself. */
  .portada-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: clamp(400px, 34vw + 22px, 512px); }
  .portada-split--origen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* the text half is 5/12 of the row: size the heading to it so "más momentos." keeps one line */
  .portada-split__titulo { font-size: clamp(2rem, 0.2rem + 3.3vw, 3.375rem); }
  .portada-frisantes__foto { aspect-ratio: auto; }
  /* the can anchors the field the way the frisante pair anchors theirs; the note stays bottom-left */
  .portada-origen__foto { --ratio: auto; --lata-alto: 62%; --lata-x: 68%; --lata-base: 12%; }
  /* the note always ends clear of the can: 120px left of its centre (half the can at the tallest
     band, the note's inset and a gap). This matters at 900–1024, where the band is narrowest and,
     under 520px, the shared container query lifts the note to the top-left. */
  .portada-split--origen .portada-origen__foto .foto-pendiente__nota { max-width: min(30ch, calc(var(--lata-x) - 120px)); }
}

/* ------------------------------------------------------------------ the brand's stickers (livin.css "brand stickers") */
/* hero: the round "anywhere anytime" sticker across the photo's slanted corner, the top-right one on
   phones (the cut runs along the top there) and the bottom-left one beside the text on desktop (the
   cut's foot sits 14.75% into the photo). It lands once, after the cut has opened. */
.portada-hero__sticker { --tam: 100px; --giro: 9deg; --arriba: -40px; --derecha: -6px; }
@media (min-width: 900px) {
  .portada-hero__sticker {
    --tam: clamp(128px, 11.5vw, 172px); --giro: -12deg;
    --arriba: auto; --derecha: auto; --abajo: calc(var(--tam) * -0.24); --izquierda: calc(14.75% - var(--tam) * 0.52);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .portada-hero__sticker .sticker__img { animation: sticker-pega 640ms cubic-bezier(0.2, 1.3, 0.42, 1) 1050ms backwards; }
}
@keyframes sticker-pega { from { opacity: 0; transform: scale(1.32) rotate(16deg); } 50% { opacity: 1; } }

/* the phrases ribbon right under the hero, before Momentos LIVIN */
.portada-cinta { margin-top: clamp(56px, 6vw, 96px); }

/* Momentos LIVIN: the two clinking cans in the white beside the heading (2026-11-07: "del lado derecho queda
   demasiado espacio en blanco", and on the third photo it covered the cans). Placed and sized by the text block it
   answers (2026-11-08, "posiciona y redimensiona el sticker para que se vea armónico, sé riguroso"): the drawing,
   tilted, is exactly as tall as the block, from the label's top to the sentence's last line (from 600px; on phones,
   label to heading, beside the heading), and its right edge is the row's (the third card's). Its height comes from
   the block (top and bottom insets), its width from its own proportion (360 x 468). The insets and the nudge are
   what the 10° tilt adds around the drawing (measured from its alpha): 3.0% of its height over the top, 0.85%
   under the bottom, 1.94% of its width past the right; so the box sits 2.88% / 0.82% of the block inside it and
   1.94% of its own width in from the edge. */
.portada-momentos__titulo { position: relative; } /* the host on phones; from 600px, the whole header */
.portada-momentos__sticker {
  --tam: auto; --giro: 10deg; --arriba: 2.88%; --abajo: 0.82%; --derecha: 0px;
  aspect-ratio: 360 / 468; translate: -1.94% 0;
}
/* on the narrowest phones the heading's first line comes too near: it goes up beside the label instead, smaller,
   its foot over the heading's first line (as since 2026-11-07) */
@media (max-width: 379px) {
  .portada-momentos__sticker { --tam: 58px; --giro: 9deg; --abajo: auto; --arriba: calc(var(--tam) * -1.3 + 24px); aspect-ratio: auto; translate: none; }
}
@media (min-width: 600px) {
  .portada-momentos__titulo { position: static; }
}

/* Nuestros vinos: Livincito with binoculars (2026-11-08, "la mascota con unos binoculares"), generated from the brand's
   drawing and traced to vector, in the white beside the heading, on the row's right edge: his feet just over the
   cards. A drawing, so no vinyl shadow (.sticker--dibujo). On phones the heading fills the width: he stands smaller
   beside the label, his feet over the heading's second line, which ends short of him. --tam is his width (the drawing
   is 1063 x 2090: 1.966 times as tall as wide). */
.portada-vinos__livincito { --tam: 54px; --giro: -3deg; --arriba: -40px; --derecha: 0px; }
/* the narrowest phones: the heading's second line runs under him, so he goes up beside the label, smaller, his
   feet over the heading */
@media (max-width: 389px) {
  .portada-vinos__livincito { --tam: 46px; --arriba: calc(22px - var(--tam) * 1.966); }
}
/* from tablets he stands beside the sentence too, down to the cards: the sentence always ends 40px before him
   (wrapping in two balanced lines where one would reach him) */
@media (min-width: 600px) {
  .portada-vinos__cabeza { --livincito: 90px; }
  .portada-vinos__cabeza .lead { max-width: calc(100% - var(--livincito) - 40px); text-wrap: balance; }
  .portada-vinos__livincito { --tam: var(--livincito); --arriba: auto; --abajo: calc(12px - clamp(var(--e-6), 3vw, var(--e-7))); --derecha: 4px; }
}
@media (min-width: 900px) {
  .portada-vinos__cabeza { --livincito: clamp(104px, 9vw, 130px); }
  .portada-vinos__livincito { --derecha: 8px; }
}
/* his lenses (2026-11-08). The light that once left them ("dos haces de luz amarilla", refined, then following the
   cans) is gone: "ya se quita el haz de luz; el lente sin color, blanco; cuando se haga hover solo el lente cambiará
   de color y se mostrarán las 3 líneas". His glasses are holes in the drawing's white, filled from behind by
   .portada-vinos__vidrios at every width: white (--luz unset), and while a mouse is on a can's card, that card's
   --luz-lata, with the three short glints in his own line by the left lens (.is-luz on the sticker,
   js/pages/index.js luzLivincito). The glints are drawn in his units (width 100, height 196.6), so they grow,
   shrink and lean with him. Phones never show them and keep the glasses white. */
.portada-vinos__vidrios {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  fill: var(--luz, var(--blanco));
}
.portada-vinos__destellos { display: none; }
@media (min-width: 600px) {
  .portada-vinos__destellos {
    display: block; position: absolute; z-index: -1; overflow: visible; pointer-events: none;
    max-width: none;   /* livin.css caps every svg at its box's width */
    left: -10%; width: 14%; top: calc(70 / 196.6 * 100%); height: calc(24 / 196.6 * 100%);
    fill: none; stroke: var(--tinta); stroke-width: 1.75; stroke-linecap: round;
    opacity: 0;
  }
  .portada-vinos__livincito.is-luz .portada-vinos__destellos { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .portada-vinos__vidrios { transition: fill 420ms var(--ease-out); }
  .portada-vinos__destellos { transition: opacity 320ms var(--ease-out); }
}
/* each can's colour for his lenses: its box's field colour; the plum frisante's field is near black, so its lenses take
   its family's lilac */
.portada-vinos__rejilla .tarjeta { --luz-lata: var(--campo); }
.portada-vinos__rejilla .campo-frisante-tinto { --luz-lata: var(--lila); }
@media (min-width: 600px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .portada-vinos__livincito { transition: translate 420ms var(--ease-out), rotate 420ms var(--ease-out); }
  .portada-vinos__cabeza.con-sticker:hover .portada-vinos__livincito { translate: 4% 0; rotate: calc(var(--giro) - 2deg); }
  .portada-vinos__cabeza.con-sticker:hover .portada-vinos__livincito .sticker__img { transform: none; }
}

/* Nuestro origen: "cheers to mother earth" on the seam between the sky block and the vineyard: across
   the top edge on phones (the photo is above), across the inner edge on desktop (the photo beside it) */
.portada-origen__sticker { --tam: 92px; --giro: -10deg; --arriba: calc(var(--tam) * -0.5); --derecha: 20px; }
@media (min-width: 900px) {
  .portada-origen__sticker { --tam: clamp(112px, 9.4vw, 140px); --giro: 12deg; --arriba: clamp(28px, 4vw, 56px); --derecha: calc(var(--tam) * -0.5); }
}

/* ---------------------------------------------------------------- 6. distributors (2026-11-12)
   The client's invitation for businesses ("si quieres volverte distribuidor, conoce nuestras ofertas"), the last
   block of the stack before the footer: the brand's lime (no block above wears it), the HERBI question, one line,
   the black button to distribuidores.html, and Livincito carrying his cooler of cans. */
.dist-banda {
  position: relative; display: grid; grid-template-columns: 1fr; align-items: center; gap: var(--e-5);
  padding: clamp(var(--e-6), 5vw, var(--e-9)) clamp(var(--e-5), 5vw, var(--e-9));
}
.dist-banda__titulo { margin: 0; }
.dist-banda__bajada { margin-top: var(--e-4); max-width: 32ch; color: var(--texto-suave); }
.dist-banda__boton { margin-top: clamp(var(--e-5), 2.4vw, var(--e-6)); }
.dist-banda__livincito {
  display: block; width: auto; height: 112px; justify-self: end; transform: rotate(5deg);
  margin-top: calc(-1 * var(--e-7)); /* beside the button on phones, clear of it */
}
@media (min-width: 600px) { .dist-banda__livincito { height: 160px; margin-top: calc(-1 * var(--e-8)); } }
@media (min-width: 900px) {
  .dist-banda { grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-8); }
  .dist-banda__livincito { height: clamp(220px, 21vw, 300px); margin: 0 clamp(0px, 3vw, var(--e-7)) 0 0; justify-self: center; }
}
