/* Plastic Carrots · Home — capa del sitio: header, menú, formularios, WhatsApp y movimiento.
   Va después de tokens.css, bundle.css y home.css. */

@font-face { font-family: "Averia Serif Libre"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/averia-serif-libre-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Averia Light"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/averia-serif-libre-latin-300-normal.woff2) format("woff2"); }   /* Averia en Light: no existe en cursiva, la inclinación la sintetiza el navegador */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pc-blanco); }
.h-page { overflow: clip; }
#necesidades { scroll-margin-top: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sello: alto definido en el canvas para celular */
.h-seal { height: 202px; min-height: 0; }
@container (min-width: 900px) { .h-seal { height: auto; min-height: 320px; } }   /* antes 560 */

/* ---------- Header fijo: logo blanco sobre el hero → barra blanca redondeada al bajar ---------- */
.s-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 8px 12px 0; pointer-events: none; }
.s-header__inner { pointer-events: auto; position: relative; max-width: calc(var(--pc-max) + 24px); margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; border-radius: var(--pc-r-md); border: var(--pc-bw) solid transparent; background: transparent; transition: background-color 280ms var(--pc-ease), border-color 280ms var(--pc-ease), height 280ms var(--pc-ease), margin 280ms var(--pc-ease); }
.s-logo { position: relative; display: block; width: 112px; height: 38px; }
.s-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity 240ms var(--pc-ease); }
.s-logo .is-violeta { opacity: 0; }
.s-burger { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--pc-blanco); display: grid; place-items: center; transition: color 240ms var(--pc-ease); }
.s-burger span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background-color 200ms; }
.s-burger span::before, .s-burger span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 260ms var(--pc-ease), top 260ms var(--pc-ease); }
.s-burger span::before { top: -7px; }
.s-burger span::after { top: 7px; }
.s-burger:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 50%; }

/* Estado barra (al pasar el hero o con el menú abierto) */
.s-header.is-bar .s-header__inner, .s-header.is-open .s-header__inner { background: var(--pc-blanco); border-color: var(--pc-linea); }
.s-header.is-bar .s-logo .is-violeta, .s-header.is-open .s-logo .is-violeta { opacity: 1; }
.s-header.is-bar .s-logo .is-blanco, .s-header.is-open .s-logo .is-blanco { opacity: 0; }
.s-header.is-bar .s-burger, .s-header.is-open .s-burger { color: var(--pc-tinta); }
.s-header.is-bar .s-logo, .s-header.is-open .s-logo { width: 96px; }
.s-header:not(.is-bar):not(.is-open) .s-header__inner { height: 72px; }

/* Hamburguesa → X */
.s-header.is-open .s-burger span { background: transparent; }
.s-header.is-open .s-burger span::before { top: 0; transform: rotate(45deg); }
.s-header.is-open .s-burger span::after { top: 0; transform: rotate(-45deg); }

/* Menú desplegable */
.s-scrim { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--pc-tinta) 40%, transparent); opacity: 0; pointer-events: none; transition: opacity 260ms var(--pc-ease); }
.s-scrim.is-on { opacity: 1; pointer-events: auto; }
.s-menu { pointer-events: auto; position: absolute; top: calc(100% + 8px); right: 0; width: 100%; max-width: 380px; background: var(--pc-blanco); border-radius: var(--pc-r-md); padding: 8px 8px 12px; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right; visibility: hidden; transition: opacity 220ms var(--pc-ease), transform 260ms var(--pc-ease), visibility 0s linear 260ms; }
.s-header.is-open .s-menu { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms var(--pc-ease), transform 260ms var(--pc-ease), visibility 0s; }
.s-menu ul { list-style: none; margin: 0; padding: 0; }
.s-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; font: 500 18px/1.2 var(--pc-font-sans); text-decoration: none; color: var(--pc-tinta); border-bottom: var(--pc-bw) solid var(--pc-papel); }
.s-menu li:last-child a { border-bottom: 0; }
.s-menu li a:hover { background: var(--pc-papel); border-radius: 12px; }
.s-menu li a .pc-ico { transition: transform var(--pc-dur) var(--pc-ease); }
.s-menu li a:hover .pc-ico { transform: translateX(3px); }
.s-menu .pc-btn { margin: 10px 6px 0; width: calc(100% - 12px); }
.s-header.is-open .s-menu li { animation: s-item 320ms var(--pc-ease) both; }
.s-header.is-open .s-menu li:nth-child(2) { animation-delay: 40ms; }
.s-header.is-open .s-menu li:nth-child(3) { animation-delay: 80ms; }
.s-header.is-open .s-menu li:nth-child(4) { animation-delay: 120ms; }
@keyframes s-item { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .s-menu { max-width: none; } }
@media (min-width: 900px) { .s-header { padding: 16px 24px 0; } .s-logo { width: 148px; height: 48px; } .s-header:not(.is-bar):not(.is-open) .s-header__inner { height: 88px; } .s-header.is-bar .s-header__inner, .s-header.is-open .s-header__inner { height: 64px; } }

/* Submenú «Recursos»: acordeón dentro del mismo panel (v11) */
.s-menu { max-height: calc(100dvh - 88px); overflow-y: auto; }
.s-menu a:focus-visible { outline: 3px solid var(--pc-violeta); outline-offset: -3px; border-radius: 12px; }
.s-sub__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 14px; border: 0; border-bottom: var(--pc-bw) solid var(--pc-papel); background: none; cursor: pointer; text-align: left; font: 500 18px/1.2 var(--pc-font-sans); color: var(--pc-tinta); }
.s-sub__btn:hover { background: var(--pc-papel); border-radius: 12px; }
.s-sub__btn:focus-visible { outline: 3px solid var(--pc-violeta); outline-offset: -3px; border-radius: 12px; }
.s-sub__chev { flex: none; width: 9px; height: 9px; margin: -4px 8px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--pc-dur) var(--pc-ease); }
.s-sub__btn[aria-expanded="true"] .s-sub__chev { transform: rotate(-135deg); margin-top: 4px; }
.s-sub__list { list-style: none; margin: 4px 0 10px 14px; padding: 4px 0 4px 12px; background: color-mix(in srgb, var(--pc-tinta) 8%, var(--pc-papel)); border-radius: 14px; }
.s-sub__list[hidden] { display: none; }
.s-menu .s-sub__list li a { min-height: 42px; font-size: 15px; font-weight: 400; border-bottom: 1px solid color-mix(in srgb, var(--pc-tinta) 12%, transparent); }
.s-menu .s-sub__list li a:hover { background: color-mix(in srgb, var(--pc-tinta) 8%, transparent); }
.s-menu .s-sub__list li:last-child a { border-bottom: 0; }
.s-menu .s-sub__list li a[aria-current] { box-shadow: none; font-weight: 600; }

/* ---------- Hero: texto que se escribe ---------- */
@keyframes s-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.h-hero__sub .s-typing { display: inline; }

/* ---------- Aparición al llegar ---------- */
.s-reveal { opacity: 0; transform: translateY(12px); transition: opacity 560ms var(--pc-ease), transform 560ms var(--pc-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.s-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Etiquetas que se pegan como sticker ---------- */
.pc-note.s-note { opacity: 0; }
.pc-note.s-note.is-in { animation: s-slap 620ms cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--d, 0) * 120ms + 180ms); }
@keyframes s-slap {
  0% { opacity: 0; transform: translateY(-16px) rotate(calc(var(--rot, -5deg) - 10deg)) scale(1.25); }
  60% { opacity: 1; transform: translateY(2px) rotate(var(--rot, -5deg)) scale(.96); }
  100% { opacity: 1; transform: rotate(var(--rot, -5deg)) scale(1); }
}

