/* ============================================================
   SISTEMA · TOALLI MAGI (web 15/11/2026)
   Tokens, base, tipografía, rejilla, barra, menú móvil, botones, pie,
   foco, transiciones entre páginas, cursor de gota, salpicadura y regla de lectura.
   Lenguaje visual: la memoria de marca (bandas en degradado, tarjetas celestes, paneles marinos, pastillas amarillas). Tamaños mínimos exigidos por la
   persona (barra 96, logotipo 84, enlaces 18, botones 56-64, cuerpo 21): no se encogen.
   ============================================================ */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../assets/fonts/archivo-latin-v1.woff2) format('woff2'); }
@font-face { font-family: 'TM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/tmmono-400-latin-v1.woff2) format('woff2'); }
@font-face { font-family: 'TM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../assets/fonts/tmmono-500-latin-v1.woff2) format('woff2'); }
:root {
  /* --- Color de marca (memoria de marca, p. 20) --- */
  --tinta: #081848;          /* azul marino: texto y contornos */
  --tinta-2: #34437a;        /* texto secundario (contraste 9:1 sobre papel) */
  --tinta-3: #5a6798;        /* solo rótulos grandes o decorativos */
  --azul: #0A5CD0;
  --azul-vivo: #0B6FE8;
  --cielo: #08A8F8;
  --celeste: #EAF6FF;
  --crema: #FFF6D6;
  --amarillo: #FFC23D;       /* SOLO botones de compra */
  --amarillo-2: #FFD36E;
  --fucsia: #F8377C;         /* SOLO el botón «¿Entran mis toallitas?» */
  --fucsia-2: #FF5E98;
  --papel: #FFFFFF;          /* fondo general: blanco (memoria de marca) */
  --papel-2: #F4F9FE;
  --blanco: #fff;
  --linea: rgba(8, 24, 72, .16);
  --linea-fuerte: rgba(8, 24, 72, .42);
  --ok: #0C7A3E; --justo: #8A5A00; --no: #B3123F;
  --ok-bg: #E3F5EA; --justo-bg: #FFF1CC; --no-bg: #FDE6EC;
  --pieza-filtro: none;      /* lo pone colores.js */
  --color-pieza: #EFEFEC;

  /* --- Tipografía --- */
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'TM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --t-micro: .9375rem;                                   /* 15 px: mínimo absoluto */
  --t-xs: clamp(.9375rem, .9rem + .1vw, 1rem);           /* rótulos */
  --t-base: 1.3125rem;                                   /* 21 px: cuerpo */
  --t-lead: clamp(1.4rem, 1.15rem + .8vw, 1.9rem);
  --t-h3: clamp(1.6rem, 1.25rem + 1.1vw, 2.25rem);
  --t-h2: clamp(2.5rem, 1.6rem + 3.3vw, 5.25rem);
  --t-h1: clamp(3.1rem, 1.6rem + 6vw, 8.5rem);
  --t-num: clamp(4rem, 2rem + 9vw, 13rem);

  /* --- Espaciado (base 4) --- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --seccion: clamp(64px, 3.4vw + 40px, 120px);

  /* --- Rejilla --- */
  --max: 1440px;
  --margen: clamp(20px, 4vw, 64px);
  --gutter: clamp(16px, 2.4vw, 40px);
  --barra: 96px;

  /* --- Radios contenidos, sombras suaves --- */
  --r1: 6px; --r2: 14px; --r3: 20px; --r-pill: 999px;
  --sombra-1: 0 1px 2px rgba(8, 24, 72, .06), 0 2px 8px rgba(8, 24, 72, .05);
  --sombra-2: 0 2px 4px rgba(8, 24, 72, .05), 0 12px 32px rgba(8, 24, 72, .10);
  --sombra-3: 0 2px 6px rgba(8, 24, 72, .05), 0 18px 44px rgba(8, 24, 72, .11);

  /* --- Movimiento --- */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-muelle: cubic-bezier(.2, .7, .2, 1);   /* sin rebote: antes era un muelle */
  --d-1: 140ms; --d-2: 280ms; --d-3: 560ms; --d-4: 900ms;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--barra) + 16px); scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--t-base)/1.55 var(--sans); color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--tinta); }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--amarillo); color: var(--tinta); }
