/* Street Lab — sistema de diseño (Brand Reference V1.0).
   Base tinta/hueso + señal roja y naranja de laboratorio. Esquinas rectas.
   Movimiento según los principios de Emil Kowalski: solo transform/opacity,
   ease-out rápido, pulsación a scale(.97), hover solo con puntero fino.
   Display: Anton · Texto: Archivo · Etiquetas: IBM Plex Mono. */

/* Símbolo Ø de marca (manual §18): U+00D8 en Archivo Black. unicode-range hace que
   SOLO la Ø use esta fuente, en cualquier texto (titulares, mono, botones). */
@font-face { font-family: "SL Symbol"; src: url("assets/archivo-black-o.woff") format("woff");
  unicode-range: U+00D8, U+00F8; font-display: block; }
:root {
  --ink: #1a1a1a;
  --bone: #f2f0ea;
  --paper: #faf9f6;
  --lab: #8d8b86;
  --muted: #e4e2dc;
  --muted-fg: #6f6d68;
  --line: #cfccc5;
  --danger: #9b2c1f;
  --red: #d4211a;        /* señal: CTA, precios en oferta, agotado */
  --red-deep: #a8170f;   /* hover/pulsado del rojo */
  --orange: #ff6a13;     /* superficie: barras, badges, hover de bloques */
  --orange-soft: #ffe3d1;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --f-display: "SL Symbol", "Anton", "Arial Narrow", sans-serif;
  --f-sans: "SL Symbol", "Archivo", system-ui, sans-serif;
  --f-mono: "SL Symbol", "IBM Plex Mono", ui-monospace, monospace;
  --max: 1600px;
  --gut: 20px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font: 400 16px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.accent { color: var(--red); }

/* ---------- utilidades ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dim { color: var(--muted-fg); }
.display {
  font-family: var(--f-display); text-transform: uppercase; line-height: 0.96;
  letter-spacing: -0.01em; font-weight: 400; margin: 0;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn {
  display: inline-block; text-decoration: none; padding: 14px 24px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
  text-align: center;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-ink { background: var(--red); color: var(--bone); }
.btn-ink:disabled { background: var(--ink); opacity: .3; cursor: not-allowed; }
.btn-line { border: 1px solid var(--ink); }
.link-u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover:not(:disabled) { background: var(--red-deep); }
  .btn-line:hover { background: var(--ink); color: var(--bone); }
  .link-u:hover { color: var(--red); }
}

/* barra de aviso */
.strip { background: var(--orange); color: var(--ink); }
.strip { overflow: hidden; }

/* ---------- cabecera ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--bone); border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { font-family: "Permanent Marker", "Brush Script MT", cursive; font-size: 26px; text-decoration: none; letter-spacing: -0.02em; line-height: 1; transform: skew(-6deg); }
.logo img { height: 28px; width: auto; }
.logo:has(img) { transform: none; }
.ftr-logo { height: 34px; width: auto; filter: invert(1); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .lang:hover { color: var(--red); } }
.hdr-meta { margin-left: auto; display: none; }
@media (min-width: 1100px) { .hdr-meta { display: block; } }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (min-width: 1100px) { .hdr-right { margin-left: 0; } }
.lang { text-decoration: none; }
/* selector de idioma: <details> nativo, sin JS */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; padding: 8px 2px; display: inline-flex; align-items: center; gap: 6px; }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.langs[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  background: var(--bone); border: 1px solid var(--ink); min-width: 168px; display: grid;
  transform-origin: top right; animation: langs-in 180ms var(--ease-out); }
@keyframes langs-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.langs-menu a { display: block; padding: 9px 12px; text-decoration: none; font-size: .9rem; }
.langs-menu a[aria-current] { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .langs-menu a:hover { background: var(--ink); color: var(--bone); } }
.ftr-langs { columns: 2; column-gap: 24px; }
.ftr-langs a[aria-current] { color: var(--orange); }
.legal-note { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--orange); background: var(--orange-soft); max-width: 760px; font-size: .9rem; }
.cart-btn { border: 1px solid var(--ink); padding: 7px 12px; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.cart-btn:active { transform: scale(0.97); }
.cart-btn.has { background: var(--red); border-color: var(--red); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); } }
.cart-btn.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (max-width: 560px) {
  .hdr .wrap { gap: 16px; }
  .nav { gap: 14px; }
  .nav .opt { display: none; }
}