/* ---------- Globo del lobo ---------- */
.h-bubble { opacity: 0; transform: rotate(-14deg) scale(.4); transform-origin: 10% 90%; transition: opacity 240ms var(--pc-ease), transform 560ms cubic-bezier(.2, .9, .3, 1.4); }
.h-scene.is-in .h-bubble { opacity: 1; transform: rotate(-4deg) scale(1); transition-delay: 350ms; }

/* ---------- Texturas con profundidad (scroll) ---------- */
.pc-fir { translate: var(--px, 0) 0; }
.pc-texture.is-onda > svg { scale: 1.12; translate: 0 var(--py, 0); }

/* ---------- WhatsApp flotante ---------- */
.s-wa { position: fixed; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: var(--pc-verde); color: var(--pc-tinta); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--pc-verde-canto); text-decoration: none; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity 240ms var(--pc-ease), transform 320ms cubic-bezier(.2, .9, .3, 1.3); }
.s-wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
.s-wa:hover { transform: translateY(-2px); }
.s-wa:focus-visible { outline: 3px solid var(--pc-violeta); outline-offset: 3px; }
.s-wa svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .s-wa { right: 32px; bottom: 32px; width: 64px; height: 64px; } }

/* ---------- Formularios: hoja desde abajo (celular) / ventana centrada (escritorio) ---------- */
.s-dialog { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; background: var(--pc-blanco); color: var(--pc-tinta); border-radius: 28px 28px 0 0; font-family: var(--pc-font-sans); overflow: auto; }
.s-dialog::backdrop { background: color-mix(in srgb, var(--pc-tinta) 40%, transparent); }
.s-dialog[open] { animation: s-sheet 380ms var(--pc-ease) both; }
.s-dialog[open]::backdrop { animation: s-fade 300ms var(--pc-ease) both; }
@keyframes s-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s-fade { from { opacity: 0; } to { opacity: 1; } }
.s-dialog form { padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.s-dialog .h-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.s-dialog .h-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--pc-papel); display: grid; place-items: center; color: var(--pc-tinta); flex: none; cursor: pointer; }
.s-dialog .h-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.s-dialog textarea.pc-input { height: 104px; border-radius: 20px; padding: 14px 20px; resize: none; font: 400 16px/1.4 var(--pc-font-sans); }
.s-dialog select.pc-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pc-tinta) 50%), linear-gradient(135deg, var(--pc-tinta) 50%, transparent 50%); background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.s-dialog .pc-note { position: static; margin-bottom: 6px; }
.s-dialog .s-msg { margin: 0; }
@media (min-width: 900px) {
  .s-dialog { margin: auto; width: min(520px, 92vw); border-radius: var(--pc-r-lg); }
  .s-dialog[open] { animation-name: s-pop; }
  @keyframes s-pop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Sin movimiento para quien lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .s-reveal, .pc-note.s-note, .h-bubble { opacity: 1 !important; transform: none !important; }
  .h-bubble { transform: rotate(-4deg) !important; }
  .pc-note.s-note { transform: rotate(var(--rot, -5deg)) !important; }
}

/* ---------- Hero: slider manual de tres slides ---------- */
/* Sin JavaScript: las tres slides en orden, una debajo de otra, con sus enlaces; los controles no se muestran. */
.h-slider__pista { display: grid; gap: 72px; }
.h-slide { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.h-slide__t { color: var(--pc-blanco); max-width: 16ch; font-size: clamp(38px, 11.5cqi, 60px); }
.h-slide__p { margin: 16px 0 0; max-width: 34ch; font-family: var(--pc-font-serif); font-weight: 400; font-size: clamp(21px, 1rem + 1.1cqi, 30px); line-height: 1.28; color: var(--pc-blanco); }
.h-slide__meta { margin: 16px 0 0; font: 600 16px/1.3 var(--pc-font-sans); letter-spacing: .01em; color: var(--pc-blanco); }
.h-slide__t + .h-hero__ctas, .h-slide__p + .h-hero__ctas { margin-top: 28px; }
.h-slide__meta + .h-hero__ctas { margin-top: 14px; }
.h-slide .h-hero__ctas .pc-link { color: var(--pc-blanco); }
/* Terminaciones del primer hero */
/* Controles: ocultos hasta que hay JavaScript */
.h-ctrl.pc-sc { display: none; margin-top: 24px; }
.js .h-ctrl.pc-sc { display: flex; }
.js .h-slider__pista { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; padding: 10px 0 12px; margin: -10px -8px -12px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.js .h-slider__pista::-webkit-scrollbar { display: none; }
.js .h-slide { flex: 0 0 100%; padding-inline: 8px; scroll-snap-align: start; scroll-snap-stop: always; }   /* el padding deja la slide vecina fuera de vista y el foco sin recortar */
/* Con movimiento permitido y JavaScript la terminación se escribe; no hay control de pausa (decisión de Fede) */
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) {
  .js .h-slider__pista { scroll-behavior: auto; }
}
/* Destino del ancla de «Ver por dónde empezar»: el header fijo no tapa el título del bloque */
#necesidades { scroll-margin-top: 76px; }
/* Escritorio: el aire original del hero (la versión angosta es más compacta) */
@container (min-width: 900px) {
  p.h-hero__sub { margin-top: 22px; }
  .h-slide__p, .h-slide__meta { margin-top: 18px; }
  .h-slide__t + .h-hero__ctas, .h-slide__p + .h-hero__ctas { margin-top: 28px; }
  .h-ctrl.pc-sc { margin-top: 36px; }
}
/* Los controles (flechas y puntos) son el patrón canónico .pc-sc de bundle.css; acá sólo el margen del hero. */

/* Menú principal (ajuste): separador y pie del grupo «Recursos», grupo activo, fila Tienda con bolsita */
.s-menu .s-sub__sep { list-style: none; height: 0; margin: 6px 12px 4px 0; border-top: 1px solid color-mix(in srgb, var(--pc-tinta) 28%, transparent); }
.s-menu .s-sub__list li.s-sub__pie a { font-weight: 600; }
.s-menu .s-sub__list li a[aria-current] { box-shadow: inset 4px 0 0 var(--pc-violeta); }
.s-sub__btn[aria-current] { font-weight: 600; box-shadow: inset 4px 0 0 var(--pc-violeta); }
.s-menu__tienda { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; margin: 10px 0 0; padding: 0 18px 0 14px; border-radius: 999px; background: var(--pc-naranja); color: var(--pc-tinta); font: 500 18px/1.2 var(--pc-font-sans); text-decoration: none; transition: background var(--pc-dur) var(--pc-ease); }
.s-menu__tienda:hover { background: var(--pc-naranja-hover); }
.s-menu__tienda:focus-visible { outline: 3px solid var(--pc-tinta); outline-offset: 3px; }
.s-menu__tienda .pc-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-menu .s-sub__list li:has(+ .s-sub__sep) a { border-bottom: 0; }   /* una sola línea antes del pie: la del separador */
.s-menu__txt { display: inline-flex; align-items: center; gap: 10px; }
.s-menu__tienda:hover .pc-ico:last-child { transform: translate(2px, -2px); }
.s-menu__tienda .pc-ico:last-child { transition: transform var(--pc-dur) var(--pc-ease); }

/* Submenú sin cajón: sangrado a la derecha con guía lateral, texto más chico y más suave que el título del grupo, más aire */
.s-menu .s-sub__list { background: none; border-radius: 0; margin: 2px 0 10px 22px; padding: 2px 0 2px 12px; border-left: 2px solid color-mix(in srgb, var(--pc-tinta) 16%, transparent); display: grid; gap: 2px; }
.s-menu .s-sub__list li a { min-height: 40px; padding: 0 12px; font-size: 15px; font-weight: 400; border-bottom: 0; border-radius: 10px; color: color-mix(in srgb, var(--pc-tinta) 76%, var(--pc-blanco)); }
.s-menu .s-sub__list li a:hover { background: var(--pc-papel); color: var(--pc-tinta); }
.s-menu .s-sub__list li.s-sub__pie a { font-weight: 500; color: var(--pc-tinta); }
.s-menu .s-sub__sep { height: 0; margin: 8px 0; border: 0; }
.s-menu .s-sub__list li a[aria-current] { box-shadow: none; font-weight: 600; color: var(--pc-tinta); background: color-mix(in srgb, var(--pc-violeta) 14%, transparent); }
.s-menu .s-sub__list[hidden] { display: none; }

/* Sin barra de desplazamiento: el alto de las filas se comprime con el alto de la ventana (el panel abierto con Recursos siempre entra) */
.s-menu { --row: clamp(34px, calc((100dvh - 160px) / 11), 56px); }
.s-menu li a, .s-sub__btn, .s-menu__tienda { min-height: var(--row); }
.s-menu .s-sub__list li a { min-height: calc(var(--row) * .72); }
.s-menu .s-sub__sep { margin: calc(var(--row) * .12) 0; }
.s-menu__tienda { margin-top: calc(var(--row) * .14); }
@media (max-height: 640px) { .s-menu li a, .s-sub__btn, .s-menu__tienda { font-size: 16px; } .s-menu .s-sub__list li a { font-size: 14px; } }
@media (max-height: 460px) { .s-menu { --row: 28px; padding-block: 4px; } .s-menu li a, .s-sub__btn, .s-menu__tienda { font-size: 14px; } .s-menu .s-sub__list { grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 4px; } .s-menu .s-sub__sep { grid-column: 1 / -1; margin: 2px 0; } .s-menu .s-sub__list li a { min-height: 26px; font-size: 13px; } }

/* Página activa sin violeta: sólo peso y, en el submenú, fondo papel */
.s-menu li a[aria-current], .s-sub__btn[aria-current] { box-shadow: none; font-weight: 600; }
.s-menu .s-sub__list li a[aria-current] { box-shadow: none; font-weight: 600; background: var(--pc-papel); }

/* ---------- Hero 3 (test): foto de fondo en duotono naranja ---------- */
.h-hero { transition: background-color 320ms var(--pc-ease); }
.h-hero.is-test { --bg: #1E1D1B; }   /* si la foto tarda, el fondo ya es del mismo tono */
.h-hero__foto { z-index: 0; opacity: 0; transition: opacity 320ms var(--pc-ease); pointer-events: none; overflow: hidden; }
.h-hero.is-test .h-hero__foto--test { opacity: 1; }
.h-hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
/* sombra cálida: arriba para el header y detrás del texto, para que el blanco se lea sobre las rayas de la senda */
.h-hero__foto--test::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 170px), radial-gradient(ellipse 72% 64% at 50% 55%, rgba(12, 11, 10, .42) 22%, rgba(12, 11, 10, 0) 100%), rgba(12, 11, 10, .3); }   /* foto original (sin filtro de color): solo se oscurece, con negro neutro, lo necesario para leer el texto blanco */
@media (max-width: 699px) { .h-hero__foto--test::after { background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 150px), radial-gradient(ellipse 130% 60% at 50% 52%, rgba(12, 11, 10, .42) 30%, rgba(12, 11, 10, 0) 100%), rgba(12, 11, 10, .3); } }
/* Hero 2 (por dónde empezar): la foto va original, sin filtro, y para leer el texto blanco se le suma una sombra de verde profundo que sale de la izquierda
   (no una luz que la lava): la foto conserva su color y su contraste. La foto queda en una capa propia detrás de todo (z-index negativo dentro del hero). */
