/* Momentos (momentos.html): page-only layout on top of css/livin.css.
   Sections in comp order: hero (text | pending photo of two raised cans), the four moments (one tinted
   block each: text + pending photo; 12 columns on desktop: 7 + 5, then 6 + 6), the final CTA (pending
   photo of the three wines with a light parallax | text), trust strip. Vertical padding is written as
   longhands (see livin.css). Every entrance lives under html.js-revelar and motion allowed. */

.palabra-rosa { font-style: normal; color: var(--rosa); } /* display size on white only */

/* ------------------------------------------------------------------ hero */
.mom-hero { padding-top: var(--e-3); }
.mom-hero__rejilla { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--e-7); }
.mom-hero__texto { display: flex; flex-direction: column; align-items: flex-start; padding-top: var(--e-6); }
.mom-hero__texto .overline { margin-bottom: var(--e-5); }
.mom-hero__texto .raya { margin-top: var(--e-5); }
.mom-hero__sub {
  margin-top: var(--e-5);
  max-width: 30ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.45;
  color: var(--tinta-2);
}
/* (the hero had a "Descubre nuestros momentos" button here until 2026-11-08: it only scrolled to the list) */
/* two cans raised toward each other, as for a toast (in the air: no contact shadow) */
.mom-hero__foto { --ratio: 4 / 3; }
.mom-hero__lata { --lata-alto: 58%; }
.mom-hero__lata--1 { --lata-x: 38%; --lata-base: 19%; --lata-giro: 9deg; }
.mom-hero__lata--2 { --lata-x: 63%; --lata-base: 25%; --lata-giro: -8deg; }
@media (max-width: 899px) {
  .mom-hero__lata { --lata-alto: 50%; }
  .mom-hero__lata--1 { --lata-base: 11%; }
  .mom-hero__lata--2 { --lata-base: 15%; }
}
@media (min-width: 900px) {
  .mom-hero__rejilla { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; row-gap: 0; column-gap: var(--e-6); }
  /* without its button (2026-11-08) the copy is simply centred against the photo, as the Filosofía hero ("dejamos un
     espacio en blanco importante": keeping its old place left a hole under the sentence) */
  .mom-hero__texto { padding-top: 0; padding-right: var(--e-4); }
  /* "Planes reales, / mejores juntos." on two lines, as in the comp, down to 900px */
  .mom-hero__titulo { font-size: clamp(2.5rem, 0.4rem + 4.1vw, 4.5rem); }
  .mom-hero__foto { --ratio: 25 / 18; }
  .mom-hero__lata { --lata-alto: 62%; }
}

/* entrance on load: the copy rises line by line, the button a beat later, the photo settles from a
   light zoom (the note's "zoom in sutil"). Only with JS and motion allowed; otherwise it is simply there. */
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .mom-hero__entra { animation: mom-sube 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  html.js-revelar .mom-hero__foto { animation: mom-aparece 900ms var(--ease-out) 120ms both; }
  html.js-revelar .mom-hero__escena { animation: mom-acerca 1400ms var(--ease-out) 120ms both; }
}
@keyframes mom-sube { from { opacity: 0; transform: translateY(18px); } }
@keyframes mom-aparece { from { opacity: 0; } }
@keyframes mom-acerca { from { transform: scale(1.06); } to { transform: none; } }

