/* Hallmark · shape: kept · genre: playful · theme: brand · redesign: restyle
 * paper: oklch(99% 0.015 95) · accent: oklch(83% 0.18 115) · display: Anton · body: Plus Jakarta Sans · hero: stage, the shoe inside the word · nav: edge-aligned · footer: mast · signature: la zapatilla flotando dentro de una palabra gigante, tres pares para tres macacos
 * axes: cream/condensed/lime · posture: stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, the hero carries waves, footprints, a seal and notes; cut the season line, the serif italic and every tracked label to pay for them */
/* Hallmark · dismissed F7 · .segmento, .seg, .wa-flota and .f-col are all controls (a segmented switch, a floating WhatsApp button, colour choosers), so the pill radius is right */
/* Hallmark · dismissed F4 · Verde and Berenjena in the ficha are colour choosers with aria-pressed, not two primary actions; the only primary is the WhatsApp order button */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- base de página ---------- */
html { scroll-behavior: smooth; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
.defs { position: absolute; width: 0; height: 0; }
.ico { width: 18px; height: 18px; flex: none; }
.gira { transform: rotate(180deg); }
h1, h2 { font-weight: var(--display-weight); line-height: 0.95; }
h2 { font-size: var(--text-section); max-width: 16ch; }
.lead { margin-top: var(--space-lg); color: inherit; opacity: 0.85; }
.container { position: relative; }
section { padding-block: var(--section-gap); }
.oscuro, .pie { background: var(--color-night); color: var(--color-cream); --color-focus: var(--color-lime); }
.menta { background: var(--color-mint); }
.bosque { background: var(--color-forest); color: var(--color-cream); --color-focus: var(--color-lime); }

/* ---------- píldoras: un solo estilo primario ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill); border: 2px solid transparent; font-size: var(--text-sm); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short), color var(--dur-short), border-color var(--dur-short); }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(1px) scale(0.98); }
.pill-acc { background: var(--acc, var(--color-accent)); color: var(--color-accent-ink); }
.pill-linea { border-color: currentColor; color: inherit; }
.pill-linea:hover { background: var(--color-veil-light); }
.pill-oscuro { background: var(--color-night); color: var(--color-cream); }
.pill-oscuro:hover { background: var(--color-forest); }
.pill-oscuro .ico { color: var(--color-lime); }
.ancho { width: 100%; margin-top: var(--space-md); }
.acciones { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
button { cursor: pointer; background: none; border: 0; color: inherit; }
button:disabled, [aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

/* ================= HERO ================= */
.hero { --bg: var(--color-night); --ink: var(--color-cream); --acc: var(--color-lime); --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px;
  position: relative; height: 100svh; min-height: 680px; overflow: clip; isolation: isolate;
  background-color: var(--bg); color: var(--ink); --color-focus: var(--acc);
  transition: background-color 1.1s var(--ease-in-out), color 0.8s var(--ease-in-out); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 50% at 60% 46%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%); }

.ondas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transform: translate(calc(var(--px) * -0.4), calc(var(--py) * -0.4)); }
.onda { fill: none; stroke-linecap: round; transition: stroke 1s; }
.o1 { stroke: var(--acc); stroke-width: 44; opacity: 0.9; animation: ondea 14s ease-in-out infinite alternate; }
.o2 { stroke: color-mix(in srgb, var(--color-mint) 70%, var(--bg)); stroke-width: 20; opacity: 0.5; animation: ondea 18s ease-in-out infinite alternate-reverse; }
.o3 { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 2; stroke-dasharray: 2 14; }
@keyframes ondea { to { transform: translate(-40px, 16px) scaleY(1.06); } }

.huellas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.huellas svg { position: absolute; width: 20px; height: 42px; fill: var(--acc); opacity: 0; transform: var(--t); animation: pisa 6s infinite; }
@keyframes pisa { 0%, 4% { opacity: 0; } 12%, 55% { opacity: 0.5; } 75%, 100% { opacity: 0; } }

.palabra { position: absolute; inset-inline: 0; top: 41%; z-index: 3; text-align: center; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(7rem, 21vw, 24rem); line-height: 0.8;
  transform: translate(calc(var(--px) * 0.6), calc(-50% + var(--py) * 0.6)); }
.palabra span { display: inline-block; }
.palabra-atras span { color: transparent; -webkit-text-stroke: 2px var(--acc); }
.palabra-delante { z-index: 6; clip-path: inset(70% 0 0 0); }
.palabra-delante span { color: var(--acc); }