/* ---------- marco de imagen (placeholder de ficha) ---------- */
.frame {
  position: relative; background: var(--muted); overflow: hidden;
  display: flex; align-items: flex-end;
}
.frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.frame.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
  opacity: .7;
}
.frame.ph .ph-tag {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.frame.ph .ph-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-size: clamp(48px, 10vw, 120px); color: var(--line); line-height: 1;
}
.frame.dark { background: #232322; }
.frame.dark.ph::before { opacity: .18; }
.frame.dark .ph-mark { color: #3a3a38; }
.frame.dark .mono { color: rgba(242,240,234,.6); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-16x10 { aspect-ratio: 16 / 10; }

/* ---------- home ---------- */
.hero { display: grid; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .hero { grid-template-columns: 1fr 1.15fr; } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 48px var(--gut); }
.hero h1 { font-size: clamp(3.5rem, 11vw, 9rem); }
.hero p.lead { max-width: 28rem; color: var(--muted-fg); margin: 0 0 32px; }
.hero-media { min-height: 60vh; }
@media (min-width: 1024px) { .hero-media { min-height: calc(100vh - 64px); } }
.hero-media .cap { position: absolute; left: 16px; bottom: 16px; color: var(--bone); background: var(--red); padding: 6px 10px; }
.hero .kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; vertical-align: 1px; }

.sec { padding: 64px 0; }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 12px; position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--red); }
.sec-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); }