.h-hero { isolation: isolate; }
.h-hero.is-lima { --bg: #1E1D1B; }
.h-hero__foto--lima { z-index: -1; }
.h-hero.is-lima .h-hero__foto--lima { opacity: 1; }
.h-hero__foto--lima img { object-position: 0% 50%; }
.h-hero.is-lima .pc-texture.is-onda { opacity: 0; }
.h-hero.is-lima #hero-2 .h-hero__ctas .pc-btn { background: var(--pc-blanco); color: var(--pc-tinta); }   /* el botón oscuro se perdía sobre la sombra verde */
.h-hero__foto--lima::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 170px), radial-gradient(ellipse 80% 70% at 50% 52%, rgba(12, 11, 10, .54) 26%, rgba(12, 11, 10, 0) 100%), rgba(12, 11, 10, .32); }   /* igual que el hero del test: foto original y solo negro neutro para leer el texto blanco */
@media (max-width: 699px) { .h-hero__foto--lima img { object-position: 50% 50%; } .h-hero__foto--lima::after { background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 150px), radial-gradient(ellipse 130% 60% at 50% 52%, rgba(12, 11, 10, .46) 30%, rgba(12, 11, 10, 0) 100%), rgba(12, 11, 10, .36); } }
/* Hero 1 (nuestra propuesta): foto original de la partida de cartas, mismo tratamiento que los otros dos heros: sin filtro de color, solo negro neutro para leer el texto blanco.
   El texto va a la izquierda, así que la sombra pesa más de ese lado. */
.h-hero.is-prop { --bg: #1E1D1B; }
.h-hero__foto--prop { z-index: -1; }
.h-hero.is-prop .h-hero__foto--prop { opacity: 1; }
.h-hero__foto--prop img { object-position: 60% 50%; }
.h-hero.is-prop .pc-texture.is-onda { opacity: 0; }
.h-hero__foto--prop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 170px), linear-gradient(90deg, rgba(12, 11, 10, .55) 0, rgba(12, 11, 10, .4) 38%, rgba(12, 11, 10, 0) 72%), rgba(12, 11, 10, .22); }
@media (max-width: 699px) { .h-hero__foto--prop img { object-position: 50% 50%; } .h-hero__foto--prop::after { background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 150px), linear-gradient(0deg, rgba(12, 11, 10, .62) 0, rgba(12, 11, 10, .5) 45%, rgba(12, 11, 10, 0) 80%), rgba(12, 11, 10, .2); } }
/* Movimiento de la foto al llegar a cada hero: se aleja un poco (de 108 % a 100 %) mientras aparece. Una sola vez por cambio de slide, sin loop, y queda quieta;
   no corre con «reducir movimiento». Al volver a una slide la animación se reinicia porque la clase del hero se saca y se vuelve a poner. */
@keyframes h-foto-aleja { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .h-hero.is-prop .h-hero__foto--prop img, .h-hero.is-lima .h-hero__foto--lima img, .h-hero.is-test .h-hero__foto--test img { animation: h-foto-aleja 1800ms cubic-bezier(.22, .61, .36, 1) both; will-change: transform; }
}
.h-slide--test, .h-slide--centro { align-items: center; text-align: center; }
.h-slide--centro { justify-content: center; }
.h-slide--centro .h-slide__t { max-width: 20ch; }
.h-slide--centro .h-slide__p { max-width: 44ch; margin-inline: auto; }
.h-slide--centro .h-hero__ctas { align-self: center; align-items: center; justify-content: center; }
.h-slide--test { justify-content: center; padding-top: 40px; }   /* baja el bloque un poco: queda más abajo del centro, con aire arriba para el sello */
@media (min-width: 900px) { .h-slide--test { padding-top: 64px; } }
/* sello circular (Burst) arriba a la derecha del título, como las notitas: violeta claro, chico. Cuelga de un ancla sin tamaño al final de la primera línea */
.h-test__fin { white-space: nowrap; }   /* «en» y el ancla no se separan: el sello queda siempre al final de la primera línea */
.h-test__anc { position: relative; display: inline-block; width: 0; height: 0; }
.h-test__burst { --bg: var(--pc-lila); --edge: var(--pc-violeta-medio); --size: 60px; --rot: 8deg; position: absolute; left: calc(-2.1em - var(--size) / 2); bottom: 0.95em; }   /* su centro cae a 3/4 del ancho de la primera línea (la línea mide ~8,4 em) */
.h-test__burst .pc-burst__txt { font-size: 10.5px; max-width: 74%; }
@media (min-width: 900px) { .h-test__burst { --size: 88px; bottom: 0.85em; } .h-test__burst .pc-burst__txt { font-size: 14px; } }
.h-slide--test .h-slide__t { max-width: 22ch; font-size: clamp(32px, 9.4cqi, 56px); }
.h-slide--test .h-slide__p { max-width: 40ch; margin-inline: auto; }
.h-slide--test .h-hero__ctas { align-self: center; align-items: center; justify-content: center; }
.h-slide__t, .h-slide__p { transition: color 320ms var(--pc-ease); }
@media (prefers-reduced-motion: reduce) { .h-hero__foto { transition: none; } }
.h-ctrl.pc-sc { margin-top: 24px; }