/* ------------------------------------------------------------------ the four moments */
.mom-lista { padding-top: clamp(var(--e-7), 5.5vw, var(--e-9)); }
.mom-rejilla { display: grid; gap: 12px; }
.mom { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.mom__texto {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-top: clamp(var(--e-5), 3.4vw, var(--e-7)); padding-bottom: clamp(var(--e-5), 3.4vw, var(--e-7));
  padding-left: clamp(var(--e-5), 3.4vw, var(--e-7)); padding-right: clamp(var(--e-5), 3.4vw, var(--e-7));
}
.mom__titulo { font-size: clamp(1.625rem, 1.15rem + 1.4vw, 2.375rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.mom__titulo.titulo-herbi { --herbi-escala: 1; font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem); } /* the HERBI word blocks (SVG outlines) need more size than Mulish to carry the card */
.mom__texto .raya { margin-top: var(--e-4); }
.mom__linea { margin-top: var(--e-4); max-width: 26ch; line-height: 1.5; }
/* the comp's small tracked "VER VINOS →" */
.mom__enlace { margin-top: var(--e-5); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.mom__enlace .icon { --icon: 16px; stroke-width: 1.8; }
.mom__foto { --ratio: 4 / 3; display: block; }
/* can placement per scene (held cans have no contact shadow; the table one stands on its shadow) */
.mom__foto--escapadas { --lata-alto: 60%; --lata-x: 58%; --lata-base: 15%; --lata-giro: 12deg; }
.mom__foto--reuniones { --lata-alto: 58%; --lata-x: 50%; --lata-base: 14%; --lata-giro: -3deg; }
.mom__foto--musica { --lata-alto: 62%; --lata-x: 56%; --lata-base: 16%; --lata-giro: -10deg; }
.mom__foto--espontaneos { --lata-alto: 60%; --lata-x: 54%; --lata-base: 15%; --lata-giro: 8deg; }
/* phones and tablets: the photo on top, the text under it, in every block */
@media (max-width: 899px) {
  .mom__foto { order: -1; }
}
@media (min-width: 900px) {
  .mom-rejilla { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .mom--ancho { grid-column: span 7; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .mom--alto { grid-column: span 5; grid-template-rows: auto minmax(0, 1fr); }
  .mom--mitad { grid-column: span 6; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  /* beside the text the photo takes the block's full height; the narrow block keeps a 3:2 photo on top */
  .mom--ancho .mom__foto, .mom--mitad .mom__foto { --ratio: auto; min-height: 380px; height: 100%; }
  .mom--mitad .mom__foto { --lata-alto: 70%; --lata-base: 12%; }
  .mom--alto .mom__foto { --ratio: 3 / 2; --lata-alto: 58%; --lata-base: 24%; } /* the note sits at the bottom of this ≥520px block: keep the can above it */
  .mom--alto .mom__texto { justify-content: flex-start; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .mom__titulo { font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem); }
  .mom__titulo.titulo-herbi { font-size: clamp(1.875rem, 1.1rem + 1.25vw, 2.5rem); }
}
/* the HERBI titles are wide blocks: beside a photo the text half never drops below half the block, and
   between 900 and 1099px the two lower blocks stack like Reuniones (photo on top) so no title shrinks
   under HERBI's legible size (revision/herbi/probar-herbi.mjs checks ≥22px caps) */
@media (min-width: 900px) {
  .mom__texto { padding-left: clamp(var(--e-5), 2.6vw, 40px); padding-right: clamp(var(--e-5), 2.6vw, 40px); }
  .mom--mitad { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .mom--ancho { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mom--mitad { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mom--mitad .mom__foto { order: -1; --ratio: 3 / 2; min-height: 0; height: auto; --lata-alto: 62%; --lata-base: 14%; }
  .mom--mitad .mom__texto { justify-content: flex-start; }
}

/* scroll entrance per block (client notes 2–5): the block fades (.revelar--suave), its photo settles from
   a light zoom and the copy rises line by line, the link a beat later */
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .mom .foto-pendiente__escena { transition: transform 1200ms var(--ease-out); }
  html.js-revelar .mom:not(.is-visible) .foto-pendiente__escena { transform: scale(1.06); }
  html.js-revelar .mom .mom__texto > * { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  html.js-revelar .mom .mom__texto > :nth-child(2) { transition-delay: 80ms; }
  html.js-revelar .mom .mom__texto > :nth-child(3) { transition-delay: 160ms; }
  html.js-revelar .mom .mom__texto > :nth-child(4) { transition-delay: 320ms; }
  html.js-revelar .mom:not(.is-visible) .mom__texto > * { opacity: 0; transform: translateY(16px); }
}

/* ------------------------------------------------------------------ final CTA */
/* the white around it, halved on wide screens (2026-11-08, "recorramos hacia arriba las demás secciones, hay mucho
   espacio en blanco"): 48px up to 1200px, 4vw up to 64px from 1600px, above (from the four cards) and below (to the
   trust strip). It was clamp(64px, 6vw, 128px) above and the --seccion rhythm below: 120 + 120px on a 2000px screen. */
.mom-cta { padding-top: clamp(var(--e-7), 4vw, var(--e-8)); padding-bottom: clamp(var(--e-7), 4vw, var(--e-8)); }
.mom-cta__foto { --ratio: 4 / 3; }
.mom-cta__escena { transition: none; } /* the parallax moves it every frame */
/* the three wines standing in a row, each on its own contact shadow */
.mom-cta__lata, .mom-cta__sombra { --lata-alto: 54%; --lata-base: 13%; }
.mom-cta__lata--1, .mom-cta__sombra--1 { --lata-x: 30%; }
.mom-cta__lata--2, .mom-cta__sombra--2 { --lata-x: 50%; }
.mom-cta__lata--3, .mom-cta__sombra--3 { --lata-x: 70%; }
.mom-cta__lata--1 { --lata-giro: -3deg; }
.mom-cta__lata--3 { --lata-giro: 3deg; }
.mom-cta__sombra { bottom: calc(var(--lata-base) - 1%); width: calc(var(--lata-alto) * 0.34); height: 2.6%; opacity: 0.2; }
.mom-cta__titulo { margin-bottom: var(--e-2); }
.mom-cta__bajada { margin-top: var(--e-4); max-width: 30ch; color: var(--tinta-2); }
.mom-cta__boton { margin-top: clamp(var(--e-5), 2.4vw, var(--e-6)); }
/* Livincito on his way to the plan, his cooler in hand (2026-11-09: "¿qué ilustración generamos y agregamos?" →
   "sí, genéralo"; tools/generar-livincito.py --pose hielera, traced by tools/vectorizar-livincito.py --dibujo hielera
   --espejo --engrosar 4). He walks left, his raised hand toward "Ver productos", at the right edge of the page's
   content (the cards' right edge above), his feet on the text column's foot: from 900px that is the photo's bottom
   edge, the ground of the whole closing; stacked, the end of the text block, a little under the button (on the
   button's own foot, at 375-430px his hand touched the end of the sentence). The size keeps him clear of the sentence
   and the button at every width. */
.mom-cta__texto { position: relative; }
.mom-cta__livincito {
  position: absolute; right: 0; bottom: 0;
  height: 96px; width: auto; max-width: none; pointer-events: none;
}
@media (max-width: 360px) { .mom-cta__livincito { height: 84px; } }
@media (min-width: 600px) { .mom-cta__livincito { height: 120px; } }
@media (min-width: 900px) {
  /* the comp's wide band: the photo fills the row the text column sets */
  .mom-cta__rejilla { min-height: clamp(380px, 32vw, 480px); }
  .mom-cta__foto { --ratio: auto; }
  .mom-cta__lata, .mom-cta__sombra { --lata-alto: 54%; --lata-base: 21%; } /* clear of the bottom-left note */
  .mom-cta__lata--1, .mom-cta__sombra--1 { --lata-x: 32%; }
  .mom-cta__lata--3, .mom-cta__sombra--3 { --lata-x: 68%; }
  .mom-cta__texto { padding-left: clamp(var(--e-6), 5vw, var(--e-9)); }
  .mom-cta__livincito { height: clamp(120px, 11vw, 190px); }
}

/* ------------------------------------------------------------------ the brand's sticker (livin.css "brand stickers") */
/* Livincito on his "LIVIN canned wine" sticker, across the hero photo's corner nearest the text: the
   top-right one on phones (the button sits above, to the left), the bottom-left one on desktop */
.mom-hero__sticker { --tam: 72px; --giro: 10deg; --arriba: calc(var(--tam) * -0.26); --derecha: -6px; }
@media (min-width: 900px) {
  .mom-hero__sticker { --tam: clamp(84px, 7.4vw, 112px); --giro: -10deg; --arriba: auto; --derecha: auto; --abajo: calc(var(--tam) * -0.2); --izquierda: calc(var(--tam) * -0.45); }
}
/* where the columns are narrow the sticker reaches out less toward the copy, which now sits lower (centred): at 45% it
   came within 6-7px of the sentence at 900-1024px */
@media (min-width: 900px) and (max-width: 1099px) {
  .mom-hero__sticker { --izquierda: calc(var(--tam) * -0.16); }
}

/* ------------------------------------------------------------------ two accents in the four moments */
/* two of the four cards carry one, alternating (2026-11-08, "dos y dos": clean, accent, clean, accent): */
/* Reuniones que se alargan: the brand's toast sticker (latitas brillantes, blue on the butter) across the seam
   between its photo and its colour, on the right end: 86% over the photo's corner (table, never the can), its foot
   just over the colour, clear of the heading (at 70% its foot reached the heading's first line). */
.mom__sticker-reuniones { --tam: clamp(76px, 7.4vw, 108px); --giro: 9deg; --arriba: calc(var(--tam) * 1.3 * -0.86); --derecha: clamp(14px, 2.2vw, 28px); }
@media (max-width: 599px) {
  .mom__sticker-reuniones { --tam: 64px; --derecha: 12px; }
}
/* Momentos espontáneos: the brand's drawing "Mano V" (the peace hand, in ink) closes "MOMENTOS", the way the cans
   close "JUNTOS." on Filosofía. Set in the title drawing's own box (the box wraps the HERBI svg, which shrinks to the
   panel at some widths): "MOMENTOS" ends at 73.1% of its width, its ink spans 7.8-44.5% of its height and
   "ESPONTÁNEOS" starts at 49.4%. The hand starts at 77.5%, stands a little over the first line's foot (41.5%) and
   rises two thirds of the box's height, into the air above the title. */
.mom__titulo-caja { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.mom__mano-v { position: absolute; left: 77.5%; bottom: 58.5%; height: 66%; width: auto; max-width: none; rotate: -8deg; pointer-events: none; }