.escena { position: absolute; z-index: 5; left: 58%; top: 40%; width: min(42vw, 740px); aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%) perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.flota { position: absolute; inset: 0; animation: flota 4.5s ease-in-out infinite; }
.flota img { width: 100%; height: 100%; object-fit: contain; transform: rotate(var(--giro, -16deg));
  filter: drop-shadow(0 36px 34px var(--color-black-shadow)) drop-shadow(0 6px 8px var(--color-shadow-soft)); }
@keyframes flota { 50% { transform: translateY(-14px) rotate(1.2deg); } }
.sombra { position: absolute; left: 16%; right: 12%; bottom: -8%; height: 14%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--color-black-shadow), transparent); animation: sombra 4.5s ease-in-out infinite; }
@keyframes sombra { 50% { transform: scale(0.86); opacity: 0.7; } }

.nota { position: absolute; z-index: 7; margin: 0; font-family: var(--font-outlier); font-weight: 700; font-size: clamp(1.25rem, 1.6vw, 1.75rem); line-height: 1; color: var(--ink); pointer-events: none; }
.nota svg { width: 88px; height: 52px; overflow: visible; }
.nota path { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nota span { display: block; max-width: 13ch; }
.js .nota path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.js .nota span { opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
.js .nota.ver path { transition: stroke-dashoffset 0.9s var(--ease-in-out); stroke-dashoffset: 0; }
.js .nota.ver span { opacity: 1; transform: none; }
.n1 { left: -2%; top: -12%; } .n1 svg { margin-left: var(--space-xl); }
.n2 { right: -4%; top: -16%; text-align: right; } .n2 svg { margin-left: calc(var(--space-lg) * -1); }
.n3 { right: 4%; bottom: -22%; display: flex; flex-direction: column-reverse; align-items: flex-end; text-align: right; }

/* capa de interfaz, contenida y centrada */
.hero-ui { position: absolute; inset: 0; z-index: 20; max-width: var(--container); margin-inline: auto; padding: var(--space-lg) var(--gutter) var(--space-xl); pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.marca-logo { display: block; width: 184px; }
.nav-links { display: flex; gap: var(--space-xl); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.8; transition: opacity var(--dur-short); }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.solo-movil { display: none; }

.bloque { position: absolute; left: var(--gutter); bottom: var(--space-2xl); max-width: min(34rem, 38vw); }
.indice { display: flex; align-items: baseline; gap: var(--space-sm); font-size: var(--text-sm); }
.indice #num, .talla-num, .lectura output { font-variant-numeric: tabular-nums; }
.indice #num { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 3.5rem; line-height: 0.8; color: var(--acc); }
.marca { margin-top: var(--space-md); font-size: var(--text-sm); font-weight: 500; opacity: 0.75; }
.modelo { font-size: clamp(2.5rem, 3.6vw, 4rem); max-width: none; white-space: nowrap; margin-top: var(--space-2xs); }
.copy { margin-top: var(--space-md); font-size: var(--text-md); line-height: 1.55; opacity: 0.85; max-width: 26rem; }
.bloque .acciones { margin-top: var(--space-lg); }

.colores { position: absolute; right: var(--gutter); bottom: var(--space-2xl); display: flex; gap: var(--space-sm); }
.colores button { width: 88px; height: 64px; border-radius: var(--radius-inner); background: color-mix(in srgb, var(--ink) 9%, transparent);
  border: 2px solid transparent; display: grid; place-items: center; transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short); }
.colores button img { width: 84%; transform: rotate(-12deg); }
.colores button:hover { transform: translateY(-4px); }
.colores button:active { transform: scale(0.96); }
.colores button[aria-pressed="true"] { border-color: var(--acc); }
.colores small { display: block; text-align: center; font-size: var(--text-xs); margin-top: var(--space-xs); opacity: 0.75; }

.rail { position: absolute; left: 50%; bottom: var(--space-lg); transform: translateX(-50%); display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.rail button { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-size: var(--text-sm); font-weight: 500; opacity: 0.55; transition: opacity var(--dur-short); }
.rail button i { display: block; width: 48px; height: 2px; background: currentColor; transform: scaleX(0.4); transform-origin: left; transition: transform 0.5s var(--ease-out), background-color 0.5s; }
.rail button:hover { opacity: 0.85; }
.rail button[aria-current="true"] { opacity: 1; }
.rail button[aria-current="true"] i { transform: scaleX(1); background: var(--acc); }

.sello { position: absolute; right: var(--gutter); top: 18%; width: 120px; height: 120px; }
.sello svg:first-child { width: 100%; height: 100%; animation: gira 24s linear infinite; }
.sello text { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; fill: var(--ink); }
.sello-pie { position: absolute; left: 50%; top: 50%; width: 26px; height: 52px; transform: translate(-50%, -50%) rotate(12deg); fill: var(--acc); }
@keyframes gira { to { transform: rotate(360deg); } }

.flechas { position: absolute; right: var(--gutter); top: 50%; display: flex; flex-direction: column; gap: var(--space-xs); transform: translateY(-50%); }
.flechas button { width: 48px; height: 48px; border-radius: var(--radius-pill); display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent);
  transition: background-color var(--dur-short), color var(--dur-short), border-color var(--dur-short), transform var(--dur-short); }
.flechas button:hover { background: var(--acc); color: var(--color-accent-ink); border-color: var(--acc); }
.flechas button:active { transform: scale(0.94); }

/* ================= SECCIONES ================= */
.especial-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.especial-foto { position: relative; margin: 0; padding: var(--space-3xl) var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.especial-foto img { width: 100%; transform: rotate(-8deg); filter: drop-shadow(0 28px 24px var(--color-shadow-soft)); }
.nota-fija { position: absolute; font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-2xl); line-height: 1; color: var(--color-forest); }
.f1 { left: var(--space-xl); top: var(--space-lg); transform: rotate(-4deg); }
.f2 { right: var(--space-xl); top: 38%; transform: rotate(3deg); max-width: 9ch; text-align: right; }
.f3 { left: 30%; bottom: var(--space-lg); transform: rotate(-2deg); }

.chips, .usos { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chips { margin-top: var(--space-xl); }
.usos { margin-top: var(--space-md); }
.chip { min-height: 48px; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); border: 2px solid var(--color-veil-line); font-size: var(--text-md); font-weight: 700;
  transition: background-color var(--dur-short), border-color var(--dur-short), color var(--dur-short), transform var(--dur-short); }
.chip:hover { border-color: var(--color-lime); }
.chip:active, .chip-s:active, .seg:active { transform: scale(0.97); }
.chip.on { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-night); }
.chip-s { min-height: 40px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-veil-light); font-size: var(--text-sm);
  transition: background-color var(--dur-short), color var(--dur-short), transform var(--dur-short); }