.grid-p { display: grid; gap: 48px 24px; margin-top: 32px; }
@media (min-width: 640px) { .grid-p { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-p { grid-template-columns: repeat(4, 1fr); } }
.grid-p.c3 { }
@media (min-width: 1024px) { .grid-p.c3 { grid-template-columns: repeat(3, 1fr); } }

.card { text-decoration: none; display: block; }
.card .frame img { transition: transform 300ms var(--ease-out); }
.card .code { transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .frame img { transform: scale(1.03); }
  .card:hover .code { color: var(--red); }
}
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card h3 { font-family: var(--f-sans); font-weight: 500; font-size: 1rem; margin: 6px 0 0; }
.card .price { font-family: var(--f-mono); font-size: .875rem; }
.badge { background: var(--red); color: var(--bone); padding: 4px 8px; }
.badge.warm { background: var(--orange); color: var(--ink); }
.frame .flag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.badge.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.cats { display: grid; border-top: 1px solid var(--ink); margin-top: 32px; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat-sub { display: block; margin-top: 10px; font-size: .875rem; color: var(--muted-fg); max-width: 22rem; }

/* familias: el equipo construye la marca, la colección vende */
.fam { padding: 72px 0; }
.fam-head { display: grid; gap: 12px; margin-bottom: 32px; }
@media (min-width: 1024px) { .fam-head { grid-template-columns: 14rem 1fr 1fr; align-items: end; } }
.fam-head h2 { font-size: clamp(3rem, 9vw, 7rem); }
.fam-lead { margin: 0; max-width: 28rem; }
.fam-equipo { background: var(--ink); color: var(--bone); }
.fam-equipo .fam-head .mono { color: var(--orange); }
.fam-equipo .fam-lead, .fam-equipo .cat-sub, .fam-equipo .dim { color: rgba(242,240,234,.7); }
.fam-equipo .cats { border-top-color: var(--orange); }
.fam-equipo .cat { border-color: rgba(242,240,234,.18); min-height: 220px; justify-content: space-between; }
.fam-equipo .cat .display { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
@media (hover: hover) and (pointer: fine) {
  .fam-equipo .cat:hover { background: var(--orange); color: var(--ink); }
  .fam-equipo .cat:hover .dim, .fam-equipo .cat:hover .cat-sub { color: var(--ink); }
}
.fam-coleccion .fam-head .mono { color: var(--red); }
.fam-coleccion .fam-lead { color: var(--muted-fg); }
.fam-coleccion .cat .display { font-size: 2.4rem; }
.cat {
  display: flex; flex-direction: column; gap: 40px; padding: 24px 0; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .cat { padding: 24px 20px 32px; border-bottom: 0; border-left: 1px solid var(--line); }
  .cat:first-child { border-left: 0; padding-left: 0; }
}
.cat { transition: background-color 200ms var(--ease-out); }
.cat .display { font-size: 2rem; }
.cat .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--line); vertical-align: 1px; }
.cat.live .dot { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .cat:hover { background: var(--orange); } .cat:hover .dim { color: var(--ink); } }

.manifesto { background: var(--red); color: var(--bone); }
.manifesto .wrap { display: grid; }
@media (min-width: 1024px) { .manifesto .wrap { grid-template-columns: repeat(3, 1fr); } }
.manifesto .item { padding: 48px 0; }
@media (min-width: 1024px) {
  .manifesto .item { padding: 48px 32px; border-left: 1px solid rgba(242,240,234,.3); }
  .manifesto .item:first-child { border-left: 0; padding-left: 0; }
}
.manifesto h3 { font-size: 1.6rem; margin-top: 12px; }
.manifesto p { color: rgba(242,240,234,.85); font-size: .9rem; max-width: 24rem; margin: 12px 0 0; }
.manifesto .dim { color: rgba(242,240,234,.75); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-top: 16px; }
.split p { color: var(--muted-fg); max-width: 28rem; margin: 16px 0 32px; }

/* ---------- shop ---------- */
.page-h { padding: 48px 0 24px; }
.page-h h1 { font-size: clamp(2.6rem, 8vw, 6rem); margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-block: 1px solid var(--ink); align-items: center; }
.chip { border: 1px solid var(--line); padding: 8px 14px; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--orange); } }
.chip[aria-pressed="true"] { background: var(--red); color: var(--bone); border-color: var(--red); }
.filters .count { margin-left: auto; }
.soon-row { margin-top: 64px; }
.soon-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
@media (min-width: 768px) { .soon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .soon-grid { grid-template-columns: repeat(4, 1fr); } }
.soon { background: var(--bone); border-top: 3px solid var(--orange); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.soon .display { font-size: 2rem; }
.soon p { margin: 0; color: var(--muted-fg); font-size: .875rem; }
.empty { padding: 64px 0; text-align: center; }

/* ---------- ficha ---------- */
.crumbs { padding-top: 32px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.pdp { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 1024px) { .pdp { grid-template-columns: 1.1fr 1fr; } .pdp-info { position: sticky; top: 96px; align-self: start; } }
.pdp h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin-top: 12px; }
.pdp .price { font-family: var(--f-mono); font-size: 1.125rem; margin-top: 12px; }
.pdp .desc { color: var(--muted-fg); max-width: 28rem; margin-top: 24px; }
.sizes { border: 0; padding: 0; margin: 32px 0 0; }
.sizes .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.size { border: 1px solid var(--line); padding: 10px 16px; min-width: 52px; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.size:active:not(:disabled) { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .size:hover:not(:disabled) { border-color: var(--ink); } }
.size[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.stock-line.low { color: var(--red); }
.size:disabled { color: var(--muted-fg); text-decoration: line-through; opacity: .5; cursor: not-allowed; }
.stock-line { margin-top: 12px; min-height: 1.2em; }
.add { width: 100%; margin-top: 32px; padding: 18px 24px; }
.spec { margin: 40px 0 0; border-top: 3px solid var(--orange); }
.spec div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dd { margin: 0; text-align: right; font-size: .875rem; }
.spec dd.m { font-family: var(--f-mono); }
.care { margin-top: 32px; }
.care ul { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted-fg); font-size: .875rem; }
.care li { margin-bottom: 4px; }

/* ---------- lab ---------- */
.lab-list { margin: 64px 0 0; border-top: 3px solid var(--red); }
.lab-list dt { color: var(--red) !important; }
.lab-list > div { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .lab-list > div { grid-template-columns: 6rem 14rem 1fr; gap: 16px; } }
.lab-list dt { margin: 0; }
.lab-list dd { margin: 0; }
.lab-list .display { font-size: 1.6rem; }
/* títulos pequeños en varias líneas: interlineado abierto para que las tildes no pisen la línea de arriba */
.cat .display, .soon .display, .lab-list .display { line-height: 1.02; }
/* palabras largas (Produktspezifikation…) se parten con guion en vez de desbordar */
.lab-list .display, .cat .display, .soon .display { hyphens: auto; overflow-wrap: break-word; }
.lab-list p { margin: 0; max-width: 42rem; color: var(--muted-fg); font-size: .9rem; }

/* ---------- carrito ---------- */
.scrim { position: fixed; inset: 0; background: rgba(26,26,26,.4); z-index: 50; opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 60;
  background: var(--bone); border-left: 1px solid var(--ink);
  transform: translateX(100%); transition: transform 400ms var(--ease-drawer); display: flex; flex-direction: column;
}
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer-h { border-top: 4px solid var(--red); }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gut); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 var(--gut); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .frame { aspect-ratio: 4/5; }
.line .ph-mark { font-size: 28px !important; }
.line h4 { margin: 4px 0 8px; font-weight: 500; font-size: .95rem; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: var(--orange); } }
.qty button:active { transform: scale(0.94); }
.qty span { min-width: 30px; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; }
.line .rm { text-decoration: underline; text-underline-offset: 3px; align-self: start; }
.drawer-f { border-top: 1px solid var(--ink); padding: 20px var(--gut) 24px; }
.drawer-f .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.drawer-f .tot { font-family: var(--f-mono); font-size: 1rem; color: var(--red); }
.drawer-f .btn { width: 100%; margin-top: 16px; }
.drawer-f small { display: block; margin-top: 12px; color: var(--muted-fg); font-size: .75rem; }
.cart-empty { padding: 48px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 70;
  background: var(--ink); color: var(--bone); padding: 12px 18px; border-left: 4px solid var(--orange);
  transition: transform 250ms var(--ease-out), visibility 250ms;
  visibility: hidden;
}
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--bone); margin-top: 0; border-top: 6px solid var(--orange); }
.ftr h2 { color: var(--orange) !important; }
.ftr .wrap { padding-block: 64px; }
.ftr-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr .logo { font-size: 34px; color: var(--bone); display: inline-block; }
.ftr p { color: rgba(242,240,234,.7); font-size: .875rem; max-width: 20rem; }
.ftr h2 { color: rgba(242,240,234,.5); margin: 0; font-weight: 400; }
.ftr ul { list-style: none; padding: 0; margin: 16px 0 0; }
.ftr li { margin-bottom: 8px; font-size: .875rem; }
.ftr a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--orange); } }
.ftr dl { margin: 16px 0 0; font-family: var(--f-mono); font-size: .75rem; color: rgba(242,240,234,.7); }
.ftr dl div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(242,240,234,.15); padding-bottom: 8px; margin-bottom: 8px; }
.ftr dd { margin: 0; }
.ftr .copy { margin-top: 64px; color: rgba(242,240,234,.4); }