/* La barra del header es una pastilla en todos los anchos (antes en mobile y tablet tenía esquina chica) */
.s-header__inner { border-radius: 999px; }
/* Header de la Home: sobre el hero (sin barra) todo en blanco, también el botón Tienda; con la barra vuelve al naranja */
.s-header:not(.is-bar):not(.is-open) .s-header__tienda, .s-header:not(.is-bar):not(.is-open) .s-menu__tienda { background: var(--pc-blanco); }
.s-header:not(.is-bar):not(.is-open) .s-header__tienda:hover, .s-header:not(.is-bar):not(.is-open) .s-menu__tienda:hover { background: color-mix(in srgb, var(--pc-blanco) 86%, var(--pc-tinta)); }

/* ---------- Nota destacada del Blog (piloto automático y bienestar): fondo lila muy claro con grano riso suave ---------- */
.h-dest { margin: 0 0 clamp(20px, 3cqi, 32px); }
.h-dest { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; background: color-mix(in srgb, var(--pc-lila) 38%, var(--pc-blanco)); border-radius: var(--pc-r-lg); color: var(--pc-tinta); text-decoration: none; box-shadow: 0 0 0 var(--pc-bw) var(--pc-linea); transition: transform var(--pc-dur) var(--pc-ease); }
.h-dest::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: multiply; background-size: 220px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.h-dest__img { aspect-ratio: 5 / 4; background: #FDDFC7; overflow: hidden; }   /* más cuadrada; la ilustración se acerca y queda de la mesa para arriba */   /* el fondo plano de la ilustración: se ve el dibujo entero, sin recorte */
.h-dest__img { position: relative; }
.h-dest__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.12); transform-origin: 50% 0; }
.h-dest__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px 16px; }
.h-dest__txt .pc-h2 { margin: 0; font-size: clamp(22px, 2.4cqi, 28px); line-height: 1.15; }
.h-dest__txt .pc-lead { margin: 0; font-size: 15px; line-height: 1.45; }
.h-dest__cta { margin-top: 2px; font-size: 15px; }
.h-dest:hover .h-dest__cta { text-decoration-thickness: 3px; }
.h-dest:hover .h-dest__cta .pc-ico { transform: translateX(3px); }
.h-dest:focus-visible { outline: 3px solid var(--pc-violeta); outline-offset: 4px; }
@container (min-width: 900px) {
  .h-dest { flex-direction: row; align-items: stretch; }
  .h-dest__img { flex: 0 0 clamp(200px, 20cqi, 260px); aspect-ratio: 1 / 1; min-height: 0; }   /* la ilustración entera, centrada sobre su fondo */
  .h-dest__txt { flex: 1; justify-content: center; padding: 14px 28px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .h-dest { transition: none; } }
.h-dest .h-dest__nota.pc-note { position: static; inset: auto; align-self: flex-start; margin: 0 0 4px; }

/* ---------- Tienda: ficha de producto del catálogo (.rc-ficha) en el slider de tarjetas (.pc-galeria--cards, galeria.js) ----------
   Copia de recursos/css/recursos.css (Fichas y «Para saber más»): la Home no carga ese CSS. Si cambia allá, cambia acá. */
.rc-card .rc-card__media { aspect-ratio: 4 / 3 !important; border-radius: var(--pc-r-md); }
.rc-ficha.pc-tile { justify-content: flex-start; gap: 16px; min-height: 0; padding: 12px 12px 20px; }
.rc-ficha .pc-media { border-radius: var(--pc-r-sm); flex: none; }
.rc-ficha .pc-card__body { padding: 0 8px; gap: 10px; }
.rc-ficha .pc-card__title { font-size: clamp(21px, 1.8cqi, 24px); }
.rc-ficha:hover .pc-card__title { text-decoration-color: currentColor; }
.pc-galeria--cards { --gal-h: auto; }
.pc-galeria--cards .pc-galeria__pista { align-items: stretch; gap: 22px; padding: 6px 6px 10px; scroll-padding-inline: 6px; }
.pc-galeria--cards .pc-galeria__item { height: auto; display: flex; flex: 0 0 84%; min-width: 0; transform: none; scroll-margin-left: 6px; }
.pc-galeria--cards .pc-galeria__item .rc-ficha { width: 100%; }
.pc-galeria--cards .pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; border-radius: 0; box-shadow: none; background: none; }
@media (prefers-reduced-motion: reduce) { .rc-ficha.pc-tile { transition: none; } }
/* propio de la Home: fichas sobre papel en el bloque lila; tres enteras y parte de la cuarta en escritorio, una y parte en celular */
.pc-block.h-tienda { --ctx-surface: var(--pc-blanco); --niebla-dark: var(--pc-violeta-medio); --niebla-light: #EFE9FE; }
/* Niebla sobre lila (design system, TextureNiebla): la máscara de la Home es una versión liviana de la del sistema */
.h-tienda .pc-texture.is-niebla { background: var(--niebla-dark); }
.h-tienda .pc-texture.is-niebla::after { content: ""; position: absolute; inset: 0; background: url(../img/niebla-luz.webp) center / cover no-repeat; }   /* la niebla clara va como imagen con transparencia (#EFE9FE ya horneado), sin máscara: Chrome no cargaba la máscara y el fondo quedaba plano */
.h-tienda__tit { display: flex; align-items: center; gap: 14px; }
.h-tienda__sticker { position: relative; top: -5px; }   /* un poco más arriba: alineado con el texto del título */
.h-tienda__tit:hover .pc-sticker, .h-tienda__tit.is-touch .pc-sticker { animation: pc-wiggle 520ms var(--pc-ease); }   /* se mueve como los de las categorías */
@media (prefers-reduced-motion: reduce) { .h-tienda__tit:hover .pc-sticker { animation: none; } }
/* Título de la Tienda: siempre en una línea; en celular la letra se achica con el ancho para que entre junto al sticker */
.h-tienda__tit { flex-wrap: nowrap; }
.h-tienda__tit > span:last-child { white-space: nowrap; }
.h-tienda__gal { margin-inline: -6px; }
.h-tienda__gal .pc-galeria__ctl { margin: 16px 6px 0; }
@media (min-width: 600px) { .h-tienda__gal .pc-galeria__item { flex-basis: calc((100% - 44px) / 2.4); } }
@media (min-width: 960px) { .h-tienda__gal .pc-galeria__item { flex-basis: calc((100% - 66px) / 3.4); } }

/* ---------- Medida compacta para secciones de carrusel (Tienda, reseñas): menos aire arriba y abajo, títulos y tarjetas más chicos ---------- */
.pc-block.is-compacto { --pc-section-y: clamp(44px, 5.6cqi, 72px); }
.pc-block.is-compacto .pc-head { margin-bottom: 28px; }
.h-tienda .h-more--bottom { margin-top: 24px; }
.h-tienda .rc-ficha .pc-card__title, .h-blog .rc-ficha .pc-card__title { font-size: 20px; }
.h-tienda .rc-ficha .rc-card__media, .h-blog .rc-ficha .rc-card__media { aspect-ratio: 3 / 2; }
.h-tienda .rc-ficha .rc-card__media img, .h-blog .rc-ficha .rc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.h-tienda__gal .pc-galeria__ctl { margin: 8px 6px 0; }
@media (max-width: 599px) { .h-tienda__gal .pc-galeria__item { flex-basis: 78%; } }
.h-rev .pc-galeria--resenas .pc-galeria__pista { padding-top: 14px; padding-bottom: 20px; }
.h-rev .pc-galeria--resenas .pc-review { padding: 18px; gap: 10px; }
.h-rev .pc-galeria--resenas .pc-review__text.is-corto { -webkit-line-clamp: 4; }
/* Cada reseña mide lo que necesita su texto: sin el hueco entre «Leer completa» y el nombre (antes todas se estiraban a la más alta) */
.h-rev .pc-galeria--resenas .pc-galeria__pista { align-items: flex-start; }
.h-rev .pc-head { margin-bottom: 14px; }
.h-rev .pc-noted:has(.pc-note--bottom) { padding-bottom: 38px; }

/* Tienda: la bajada es una tarjeta más del carrusel (la primera), distinta a las de producto: clara, inclinada y con sombra dura violeta como las reseñas. Así no ocupa alto debajo del título */
.h-tienda__item-nota { align-items: stretch; padding: 0 8px 6px 4px; }   /* misma altura que las tarjetas de producto */
.h-tienda__gal .pc-galeria__pista { padding-top: 12px; padding-bottom: 14px; }
.h-tienda__nota { position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 22px 22px; width: 100%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(rgba(248, 247, 242, .5), rgba(248, 247, 242, .5)), var(--pc-blanco) url(../img/riso-lila-card.webp) center / cover no-repeat; color: var(--pc-tinta); border-radius: var(--pc-r-md); box-shadow: 6px 6px 0 var(--pc-violeta); font-size: 16px; line-height: 1.5; rotate: -2deg; }
@media (min-width: 960px) { .h-tienda__nota { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .h-tienda__nota { rotate: 0deg; } }
/* Jerarquía del texto de la nota: la idea en serif (el mismo registro que los titulares del hero), «los objetos que diseñamos» en cursiva tinta con la marca verde del sistema, y la bajada en sans más chica */
.h-tienda__nota-t { display: block; font-family: var(--pc-font-serif); font-weight: 400; font-size: 23px; line-height: 1.18; letter-spacing: -0.01em; }
.h-tienda__nota-t em { font-style: italic; color: var(--pc-tinta); }   /* el resaltado es el del sistema (.pc-hl--marca): marca verde en la mitad inferior de la letra, igual que en Recursos */
.h-tienda__nota-d { display: block; margin-top: 14px; font-family: var(--pc-font-sans); font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--pc-tinta) 78%, transparent); }
@media (min-width: 960px) { .h-tienda__nota-t { font-size: 25px; } }