/* ---------- Tipografía ---------- */
.h1, .h2, .h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; line-height: .96; text-wrap: balance; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.08; font-weight: 700; }
.lead { font-size: var(--t-lead); line-height: 1.4; color: var(--tinta-2); max-width: 36ch; text-wrap: pretty; }
.cuerpo { max-width: 62ch; text-wrap: pretty; }
.rotulo { font: 500 var(--t-xs)/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--tinta-2); }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.num-grande { font: 800 var(--t-num)/.82 var(--sans); letter-spacing: -.06em; font-feature-settings: 'tnum'; }
.pequeno { font-size: var(--t-xs); color: var(--tinta-2); line-height: 1.45; }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---------- Rejilla ---------- */
.contenedor { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margen); }
.rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.seccion { padding-block: var(--seccion); position: relative; }
.seccion--celeste { background: var(--celeste); }
.seccion--tinta { background: var(--tinta); color: #fff; }
.seccion--tinta .rotulo, .seccion--tinta .lead, .seccion--tinta .pequeno { color: rgba(255, 255, 255, .78); }
/* Cabecera de sección: número en mono + regla con ticks (la cota) */
.seccion--tinta .cota { color: rgba(255,255,255,.8); }
.seccion--tinta .cota::after { --linea-fuerte: rgba(255,255,255,.5); }
/* ---------- Foco visible ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .85); }
.seccion--tinta :focus-visible, .barra--oscura :focus-visible { outline-color: var(--amarillo); box-shadow: 0 0 0 6px rgba(8, 24, 72, .6); }
.saltar { position: fixed; left: var(--s4); top: -100px; z-index: 200; background: var(--tinta); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r2); font-weight: 600; transition: top var(--d-2) var(--ease-out); }
.saltar:focus { top: var(--s4); }
/* ---------- Barra (96 px, logotipo 84 px, enlaces 18 px) ---------- */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--barra); background: #fff; border-bottom: 1px solid var(--linea); transition: background var(--d-2), border-color var(--d-2), transform var(--d-3) var(--ease-out); }
.barra__in { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.barra__logo { display: block; flex: none; line-height: 0; border-radius: var(--r2); }
.barra__logo img { height: 84px; width: auto; }
.barra__nav { margin-left: auto; display: flex; align-items: center; gap: clamp(4px, 1vw, 20px); }
.barra__enlace { position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 var(--s3); font: 600 18px/1 var(--sans); letter-spacing: -.005em; color: var(--tinta); text-decoration: none; }
.barra__enlace::after { content: ''; position: absolute; left: var(--s3); right: var(--s3); bottom: 12px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--d-2) var(--ease-out); }
.barra__enlace:hover::after, .barra__enlace[aria-current="page"]::after { transform: scaleX(1); }
.barra__enlace[aria-current="page"] { color: var(--azul); }
.barra__cta { margin-left: var(--s2); }
.barra__menu { display: none; }
body.tiene-barra { padding-top: var(--barra); }
body.tiene-barra.hero-completo { padding-top: 0; }
/* Menú móvil */
@media (max-width: 1100px) {
.barra__nav .barra__enlace { display: none; }
.barra__nav .barra__cta { display: none; }
.barra__menu { display: inline-flex; margin-left: auto; align-items: center; gap: var(--s3); min-height: 56px; padding: 0 var(--s5); border: 1.5px solid var(--tinta); background: transparent; border-radius: var(--r-pill); font: 700 18px/1 var(--sans); color: var(--tinta); }
.barra__menu i { width: 20px; height: 12px; position: relative; display: block; }
.barra__menu i::before, .barra__menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--d-2) var(--ease-out), top var(--d-2) var(--ease-out); }
.barra__menu i::before { top: 1px; }
.barra__menu i::after { top: 9px; }
.barra__menu[aria-expanded="true"] i::before { top: 5px; transform: rotate(45deg); }
.barra__menu[aria-expanded="true"] i::after { top: 5px; transform: rotate(-45deg); }
}
.panel-menu { position: fixed; inset: var(--barra) 0 0 0; z-index: 99; background: var(--tinta); color: #fff; padding: var(--s7) var(--margen) var(--s8); display: flex; flex-direction: column; gap: var(--s5); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-out), visibility 0s linear var(--d-3); }
.panel-menu[data-abierto="true"] { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.panel-menu a.panel-menu__enlace { font: 800 clamp(2.2rem, 9vw, 3.4rem)/1.05 var(--sans); letter-spacing: -.03em; color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid rgba(255,255,255,.18); min-height: 64px; }
.panel-menu a.panel-menu__enlace span { font: 500 var(--t-xs)/1 var(--mono); color: var(--amarillo); letter-spacing: .12em; }
.panel-menu a.panel-menu__enlace[aria-current="page"] { color: var(--amarillo); }
.panel-menu .boton { margin-top: var(--s4); align-self: flex-start; }
@media (min-width: 1101px) {
.panel-menu { display: none; }
}
body.menu-abierto { overflow: hidden; }
/* ---------- Botones (56 a 64 px; amarillo solo para comprar) ---------- */
.boton { --h: 60px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: var(--h); padding: 0 var(--s6); border: 2px solid var(--tinta); border-radius: var(--r2); background: transparent; color: var(--tinta); font: 700 19px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out), background var(--d-2), color var(--d-2); -webkit-tap-highlight-color: transparent; }
.boton:hover { transform: translateY(-1px); box-shadow: var(--sombra-1); color: var(--tinta); }
.boton:active { transform: none; box-shadow: none; }
.boton--compra { background: var(--amarillo); border-color: var(--tinta); color: var(--tinta); box-shadow: none; }
.boton--compra:hover { background: var(--amarillo-2); box-shadow: var(--sombra-1); transform: translateY(-1px); }
.boton--compra:active { box-shadow: none; transform: none; }
.boton--entran { background: var(--boton-entran, #F8377C); border-color: var(--boton-entran, #F8377C); color: #fff; }
.boton--entran:hover { background: #E02269; color: #fff; }
.boton--oscuro { background: var(--tinta); color: #fff; }
.boton--oscuro:hover { color: #fff; background: var(--azul); border-color: var(--azul); }
.boton--claro { border-color: #fff; color: #fff; }
.boton--claro:hover { color: var(--tinta); background: #fff; }
.boton--grande { --h: 64px; padding: 0 var(--s7); font-size: 20px; }
.boton--chico { --h: 56px; padding: 0 var(--s5); }
.boton svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton .flecha { transition: transform var(--d-2) var(--ease-out); }
.boton:hover .flecha { transform: translateX(4px); }
.enlace-flecha { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 700; color: var(--tinta); text-decoration-color: var(--linea-fuerte); }
.enlace-flecha:hover { text-decoration-color: currentColor; color: var(--azul); }
/* ---------- Revelado al desplazarse ---------- */
.js [data-revela] { opacity: 0; transform: translateY(24px); transition: opacity var(--d-3) var(--ease-out), transform var(--d-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-revela].visto { opacity: 1; transform: none; }
/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #fff; padding: var(--s9) 0 var(--s7); position: relative; }
.pie a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.pie a:hover { color: var(--amarillo); }
.pie__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s8) var(--gutter); }
.pie__logo { display: block; width: min(320px, 80%); line-height: 0; }
.pie__lema { margin-top: var(--s5); font: 700 var(--t-lead)/1.15 var(--sans); letter-spacing: -.02em; max-width: 18ch; }
.pie__titulo { font: 500 var(--t-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--amarillo); margin-bottom: var(--s5); }
.pie ul { list-style: none; padding: 0; display: grid; gap: var(--s1); }
.pie li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; }
.pie__legal { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); font-size: var(--t-xs); color: rgba(255,255,255,.78); line-height: 1.5; }
@media (max-width: 820px) {
.pie__grid { grid-template-columns: 1fr; }
}
/* ---------- Regla de lectura (progreso de página como regla en milímetros) ---------- */
/* ---------- Cursor de gota (solo ratón) y salpicadura al clic ----------
   Gotas de assets/cursor/ (32 px y @2x), punta arriba a la izquierda = punto activo (2 2). Sobre lo pulsable, la gota con aro.
   No se toca lo que ya tiene su propio cursor (visor 360 y toallita con data-cursor: grab), el texto ni lo desactivado. */
@media (hover: hover) and (pointer: fine) {
html { cursor: image-set(url("../assets/cursor/gota.png") 1x, url("../assets/cursor/gota@2x.png") 2x) 2 2, auto; }
html a[href], html button:not(:disabled):not([data-cursor]), html summary, html label[for], html select, html [role="button"]:not([data-cursor]), html [role="radio"], html [role="tab"], html .casilla,
html input[type="range"], html input[type="checkbox"], html input[type="radio"], html input[type="submit"], html input[type="button"], html .enlace-boton, html .spot__play, html .boton {
  cursor: image-set(url("../assets/cursor/gota-pulsar.png") 1x, url("../assets/cursor/gota-pulsar@2x.png") 2x) 2 2, pointer; }
html input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html textarea { cursor: text; }
html button:disabled, html input:disabled, html [aria-disabled="true"] { cursor: default; }
}
.salpicadura { position: fixed; left: -24px; top: -24px; width: 48px; height: 48px; z-index: 500; pointer-events: none; contain: layout style; will-change: transform; }
.salpicadura i { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%; opacity: 0; }
.salpicadura__aro { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(8, 168, 248, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); animation: salp-aro 520ms cubic-bezier(.2, .7, .3, 1) both; }
.salpicadura__gota { width: 6px; height: 4px; margin: -2px 0 0 -3px; border-radius: 55% 45% 45% 55% / 50%; border: 1px solid rgba(255, 255, 255, .7); box-sizing: content-box; animation: salp-gota 520ms cubic-bezier(.2, .7, .3, 1) both; }   /* alargada en el sentido en que sale */
.salpicadura__gota--a { background: rgba(8, 168, 248, .85); }
.salpicadura__gota--b { background: rgba(11, 111, 232, .85); }
@keyframes salp-aro { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1); } }
.salpicadura__aro::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(11, 111, 232, .5); opacity: 0; animation: salp-aro 440ms 80ms cubic-bezier(.2, .7, .3, 1) both; }   /* segunda onda, más pequeña y algo después */
@keyframes salp-gota { 0% { opacity: 1; transform: rotate(var(--a)) translateX(4px) scale(var(--s, 1)); } 60% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(calc(var(--s, 1) * .45)); } }
/* ---------- Transiciones entre páginas ---------- */
@keyframes pagina-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js body.entrando main, .js body.entrando .pie { animation: pagina-entra var(--d-3) var(--ease-out) both; }
.telon { position: fixed; inset: 0; z-index: 400; background: var(--papel); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-io); }
.telon.activo { opacity: 1; pointer-events: auto; }
/* ---------- Movimiento reducido: sin animaciones ni desplazamiento suave ---------- */
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
.js [data-revela] { opacity: 1; transform: none; }
.regla__marca { display: none; }
.salpicadura { display: none; }
.telon { display: none; }
}