/* ---------- 404 / estados ---------- */
.center { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gut); }
.center h1 { font-size: 7rem; margin-top: 16px; color: var(--red); }


/* ============================================================
   MOVIMIENTO DE ENTRADA Y SCROLL
   Original de Street Lab. Solo transform, opacity y clip-path.
   Sin JS (html sin .js) todo aparece directamente.
   ============================================================ */

/* cintas en bucle */
.marquee, .bigtape { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; width: max-content; animation: tape 38s linear infinite; }
.marquee-track > span { padding: 9px 28px; }
.bigtape { background: var(--red); color: var(--bone); }
.bigtape .marquee-track { animation-duration: 28s; animation-direction: reverse; }
.bigtape span {
  font-family: var(--f-display); text-transform: uppercase; line-height: 1;
  font-size: clamp(3rem, 9vw, 7.5rem); padding: 18px 24px;
}
.bigtape span.o { color: var(--ink); }
.bigtape span:not(.o):nth-of-type(4n+1) { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .strip:hover .marquee-track { animation-play-state: paused; } }

/* titular línea a línea */
.split-lines .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.split-lines .ln > span { display: inline-block; }
html.js .split-lines .ln > span { transform: translateY(105%); }
html.js .split-lines.in .ln > span {
  transform: none; transition: transform 900ms var(--ease-out);
}
html.js .split-lines.in .ln:nth-child(2) > span { transition-delay: 80ms; }
html.js .split-lines.in .ln:nth-child(3) > span { transition-delay: 160ms; }
html.js .split-lines.in .ln:nth-child(4) > span { transition-delay: 240ms; }

/* aparición suave */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); }
html.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms);
}