/* Fondo riso lila de la nota. */

/* ---------- Cierre de la Home compacto (Regalos, sello y pie): menos alto sin tocar ningún texto ---------- */
.h-ev { padding-bottom: clamp(36px, 4.4cqi, 56px); }
.h-foot { --pc-section-y: clamp(44px, 5.6cqi, 72px); }
.h-foot .pc-footer__news { margin-bottom: 0; gap: 20px; }
.h-foot .pc-footer { border-top: 0; padding-top: 0; }
.h-foot .pc-footer__brand img { width: 120px; }
/* Celular: la rejilla de 2 columnas ya existe; Empresas y las redes comparten la segunda fila, y el logo y la parte legal se achican */
@container (max-width: 899px) {
  .h-foot .pc-container { display: flex; flex-direction: column; gap: 28px; }
  .h-foot .pc-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding-top: 24px; }
  .h-foot .pc-footer__brand { grid-column: 1 / -1; }
  .h-foot .pc-footer ul.pc-footer__redes { grid-column: 2; align-self: end; flex-direction: column; gap: 0; }
  .h-foot .pc-footer__legal { padding-top: 12px; }
}
/* Escritorio: el newsletter a la izquierda y los tres grupos de links a la derecha; abajo, una fila con el logo, las redes y lo legal */
@container (min-width: 900px) {
  .h-foot .pc-container { display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 32px; align-items: start; }
  .h-foot .pc-footer { display: contents; }
  .h-foot .pc-footer__news { grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left; }
  .h-foot .pc-footer__news-text { align-items: flex-start; max-width: none; }
  .h-foot .pc-footer__news-desc { margin-inline: 0; max-width: 40ch; }
  .h-foot .pc-footer__temas { justify-content: flex-start; }
  .h-foot .pc-footer__news form { max-width: 100%; }
  .h-foot .pc-footer__col { grid-row: 1; }
  .h-foot .pc-footer__col:nth-of-type(1) { grid-column: 2; }
  .h-foot .pc-footer__col:nth-of-type(2) { grid-column: 3; }
  .h-foot .pc-footer__col:nth-of-type(3) { grid-column: 4; }
  .h-foot .pc-container::before { content: ""; grid-column: 1 / -1; grid-row: 2; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
  .h-foot .pc-footer__brand { grid-column: 1; grid-row: 3; align-self: center; }
  .h-foot .pc-footer ul.pc-footer__redes { grid-column: 2 / span 2; grid-row: 3; flex-direction: row; align-self: center; }
  .h-foot .pc-footer__legal { grid-column: 3 / -1; grid-row: 3; border-top: 0; padding-top: 0; justify-content: flex-end; align-self: center; }
  .h-foot .pc-footer__legal ul { flex-direction: row; flex-wrap: wrap; gap: 0 24px; justify-content: flex-end; }
}

/* ---------- Heros: tipografía compacta y todo alineado a la izquierda (revisado con UX: texto corrido a la izquierda, mismo lugar de título, bajada y botón en los tres) ---------- */
.h-hero .h-slide__t { font-size: clamp(34px, 5cqi, 64px); line-height: 1.04; max-width: 15ch; }
.h-hero .h-slide__p { font-family: var(--pc-font-sans); font-weight: 400; font-size: clamp(16px, 1.35cqi, 20px); line-height: 1.5; letter-spacing: 0; max-width: 44ch; margin: 18px 0 0; color: rgba(255, 255, 255, .94); text-align: left; }
.h-hero .h-slide--centro, .h-hero .h-slide--test { align-items: flex-start; text-align: left; justify-content: flex-end; padding-top: 0; }
.h-hero .h-slide--centro .h-slide__p, .h-hero .h-slide--test .h-slide__p { margin-inline: 0; }
.h-hero .h-slide--centro .h-slide__t, .h-hero .h-slide--test .h-slide__t { max-width: 15ch; font-size: clamp(34px, 5cqi, 64px); }
.h-hero .h-slide--test .h-hero__ctas, .h-hero .h-slide--centro .h-hero__ctas { align-self: flex-start; justify-content: flex-start; }
.h-hero .h-ctrl.pc-sc { justify-content: flex-start; }
/* la sombra de las tres fotos carga del lado del texto (izquierda en escritorio, abajo en celular) */
.h-hero .h-hero__foto::after { background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 170px), linear-gradient(90deg, rgba(12, 11, 10, .6) 0, rgba(12, 11, 10, .42) 40%, rgba(12, 11, 10, 0) 75%), rgba(12, 11, 10, .2); }
@media (max-width: 699px) {
  .h-hero .h-slide__t, .h-hero .h-slide--centro .h-slide__t, .h-hero .h-slide--test .h-slide__t { font-size: clamp(32px, 9cqi, 42px); }
  .h-hero .h-hero__foto::after { background: linear-gradient(180deg, rgba(12, 11, 10, .5) 0, rgba(12, 11, 10, 0) 150px), linear-gradient(0deg, rgba(12, 11, 10, .68) 0, rgba(12, 11, 10, .5) 50%, rgba(12, 11, 10, 0) 85%), rgba(12, 11, 10, .2); }
}