.chip-s:hover { background: var(--color-veil-line); }
.chip-s.on { background: var(--color-cream); color: var(--color-night); }
.cuenta { margin-top: var(--space-xl); font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-2xl); color: var(--color-lime); }
.rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin-block: var(--space-lg) var(--space-2xl); }
.prod { display: block; text-decoration: none; animation: entra 0.5s var(--ease-out) both; }
.prod .ph { aspect-ratio: 1; border-radius: var(--radius-card); background: var(--color-cream); overflow: hidden; transition: transform 0.35s var(--ease-out); }
.prod img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod:hover .ph { transform: translateY(-6px) rotate(-1deg); }
.prod .v { font-size: var(--text-xs); opacity: 0.65; margin-top: var(--space-sm); }
.prod .nm { font-size: var(--text-md); font-weight: 700; line-height: 1.25; margin-top: var(--space-2xs); }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } }

.talla-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.pasos { margin: var(--space-xl) 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: var(--space-md); font-size: var(--text-lg); max-width: 30rem; }
.pasos li { counter-increment: p; display: flex; gap: var(--space-md); align-items: baseline; }
.pasos li::before { content: counter(p); font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-forest); min-width: 1ch; }
.medidor { background: var(--color-cream); border-radius: var(--radius-card); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.segmento { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); }
.seg { min-height: 40px; padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700; transition: background-color var(--dur-short), color var(--dur-short), transform var(--dur-short); }
.seg.on { background: var(--color-night); color: var(--color-cream); }
.etiqueta { display: block; margin-top: var(--space-xl); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.resultado .etiqueta { margin-top: 0; color: inherit; opacity: 0.75; }
.lectura { display: flex; align-items: baseline; gap: var(--space-xs); margin-top: var(--space-xs); }
.lectura output { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; }
.lectura span { font-family: var(--font-outlier); font-size: var(--text-2xl); font-weight: 700; }
.regla { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin-top: var(--space-md); cursor: ew-resize; background:
  repeating-linear-gradient(90deg, var(--color-night) 0 2px, transparent 2px 4.76%) bottom / 100% 12px no-repeat,
  linear-gradient(var(--color-lime), var(--color-lime)) bottom / 100% 4px no-repeat; }
.regla::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 44px; border-radius: var(--radius-inner); background: var(--color-night); border: 3px solid var(--color-lime); }
.regla::-moz-range-thumb { width: 24px; height: 40px; border-radius: var(--radius-inner); background: var(--color-night); border: 3px solid var(--color-lime); }
.resultado { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-inner); background: var(--color-night); color: var(--color-cream); }
.talla-num { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--color-lime); margin-top: var(--space-2xs); }
.nota-res { font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; max-width: 13rem; }
.aviso { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.resenas-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); }
.resenas-cab .lead { margin: 0; }
.resenas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-2xl); }
.resenas-grid blockquote { margin: 0; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); font-size: var(--text-xl); line-height: 1.35; font-weight: 500; }
.resenas-grid blockquote:nth-child(even) { transform: translateY(var(--space-2xl)); }
.resenas-grid blockquote:nth-child(3) { background: var(--color-mint); }
.fuente { margin-top: var(--space-3xl); font-size: var(--text-sm); color: var(--color-muted); }