/* entrada escalonada de hijos (60 ms entre cada uno) */
html.js [data-stagger] > * { opacity: 0; transform: translateY(32px); }
html.js [data-stagger].in > * {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* imágenes que se destapan de abajo arriba */
html.js .img-reveal { clip-path: inset(100% 0 0 0); }
html.js .img-reveal img { transform: scale(1.12); }
html.js .img-reveal.in { clip-path: inset(0 0 0 0); transition: clip-path 1000ms var(--ease-io); }
html.js .img-reveal.in img { transform: scale(1); transition: transform 1400ms var(--ease-out); }
html.js .img-reveal.is-hero.in { transition-duration: 1200ms; }
/* tras el revelado, el hover de tarjeta vuelve a su tiempo corto */
html.js .img-reveal.done img { transition: transform 300ms var(--ease-out); }
.hero-media img[data-parallax] { will-change: transform; }

/* Movimiento reducido: se quitan desplazamientos y escalas, se conservan color y opacidad */
@media (prefers-reduced-motion: reduce) {
  .langs-menu { animation: none; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; }
  .btn:active, .chip:active, .size:active, .cart-btn:active, .qty button:active { transform: none !important; }
  .card:hover .frame img { transform: none !important; }
  .drawer { transition: none !important; }
  html.js .split-lines .ln > span, html.js [data-reveal], html.js [data-stagger] > *,
  html.js .img-reveal, html.js .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { transform: none !important; }
}
html.js .img-reveal.is-hero.in img { transform: scale(1.06); }

@media (min-width: 768px) { .fam .cat, .fam .cat:first-child { padding: 24px 20px 32px; } .fam .cat:first-child { border-left: 0; } }

/* ---------- Completa tu equipo (venta cruzada) ---------- */
.kit { margin-top: 28px; border: 1px solid var(--ink); border-top: 4px solid var(--orange); padding: 18px; background: var(--paper); }
.kit-h { display: grid; gap: 4px; margin-bottom: 14px; }
.kit-h h2, .kit-h h3 { margin: 0; color: var(--red); font-weight: 500; }
.kit-h p { margin: 0; font-size: .85rem; }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kit-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.kit-img { display: block; aspect-ratio: 4/5; background: var(--muted); overflow: hidden; position: relative; }
.kit-img img { width: 100%; height: 100%; object-fit: cover; }
.kit-img .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); color: var(--line); font-size: 28px; }
.kit-info { display: grid; gap: 4px; }
.kit-name { text-decoration: none; font-weight: 500; font-size: .95rem; }
.kit-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kit-add { border: 1px solid var(--line); background: var(--bone); padding: 6px 10px; min-width: 38px; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.kit-add:active { transform: scale(0.97); }
.kit-add.ok { background: var(--red); border-color: var(--red); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .kit-add:hover { border-color: var(--orange); background: var(--orange); color: var(--ink); } .kit-name:hover { color: var(--red); } }
.kit-drawer { margin: 20px 0 24px; }
.fam-grid { margin: 0 0 40px; }
.fam-equipo .card h3, .fam-equipo .card .price { color: var(--bone); }
.fam-equipo .card .dim { color: rgba(242,240,234,.6); }

/* ---------- aceptación de condiciones en el carrito ---------- */
.terms { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .8rem; line-height: 1.45; cursor: pointer; }
.terms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.terms a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pie: enlaces legales ---------- */
.ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(242,240,234,.15); font-size: .8rem; }
.ftr-legal a { color: rgba(242,240,234,.75); }
.ftr .copy { margin-top: 20px; }

/* ---------- páginas legales ---------- */
.legal { padding-block: 48px 80px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-top: 12px; }
.legal-body { max-width: 760px; margin-top: 32px; font-size: 1rem; line-height: 1.65; }
.legal-body h2 { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: 1.5rem; letter-spacing: .01em; margin: 40px 0 12px; padding-top: 14px; border-top: 3px solid var(--orange); }
.legal-body p, .legal-body li { color: #33322f; }
.legal-body a { color: var(--red); text-underline-offset: 3px; }
.legal-body ol, .legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 6px; }
.lmeta { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg) !important; }
.ld { margin: 0; border-top: 1px solid var(--ink); }
.ld div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .ld div { grid-template-columns: 1fr; gap: 2px; } }
.ld dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-fg); padding-top: 3px; }
.ld dd { margin: 0; }
.lt { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 12px 0; display: block; overflow-x: auto; }
.lt th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--bone); padding: 9px 10px; }
.lt td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.lbox { border: 1px solid var(--ink); padding: 8px 20px; background: var(--paper); }

/* ---------- corte hombre / mujer ---------- */
.fit { border: 1px solid var(--line); padding: 10px 18px; min-width: 96px; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.fit:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .fit:hover { border-color: var(--ink); } }
.fit[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.sizes.fits + .sizes { margin-top: 20px; }
.filters.gender { border-top: 0; padding-top: 0; margin-top: -1px; }