/* Para empresas (Home): el botón de talleres cierra la sección, pegado a las fotos */
.h-ev .h-more--bottom{margin-top:0}
.h-ev{padding-bottom:clamp(48px,6cqi,72px)}

/* Heroes: los tres comparten tamaños, arranque del título y posición del botón (el botón queda siempre a la misma altura) */
.h-hero .h-slide, .h-hero .h-slide--centro, .h-hero .h-slide--test { justify-content: flex-start; }
.h-hero .h-slide .h-hero__ctas { margin-top: auto; padding-top: 40px; }   /* separado del texto más que el título de la bajada (18px) */
.h-hero .h-hero__ctas .pc-btn { --orb: var(--pc-violeta); --orb-ink: var(--pc-blanco); }   /* el círculo del botón es violeta en los tres */
/* Fondo: siempre gris oscuro. Antes se asomaba el violeta viejo al cambiar de foto. La foto que entra aparece primero y recién después se va la anterior. */
.h-hero, .h-hero.is-violeta { background: #1E1D1B; --bg: #1E1D1B; }
.h-hero > .pc-texture.is-onda { display: none; }
.h-hero__foto { transition: opacity 320ms var(--pc-ease) 320ms; }
.h-hero.is-prop .h-hero__foto--prop, .h-hero.is-lima .h-hero__foto--lima, .h-hero.is-test .h-hero__foto--test { transition-delay: 0s; }
/* Hero 1: la bajada va en Averia italic; «conectar» lleva una raya a mano y de ahí salen tres flechas, cada una a su frase en Single Day */
.h-hero #hero-1 .h-hero__sub { font-family: "Averia Light", var(--pc-font-serif); font-style: normal; font-weight: 300; font-size: clamp(21px, 5.6cqi, 30px); line-height: 1.22; letter-spacing: 0; max-width: none; margin-top: 16px; color: var(--pc-blanco); }
.h-sub__vis { padding-bottom: 156px; }
.h-sub__a, .h-sub__b { display: block; }
.h-sub__a { text-wrap: balance; }
.h-sub__b { position: relative; }
.h-con { position: relative; display: inline-block; }
.h-con__raya { position: absolute; left: -2px; right: -2px; bottom: -9px; width: calc(100% + 4px); height: 10px; color: var(--pc-blanco); overflow: visible; }
.h-flechas { position: absolute; left: 6px; top: calc(100% + 12px); display: block; width: max-content; font-style: normal; }
.h-flechas__svg { position: absolute; left: 0; top: 0; color: var(--pc-blanco); overflow: visible; }
.h-flechas__ls { display: block; }
.h-flechas__f { transform-origin: 0 50%; display: flex; align-items: center; height: 46px; font-family: "Single Day", var(--pc-font-serif), cursive; font-style: normal; font-size: clamp(24px, 6.8cqi, 32px); line-height: 1.1; color: var(--pc-blanco); white-space: nowrap; }
@media (max-width: 699px) {
  .h-hero { min-height: clamp(560px, 78svh, 700px); padding: 96px 0 32px; }
  .h-hero > .pc-container, .h-hero .h-slider { flex: 1 1 auto; display: flex; flex-direction: column; }
  .h-hero .h-slider__pista { flex: 1 1 auto; }
  .h-hero .h-slide, .h-hero .h-slide--centro, .h-hero .h-slide--test { padding-top: 48px; }   /* texto un poco por debajo del arranque de la pantalla */
  .h-hero .h-ctrl.pc-sc { margin-top: 28px; }   /* flechas y puntos siempre abajo */
  .h-hero .h-slide .h-hero__ctas { align-self: stretch; align-items: center; }   /* botones centrados, los tres del mismo ancho */
  .h-hero .h-slide .h-hero__ctas .pc-btn { width: auto; max-width: none; justify-content: center; padding-left: 24px; }   /* el botón mide lo que mide su texto: el borde izquierdo queda pegado a la letra */
}

/* Las tres frases en Single Day no van en columna prolija: cada una arranca donde termina su flecha (las tres puntas caen en lugares distintos), con leve inclinación hacia arriba y el mismo tamaño */
.h-flechas__f:nth-child(1) { margin-left: 52px; transform: rotate(-3deg); }
.h-flechas__f:nth-child(2) { margin-left: 71px; transform: rotate(-1.8deg); }
.h-flechas__f:nth-child(3) { margin-left: 60px; transform: rotate(-2.4deg); }

/* Heroes 2 y 3: la bajada va en Averia Light cursiva, igual que en el hero 1, y el texto queda al medio entre el borde de arriba y el botón (no pegado arriba) */
.h-hero .h-slide__p { font-family: "Averia Light", var(--pc-font-serif); font-style: italic; font-weight: 300; font-size: clamp(21px, 5.6cqi, 30px); line-height: 1.22; max-width: 22em; }
.h-hero #hero-2 .h-slide__t, .h-hero #hero-3 .h-slide__t { margin-top: auto; }

/* «Hacelo a propósito»: ritmo del párrafo con negrita en las acciones y cursiva serif en la frase de la reacción */
.h-about__body strong { font-weight: 600; color: var(--pc-tinta); }
.h-about__body em { font-style: italic; }   /* misma Inter del párrafo, solo cursiva */

/* Necesidades: el título entra en una sola línea en mobile */
@media (max-width: 699px) { .h-needs__head h2 { font-size: clamp(22px, 7cqi, 30px); white-space: nowrap; } }

/* Hero 3: el sello «Hacé el test» sobresale por arriba del texto; la pista necesita aire arriba para no cortarlo (el margen negativo compensa, el layout no se mueve) */
.js .h-slider__pista { padding-top: 48px; margin-top: -48px; }

/* «Hacelo a propósito»: el título más chico y siempre en una línea, y más cerca del texto (el firulete y el alto del segmento quedan como estaban) */
.h-about__t { white-space: nowrap; font-size: clamp(22px, 6.2cqi, 30px); }
.h-about__t span { display: inline; }
.h-about__grid { gap: 12px; }
@container (min-width: 900px) {
  .h-about__grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; }
  .h-about__t { font-size: clamp(26px, 2.6cqi, 36px); }
}