.tienda-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.hueco { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-card); display: grid; place-items: center; padding: var(--space-xl);
  border: 2px dashed color-mix(in srgb, var(--color-cream) 40%, transparent); background: color-mix(in srgb, var(--color-night) 25%, transparent); }
.hueco-txt { font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-2xl); color: var(--color-lime); text-align: center; transform: rotate(-4deg); }

.pie { padding-block: var(--space-3xl) var(--space-xl); }
.pie-palabra { font-family: var(--font-display); font-size: clamp(5rem, 19vw, 17rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--color-lime); user-select: none; }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-xl); }
.pie-logo { width: 160px; }
.credito { margin-top: var(--space-xl); font-size: var(--text-xs); opacity: 0.6; }

.wa-flota { position: fixed; z-index: var(--z-sticky); right: var(--space-md); bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill); background: var(--color-night); color: var(--color-cream); border: 2px solid var(--color-lime); font-size: var(--text-sm); font-weight: 700; text-decoration: none;
  box-shadow: 0 16px 40px -12px var(--color-shadow); transition: transform var(--dur-short) var(--ease-out); }
.wa-flota .ico { color: var(--color-lime); }
.wa-flota:hover { transform: translateY(-3px); }
.wa-flota:active { transform: scale(0.97); }
.wa-flota:focus-visible { outline-color: var(--color-lime); }

/* ================= MÓVIL ================= */
@media (max-width: 60rem) {
  .nav-links, .sello, .flechas, .nota, .o1, .o2 { display: none; }
  .especial-grid, .talla-grid, .tienda-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
}
@media (max-width: 40rem) {
  .hero { min-height: 740px; }
  .marca-logo { width: 148px; }
  .solo-ancho { display: none; } .solo-movil { display: inline; }
  .palabra { top: 35%; font-size: 30vw; }
  .palabra-delante { clip-path: inset(78% 0 0 0); }
  .escena { left: 52%; top: 23%; width: 66vw; }
  .bloque { left: var(--gutter); right: var(--gutter); bottom: 128px; max-width: none; }
  .indice #num { font-size: 2.75rem; }
  .modelo { font-size: 2.75rem; }
  .bloque .pill { padding-inline: var(--space-md); }
  .colores { left: var(--gutter); right: auto; bottom: var(--space-lg); }
  .colores button { width: 72px; height: 52px; }
  .rail { display: none; }
  .wa-flota span { display: none; }
  .resenas-grid { grid-template-columns: minmax(0, 1fr); }
  .resenas-grid blockquote:nth-child(even) { transform: none; }
  .especial-foto { padding: var(--space-2xl) var(--space-md); }
  .f2 { top: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  .flota, .sombra, .ondas .onda, .huellas svg, .sello svg { animation: none; }
  .huellas svg { opacity: 0.4; }
  .js .nota path { stroke-dashoffset: 0; } .js .nota span { opacity: 1; transform: none; }
}