/* Pie de la Home (escritorio): el newsletter ocupa una columna fija y las tres columnas de links se reparten el resto, con más aire entre el newsletter y los links */
@container (min-width: 900px) {
  .h-foot .pc-container { grid-template-columns: 340px 0 repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .h-foot .pc-footer__col:nth-of-type(1) { grid-column: 3; }
  .h-foot .pc-footer__col:nth-of-type(2) { grid-column: 4; }
  .h-foot .pc-footer__col:nth-of-type(3) { grid-column: 5; }
  .h-foot .pc-footer ul.pc-footer__redes { grid-column: 3 / span 2; }
  .h-foot .pc-footer__legal { grid-column: 4 / -1; }
}
@container (min-width: 1200px) {
  .h-foot .pc-container { grid-template-columns: 400px 0 repeat(3, minmax(0, 1fr)); }
}

/* Interruptor «Piloto automático» bajo «Hacelo a propósito»: un chiche chico; la palanca se mueve con el scroll (main.js). Sin JS o con «reducir movimiento» queda en OFF */
.h-switch { padding-block: 36px 44px; }
@container (min-width: 900px) { .h-switch { padding-block: 48px 56px; } }
.h-switch__in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.h-switch__t { margin: 0; font-family: "Single Day", var(--pc-font-serif), cursive; font-weight: 400; font-size: clamp(22px, 5.6cqi, 28px); line-height: 1.1; letter-spacing: .02em; color: var(--pc-tinta); text-align: center; }
.h-switch__svg { display: block; width: min(250px, 66cqi); height: auto; color: var(--pc-tinta); overflow: visible; }
@container (min-width: 900px) { .h-switch__svg { width: 300px; } }
.h-sw__txt { font-family: "Single Day", var(--pc-font-serif), cursive; font-weight: 400; }
.h-sw__palanca-cuerpo { fill: var(--bg); }
.h-sw__led { transition: fill 180ms ease; }
.h-sw__led--on { fill: var(--pc-verde); }
.h-sw__led--off { fill: none; }
.h-switch__svg.is-off .h-sw__led--on { fill: none; }
.h-switch__svg.is-off .h-sw__led--off { fill: #EF5A4F; }   /* rojo de señal, solo para este indicador */

/* «Hacelo a propósito» más compacto: menos aire arriba y abajo y menos alto mínimo; en celular el firulete se ajusta al alto para no cortarse */
.h-about { padding-block: 32px; min-height: 0; }
@container (max-width: 899px) {
  .h-about .pc-fir { --w: min(160cqw, calc((100cqh - 16px) / 0.45)); width: var(--w); left: calc(50cqw - var(--w) / 2); top: calc(50cqh - var(--w) * 0.195); }
}
@container (min-width: 900px) { .h-about { padding-block: 56px; min-height: 340px; } }

/* Interruptor: menos margen con el bloque de arriba y, sobre todo, con el de abajo */
.h-about:has(+ .h-switch) { padding-bottom: 16px; }
.h-switch { padding-block: 16px 8px; }
.h-switch + .h-needs { padding-top: 24px; }
@container (min-width: 900px) {
  .h-about:has(+ .h-switch) { padding-bottom: 32px; }
  .h-switch { padding-block: 20px 8px; }
  .h-switch + .h-needs { padding-top: 40px; }
}

/* Botones de los heros (escritorio): el borde izquierdo más pegado a la letra */
.h-hero .h-hero__ctas .pc-btn--orb { padding-left: 24px; }

/* Interruptor: «A PARTIR DE ACÁ» va a la izquierda del panel, en dos renglones y con leve inclinación hacia arriba */
.h-switch__in { flex-direction: row; justify-content: center; gap: 14px; }
.h-switch__t { text-align: left; font-size: clamp(22px, 6cqi, 26px); transform: rotate(-4deg); transform-origin: 50% 50%; }
.h-switch__svg { width: min(210px, 56cqi); }
@container (min-width: 900px) {
  .h-switch__in { gap: 22px; }
  .h-switch__t { font-size: 30px; }
  .h-switch__svg { width: 300px; }
}

/* Pie en celular: el logo va abajo, en la fila de cierre, igual que en escritorio (antes quedaba arriba de las columnas) */
@container (max-width: 899px) {
  .h-foot .pc-footer__brand { order: 98; grid-column: 1 / -1; margin-top: 8px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
  .h-foot .pc-footer__legal { order: 99; border-top: 0; padding-top: 0; }
}

/* «Hacelo a propósito» pasa al cierre junto al sello: el texto de un lado y el sello del otro (en celular, el texto y abajo el sello) */
.h-seal { height: auto; min-height: 0; padding-block: 44px; }
.h-seal .pc-container.h-seal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; align-items: center; }
.h-seal__txt { display: grid; gap: 12px; }
.h-seal .h-sello { justify-self: center; }
.h-switch { padding-block: 36px 8px; }
@container (min-width: 900px) {
  .h-seal { padding-block: 72px; min-height: 420px; }
  .h-seal .pc-container.h-seal__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 72px; justify-items: stretch; }
  .h-seal__txt { gap: 16px; }
  .h-seal .h-sello { justify-self: end; margin-right: 48px; }
  .h-switch { padding-block: 48px 8px; }
}

/* ---------- ¿Te pasa algo de esto?: mazo de tarjetas, solo sticker y título ----------
   Sin párrafo ni flecha (la tarjeta entera es el enlace). Casi cuadradas, más angostas, con muy poca inclinación alternada (una pegada a la
   izquierda y la otra a la derecha) y un fondo neutro: el color de cada tono queda apenas insinuado. */
.pc-ncards--mazo .pc-ncard__d, .pc-ncards--mazo .pc-choice__go { display: none; }
.pc-ncards--mazo .pc-ncard { flex-direction: column; align-items: flex-start; justify-content: space-between; aspect-ratio: 4 / 3; min-height: 0; }
/* Trazos de crayón por necesidad (is-crayon del sistema): fondo claro del tono de la tarjeta y trazo de otro color de la paleta, un valor más fuerte que el fondo y con poca opacidad.
   ordenar: verde claro + violeta medio, cuadrícula · aclarar: lila + verde, garabato · atencion: durazno + violeta medio, espiral · expresarme: verde claro + naranja medio, pinceladas. Nunca dos fondos del mismo color seguidos (orden verde, lila, durazno, verde). Dibujos acostados (horizontales) */
[data-tono="ordenar"] { --cr-bg: color-mix(in srgb, var(--pc-papel, #EFEDE8) 55%, var(--pc-blanco, #F8F7F2)); --cr-ink: var(--pc-lila, #E1D8FD); --cr-op: 1; }
[data-tono="aclarar"] { --cr-bg: color-mix(in srgb, var(--pc-papel, #EFEDE8) 55%, var(--pc-blanco, #F8F7F2)); --cr-ink: var(--pc-verde-claro, #F5FCD9); --cr-op: 1; }
[data-tono="atencion"] { --cr-bg: color-mix(in srgb, var(--pc-papel, #EFEDE8) 55%, var(--pc-blanco, #F8F7F2)); --cr-ink: var(--pc-durazno, #FDE8D8); --cr-op: 1; }
[data-tono="expresarme"] { --cr-bg: color-mix(in srgb, var(--pc-papel, #EFEDE8) 55%, var(--pc-blanco, #F8F7F2)); --cr-ink: var(--pc-lila, #E1D8FD); --cr-op: 1; }
.pc-ncards--mazo .pc-ncard { background: var(--cr-bg, var(--pc-papel, #F8F7F2)); }
.pc-ncards--mazo .pc-ncard::before { opacity: var(--cr-op, .5); background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat; }
.pc-ncards--mazo .pc-ncard .pc-texture { display: none; }
.pc-ncards--mazo .pc-ncard::after { opacity: .18; }   /* grano de papel más suave */
.pc-ncards--mazo .pc-ncard[data-tono="ordenar"]::before { background-image: url(../img/texturas/nec-ordenar.webp); }
.pc-ncards--mazo .pc-ncard[data-tono="aclarar"]::before { background-image: url(../img/texturas/nec-aclarar.webp); }
.pc-ncards--mazo .pc-ncard[data-tono="atencion"]::before { background-image: url(../img/texturas/nec-atencion.webp); }
.pc-ncards--mazo .pc-ncard[data-tono="expresarme"]::before { background-image: url(../img/texturas/nec-expresarme.webp); }
.pc-ncards--mazo .pc-ncard__txt { flex: 0 0 auto; width: 100%; }
.pc-ncards--mazo .pc-ncard:nth-child(odd) { rotate: -1deg; }
.pc-ncards--mazo .pc-ncard:nth-child(even) { rotate: 1deg; }
@container (max-width: 899px) {
  /* celular: una columna, tarjetas de todo el ancho en una sola línea (sticker + título + flecha al final), apenas inclinadas y apiladas al bajar */
  .pc-ncards--home.pc-ncards--mazo .pc-ncard { --pc-sticker: 58px; --pc-sticker-l: 58px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; aspect-ratio: auto; height: 94px; width: calc(100% - 8px); margin: 0 auto; padding: 0 14px 0 14px; top: calc(136px + var(--i, 0) * 14px); }
  .pc-ncards--home.pc-ncards--mazo .pc-ncard__txt { flex: 1 1 auto; width: auto; min-width: 0; }
  .pc-ncards--home.pc-ncards--mazo .pc-ncard__t { font-size: 17px; line-height: 1.15; text-wrap: balance; }
  .pc-ncards--home.pc-ncards--mazo .pc-choice__go { display: grid; flex: 0 0 auto; margin-left: auto; width: 32px; height: 32px; }
  .pc-ncards--home.pc-ncards--mazo { gap: 10px; }
  /* La caja del título es tan alta como el mazo apilado (con la altura negativa compensada) y solo se pinta su parte de arriba: así termina de pegarse
     justo cuando el mazo termina, y sube junto con las tarjetas en vez de quedarse encima de ellas. */
  .h-needs__mazo { --tit-h: 54px; --mazo-h: 138px; }
  .h-needs__mazo .pc-ncards--mazo { margin-top: calc(-1 * (var(--mazo-h) + 10px)); }
  .h-needs__mazo .h-needs__head { position: sticky; top: 72px; z-index: 5; margin-inline: -16px; padding: 8px 16px calc(var(--mazo-h) + 10px); pointer-events: none; background: linear-gradient(var(--bg, var(--pc-papel, #F8F7F2)) 0 var(--tit-h), transparent var(--tit-h)); }
}
@container (min-width: 900px) {
  .pc-ncards--home.pc-ncards--mazo .pc-ncard { padding: 22px 20px; aspect-ratio: auto; min-height: 210px; }
  .pc-ncards--home.pc-ncards--mazo .pc-ncard__t { font-size: clamp(17px, 2.1cqi, 24px); max-width: 13ch; text-wrap: balance; }
  /* El escalonado de las pares se hace con translate: un margin-top las achicaba 18px dentro de la grilla y quedaban de otro tamaño */
  .pc-ncards--home.pc-ncards--mazo .pc-ncard:nth-child(even) { translate: 0 18px; }
}

/* el título y el mazo comparten un contenedor: al quedar todas las tarjetas apiladas, el título sube junto con ellas (antes del botón) */
.h-needs__mazo { display: flex; flex-direction: column; gap: 24px; }
@container (min-width: 900px) { .h-needs__mazo { gap: 40px; } }

/* Títulos de sección de la Home más chicos (el tamaño anterior se veía pesado): se cambian las variables de la Home, no cada título */
.h-page { --pc-fs-h1: clamp(1.75rem, 1.2rem + 1.5cqi, 2.5rem); --pc-fs-h2: clamp(1.5rem, 1.25rem + 1cqi, 1.9rem); }

/* Hero 1 (prueba): raya, flechas y frases en Single Day en el verde claro de la paleta (#F5FCD9) */
.h-hero #hero-1 .h-con__raya, .h-hero #hero-1 .h-flechas__svg, .h-hero #hero-1 .h-flechas__f { color: var(--pc-verde-claro); }

/* Menos aire alrededor de los títulos de la Home (los títulos son más chicos, los bloques también): padding de secciones, espacio bajo el título y sticker de la Tienda */
.h-page .pc-block { --pc-section-y: clamp(48px, 6.4cqi, 96px); }
.h-page .pc-block.is-compacto { --pc-section-y: clamp(32px, 4.2cqi, 52px); }
.h-page .pc-head { margin-bottom: clamp(18px, 2.6cqi, 30px); gap: 10px var(--pc-gutter); }
.h-page .pc-head > :first-child { gap: 10px; }
.h-page .pc-block.is-compacto .pc-head { margin-bottom: 16px; }
.h-page .h-rev .pc-head { margin-bottom: 10px; }
.h-page .h-tienda__tit { gap: 10px; }
.h-page .h-tienda__tit .pc-sticker { --pc-sticker: 40px; --pc-sticker-l: 40px; }
.h-page .h-tienda .h-more--bottom { margin-top: 16px; }

/* Hero 2: la bajada en Averia Light normal (sin cursiva) y la frase final subrayada con el trazo a mano de «conectar» en el verde claro */
.h-hero #hero-2 .h-slide__p, .h-hero #hero-3 .h-slide__p { font-style: normal; }
.h-hero #hero-2 .h-slide__p { text-wrap: balance; }   /* renglones parejos: la bajada es corta y quedaba una línea larga y otra con dos palabras */
.h-hero #hero-2 .h-luz { white-space: nowrap; }   /* «lo que te importa» no se parte: el subrayado queda en un solo trazo */
.h-luz { font-style: italic; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none' fill='none' stroke='%23F5FCD9' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M2 6.5 C30 4.5 66 7 98 5'/%3E%3C/svg%3E") no-repeat left bottom / 100% 10px; padding-bottom: .26em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* subrayado a mano, el mismo trazo de «conectar» del hero 1, en el verde claro (cada línea de la frase lleva el suyo) */
/* Verde claro para texto sobre imagen: en Single Day (frases escritas a mano) y para resaltar frases */
.pc-sobre-img { color: var(--pc-verde-claro); }
.pc-sobre-img--single { font-family: "Single Day", var(--pc-font-serif), cursive; font-weight: 400; }

/* Hero del test, desktop: el sello va al lado del título (a la derecha, centrado en sus dos líneas) y no arriba */
@media (min-width: 900px) { .h-test__burst { left: 1.6em; bottom: -0.9em; } }

/* Reseñas de la Home: un tono más claro de fondo y de sombra */
.h-rev .pc-galeria--resenas .pc-review { --rv-bg: color-mix(in srgb, var(--pc-lila, #E1D8FD) 60%, var(--pc-blanco, #F8F7F2)); box-shadow: 6px 6px 0 color-mix(in srgb, var(--pc-violeta-medio, #B59EFA) 55%, var(--pc-lila, #E1D8FD)); }

/* Nota destacada del Blog más compacta: imagen más baja en celular, más angosta en escritorio, título un paso más chico */
.h-dest__img { aspect-ratio: 16 / 9; }
.h-dest__img img { transform: none; object-fit: contain; object-position: 50% 100%; }
.h-dest__txt .pc-h2 { font-size: clamp(19px, 1.9cqi, 23px); }
@container (min-width: 900px) {
  .h-dest__img { flex-basis: clamp(160px, 15cqi, 200px); aspect-ratio: 1 / 1; }
  .h-dest__img img { transform: scale(1.12); object-fit: cover; object-position: 50% 0; }
  .h-dest__txt { padding: 12px 24px; }
}

/* Programa «Recuperar la atención»: la foto (versión extendida, vertical en celular y apaisada en escritorio) es el fondo de toda la tarjeta; el texto blanco va sobre un degradé tinta → violeta */
.h-prog .pc-feature.pc-block { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 24px 22px 44px; background: var(--pc-tinta); }
.h-prog .pc-feature > .pc-texture { display: none; }
.h-prog .pc-feature.pc-block > .pc-feature__side { position: absolute; inset: 0; z-index: 0; margin: 0; padding: 0; width: auto; grid-column: auto; grid-row: auto; }
.h-prog .pc-feature.pc-block > .pc-feature__head { position: relative; z-index: 2; }
.h-prog .pc-feature__side .pc-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; }
.h-prog .pc-feature__side .pc-media img { object-fit: cover; inset: auto 0 0 0; height: 118%; object-position: 50% 100%; }
.h-prog .pc-feature__side .pc-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--pc-tinta) 45%, transparent) 0%, color-mix(in srgb, var(--pc-tinta) 25%, transparent) 40%, transparent 60%); }
@container (min-width: 900px) {
  .h-prog .pc-feature.pc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 480px; padding: 56px; }
  .h-prog .pc-feature__head { grid-column: 1 / span 6; align-self: center; }
  .h-prog .pc-feature__side .pc-media img { inset: 0; height: 100%; object-position: 100% 50%; }
  .h-prog .pc-feature__side .pc-media::after { background: linear-gradient(to right, var(--pc-tinta) 0%, color-mix(in srgb, var(--pc-tinta) 80%, transparent) 30%, color-mix(in srgb, var(--pc-violeta) 40%, transparent) 48%, transparent 66%); }
}

/* Etiqueta «Nuevo programa» arriba de la tarjeta del programa */
.h-prog .h-prog__nota { position: static; display: inline-flex; margin: 0 0 14px 6px; }
