/* JMOTORSPORTVINILOTEAM · sistema «Box de competición»
   Oscuro asfalto + amarillo pista (el suelo del taller) + Archivo ancha en cursiva, como el logo.
   Un solo archivo para tienda, taller y legales. Diales: variance 7 · motion 5 · density 4. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/assets/fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/assets/fonts/archivo-italic-latin.woff2) format("woff2"); }

:root {
  --bg: #0d0e10;
  --bg-2: #15171a;
  --bg-3: #1d2024;
  --line: #2a2e33;
  --line-2: #3a3f46;
  --text: #ecebe7;
  --muted: #a3a8af;      /* 8,1:1 sobre --bg */
  --accent: #ffc629;     /* amarillo pista */
  --accent-2: #ffd75e;
  --on-accent: #121212;
  --ok: #7bd88f;
  --r: 3px;              /* un solo radio en todo el sitio */
  --wrap: 1280px;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
h1, h2, .disp {
  font-style: italic; font-weight: 800; font-stretch: 118%;
  letter-spacing: -.012em; line-height: 1.04; padding-bottom: .04em;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 108%; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: .9em; }
.acento { color: var(--accent); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 52ch; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .78rem; font-weight: 700; font-stretch: 112%; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 1rem;
}
.i { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--2 { background: var(--bg-2); }
.sec__tit { margin-bottom: clamp(2rem, 4vw, 3rem); }
h2.sec__tit, .sec__tit h2 { max-width: 22ch; }
.sec__tit .lead { margin-top: 1rem; }

.saltar { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; font-weight: 700; }
.saltar:focus { left: 1rem; top: 1rem; }

/* ---------- Botones: paralelogramo como el logo ---------- */
.btn {
  --b: var(--accent); --c: var(--on-accent);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.7rem; border: 0; background: none; color: var(--c);
  font-weight: 700; font-stretch: 110%; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), color .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b); border-radius: var(--r);
  transform: skewX(-12deg); transition: background .2s, box-shadow .2s;
}
.btn:hover::before { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i--fin { transform: translateX(3px); }
.btn--secondary { --b: transparent; --c: var(--text); }
.btn--secondary::before { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--secondary:hover::before { background: var(--bg-3); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--dark { --b: var(--bg); --c: var(--text); }
.btn--dark:hover::before { background: #000; background: var(--bg-3); }
.btn--xl { min-height: 58px; padding-inline: 2.1rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.enlace { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; transition: text-decoration-color .2s; }
.enlace:hover { text-decoration-color: var(--accent); }

/* ---------- Anuncio y cabecera ---------- */
.anuncio { margin: 0; background: var(--accent); color: var(--on-accent); text-align: center; font-size: .86rem; font-weight: 600; padding: .5rem var(--gut); }
.anuncio b { font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.header-sentinel { height: 1px; margin-bottom: -1px; }
.cab { position: sticky; top: 0; z-index: 40; background: rgb(13 14 16 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.cab.is-stuck { border-bottom-color: var(--line); }
.cab__in { display: flex; align-items: center; gap: 2rem; height: var(--head-h); }
.cab__logo { width: 128px; height: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--muted); padding-block: .4rem; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.cab__acc { display: flex; align-items: center; gap: .75rem; }
.carrito-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: .95rem;
  transition: border-color .2s;
}
.carrito-btn:hover { border-color: var(--line-2); }
.carrito-btn__n { min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); border-radius: var(--r); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.carrito-btn__n[data-n="0"] { background: var(--line-2); color: var(--text); }
.carrito-btn.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (max-width: 920px) {
  .nav { display: none; }
  .cab__acc { margin-left: auto; }
}
@media (max-width: 480px) { .carrito-btn .btn__label { display: none; } }
.nav-movil { display: none; }
@media (max-width: 920px) {
  .nav-movil { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem var(--gut); border-top: 1px solid var(--line); scrollbar-width: none; }
  .nav-movil a { flex: none; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--muted); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: var(--r); }
  .nav-movil a[aria-current] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
}

/* ---------- Hero tienda ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.2rem; }
.hero__foto { position: relative; }
.hero__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.hero__foto::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 42%; height: 6px; background: var(--accent); transform: skewX(-12deg); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__foto img { aspect-ratio: 4 / 3; }
}

/* Entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  .entra > * { animation: entra .8s var(--ease) both; }
  .entra > :nth-child(2) { animation-delay: .08s; }
  .entra > :nth-child(3) { animation-delay: .16s; }
  .entra > :nth-child(4) { animation-delay: .24s; }
  .hero__foto { animation: foto 1s var(--ease) .1s both; }
  @keyframes entra { from { opacity: 0; transform: translateY(18px); } }
  @keyframes foto { from { opacity: 0; transform: translateX(24px); } }
}

/* ---------- Franja de garantías ---------- */
.datos { border-block: 1px solid var(--line); }
.datos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.datos li { display: flex; gap: .85rem; align-items: center; padding: 1.4rem 1.25rem; }
.datos li + li { border-left: 1px solid var(--line); }
.datos .i { width: 28px; height: 28px; color: var(--accent); }
.datos b { display: block; font-weight: 700; font-stretch: 108%; }
.datos span { display: block; font-size: .875rem; color: var(--muted); }
@media (max-width: 900px) {
  .datos ul { grid-template-columns: 1fr 1fr; }
  .datos li:nth-child(3) { border-left: 0; }
  .datos li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .datos li { padding: 1rem .5rem; gap: .6rem; } .datos b { font-size: .92rem; } }

/* ---------- Categorías (bento de 5) ---------- */
.cats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 12px; }
.cat { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-3); text-decoration: none; isolation: isolate; }
.cat:first-child { grid-row: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 11 12 / .96) 0%, rgb(10 11 12 / .78) 30%, rgb(10 11 12 / .1) 70%); }
.cat:hover img { transform: scale(1.045); }
.cat__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.cat h3 { font-style: italic; font-weight: 800; font-stretch: 118%; font-size: 1.45rem; }
.cat:first-child h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.cat p { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.cat .i { width: 26px; height: 26px; color: var(--accent); transition: transform .3s var(--ease); }
.cat:hover .i { transform: translateX(4px); }
@media (max-width: 760px) {
  .cats { grid-template-columns: 1fr 1fr; grid-template-rows: 230px; grid-auto-rows: 170px; }
  .cat:first-child { grid-column: span 2; grid-row: auto; }
  .cat h3 { font-size: 1.15rem; }
  .cat__txt { padding: 1rem; }
  .cat .i { display: none; }
}

/* ---------- Packs (tickets) ---------- */
.packs { display: grid; gap: 1.25rem; }
.pack { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pack > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.pack__cuerpo { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; border-left: 1px dashed var(--line-2); }
.pack h3 { font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pack p { color: var(--muted); max-width: 44ch; }
.pack__precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; }
.pack .btn { align-self: flex-start; margin-top: .4rem; }
.pack__ahorro { display: inline-block; font-size: .85rem; font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
@media (max-width: 760px) {
  .pack { grid-template-columns: 1fr; }
  .pack > img { min-height: 0; aspect-ratio: 16 / 9; }
  .pack__cuerpo { border-left: 0; border-top: 1px dashed var(--line-2); }
}
.packs--mini { grid-template-columns: 1fr 1fr; }
.packs--mini .pack { grid-template-columns: 1fr; }
.packs--mini .pack > img { min-height: 0; aspect-ratio: 800 / 369; height: auto; }
.packs--mini .pack__cuerpo { border-left: 0; border-top: 1px dashed var(--line-2); padding: 1.4rem 1.5rem; gap: .7rem; }
.packs--mini .pack h3 { font-size: 1.4rem; }
@media (max-width: 760px) { .packs--mini { grid-template-columns: 1fr; } }

/* ---------- Precios ---------- */
.precio { font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.precio s { margin-left: .5rem; font-weight: 500; font-size: .62em; color: var(--muted); text-decoration-thickness: 1.5px; }
.precio--grande { font-size: clamp(1.9rem, 3vw, 2.5rem); font-style: italic; letter-spacing: -.01em; }

/* ---------- Tarjetas de producto ---------- */
.productos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
@media (max-width: 1000px) { .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .75rem; } }
.productos--rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
@media (max-width: 700px) { .productos--rail { grid-auto-columns: 72%; } }
.productos--rail .producto { scroll-snap-align: start; }
.producto { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.producto__foto { display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-3); aspect-ratio: 16 / 9; margin-bottom: .4rem; }
.producto__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.producto:hover .producto__foto img { transform: scale(1.05); }
.producto h3 { font-size: 1rem; font-weight: 600; font-stretch: 100%; line-height: 1.35; }
.producto h3 a { text-decoration: none; }
.producto h3 a:hover { color: var(--accent); }
.producto__nota { font-size: .8rem; color: var(--muted); }
.producto__pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .35rem; }
.producto__pie .precio { font-size: 1.1rem; }
.producto__add {
  display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.producto__add svg { width: 16px; height: 16px; }
.producto__add:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.producto__add:active { transform: translateY(1px); }

/* ---------- Promo 3x2 (banda amarilla) ---------- */
.promo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.6rem clamp(1.4rem, 3vw, 2.5rem); background: var(--accent); color: var(--on-accent); border-radius: var(--r); }
.promo strong { display: block; font-style: italic; font-weight: 900; font-stretch: 122%; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
.promo p { margin-top: .35rem; font-weight: 500; }

/* ---------- Personaliza ---------- */
.perso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.perso__foto img { width: 100%; border-radius: var(--r); aspect-ratio: 834 / 703; object-fit: cover; }
.perso .lead { margin-top: 1.2rem; }
.lista-ok { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.lista-ok li { display: flex; gap: .8rem; align-items: flex-start; }
.lista-ok .i { color: var(--accent); margin-top: .15em; }
.perso .btn { margin-top: 2rem; }
.perso__mas { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.perso__mas a { color: var(--text); }
@media (max-width: 820px) { .perso { grid-template-columns: 1fr; } }

/* ---------- Banda taller (foto a sangre) ---------- */
.banda { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); }
.banda > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banda::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 11 12 / .95) 0%, rgb(10 11 12 / .82) 45%, rgb(10 11 12 / .25) 100%); }
.banda h2 { max-width: 18ch; }
.banda .eyebrow { color: var(--accent); margin-top: 0; }
.banda p { max-width: 46ch; margin-top: 1.1rem; color: #c9ccd1; }
.cifras { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 2.2rem 0 2.4rem; }
.cifras b { display: block; font-style: italic; font-weight: 900; font-stretch: 122%; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--accent); }
.cifras span { display: block; margin-top: .35rem; font-size: .9rem; color: #c9ccd1; }
@media (max-width: 700px) { .banda::before { background: rgb(10 11 12 / .84); } }

/* ---------- Pie ---------- */
.pie { background: #08090a; border-top: 1px solid var(--line); padding-block: 4rem 2rem; font-size: .95rem; }
.pie__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.pie h3 { font-size: .8rem; font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.pie__logo { width: 140px; margin-bottom: 1.2rem; }
.pie p { color: var(--muted); }
.pie nav { display: grid; gap: .55rem; }
.pie nav a, .pie__datos a { text-decoration: none; color: var(--text); }
.pie nav a:hover, .pie__datos a:hover { color: var(--accent); }
.pie__datos { display: grid; gap: .7rem; }
.pie__datos a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.pie__datos .i { color: var(--accent); }
.pie__bajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.pie .pie__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pie__legal a { color: var(--muted); text-decoration: none; }
.pie__legal a:hover { color: var(--text); }
@media (max-width: 900px) { .pie__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie__grid { grid-template-columns: 1fr; } }

/* ---------- Tienda ---------- */
.cab-pag { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.cab-pag .lead { margin-top: 1rem; }
.filtros-caja { position: sticky; top: var(--head-h); z-index: 30; background: rgb(13 14 16 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.filtros { display: flex; gap: .5rem; overflow-x: auto; padding-block: .8rem; scrollbar-width: none; }
.filtros button { flex: none; height: 40px; padding: 0 1.1rem; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .92rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.filtros button:hover { color: var(--text); border-color: var(--text); }
.filtros button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 920px) { .filtros-caja { top: calc(var(--head-h) + 52px); } }

.fotos-cliente { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border: 1px dashed var(--line-2); border-radius: var(--r); }
.fotos-cliente img { width: 100%; border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; max-height: 420px; }
.fotos-cliente .lead { margin-top: 1rem; }
.fotos-cliente .btn { margin-top: 1.8rem; }
@media (max-width: 760px) { .fotos-cliente { grid-template-columns: 1fr; } .fotos-cliente img { aspect-ratio: 4 / 3; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--head-h) + 2rem); }
.faq-grid .lead { margin-top: 1rem; }
.faq-grid .enlace { margin-top: 1.5rem; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; cursor: pointer; font-weight: 600; font-size: 1.06rem; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .i { color: var(--accent); transition: transform .3s var(--ease); }
.faq[open] summary .i { transform: rotate(45deg); }
.faq__cuerpo { padding: 0 3rem 1.4rem 0; color: var(--muted); max-width: 62ch; }

/* ---------- Ficha de producto ---------- */
.migas { padding-block: 1.5rem; font-size: .88rem; color: var(--muted); }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { color: var(--text); }
.ficha { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: var(--sec); min-height: 60vh; }
.ficha__media { position: sticky; top: calc(var(--head-h) + 1.5rem); }
.ficha__media img { width: 100%; border-radius: var(--r); background: var(--bg-3); }
.ficha h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.ficha__precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.1rem; }
.ficha__iva { font-size: .85rem; color: var(--muted); }
.ficha__intro { margin-top: 1.3rem; color: var(--muted); max-width: 56ch; }
.opciones { display: grid; gap: 1.2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.campo { display: grid; gap: .45rem; }
.campo label, .campo__l { font-size: .9rem !important; font-weight: 700 !important; color: var(--text) !important; }
.campo small { font-size: .82rem; color: var(--muted); }
.campo input, .campo select {
  width: 100%; height: 50px; padding: 0 1rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); font-size: 1rem;
  transition: border-color .2s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(255 198 41 / .2); }
.campo input[aria-invalid="true"] { border-color: #ff7a6b; }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); width: max-content; }
.cantidad button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.15rem; }
.cantidad button:hover { color: var(--accent); }
.cantidad output { min-width: 2.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ficha__comprar { margin-top: .4rem; padding-inline: 6px; }
.ficha__comprar .btn { width: 100%; }
.entrega { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.1rem; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: var(--r); font-size: .94rem; }
.entrega svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .1rem; }
.entrega b { color: var(--text); }
.garantias { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; font-size: .88rem; color: var(--muted); }
.garantias li { display: flex; gap: .6rem; align-items: flex-start; }
.garantias svg { width: 20px; height: 20px; flex: none; color: var(--text); }
.ficha__info { margin-top: 2rem; }
.ficha__info details { border-bottom: 1px solid var(--line); }
.ficha__info details:first-child { border-top: 1px solid var(--line); }
.ficha__info summary { padding: 1.05rem 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.ficha__info summary::-webkit-details-marker { display: none; }
.ficha__info summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--ease); }
.ficha__info details[open] summary::after { transform: rotate(45deg); }
.ficha__info details > div { padding-bottom: 1.1rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .ficha { grid-template-columns: 1fr; } .ficha__media { position: static; } .garantias { grid-template-columns: 1fr; } }
.compra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gut); background: rgb(13 14 16 / .96); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
.compra-fija .precio { font-size: 1.3rem; }
.compra-fija.is-visible { transform: none; }
@media (max-width: 860px) { .compra-fija { display: flex; } }

/* ---------- Carrito lateral ---------- */
.carrito { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.carrito__velo { position: absolute; inset: 0; background: rgb(0 0 0 / .6); opacity: 0; transition: opacity .3s; }
.carrito__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease); }
.carrito.is-open { pointer-events: auto; }
.carrito.is-open .carrito__velo { opacity: 1; }
.carrito.is-open .carrito__panel { transform: none; }
.carrito__cab { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.carrito__cab h2 { font-size: 1.5rem; }
.cerrar { width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--r); }
.cerrar:hover { border-color: var(--text); }
.cerrar svg { width: 20px; height: 20px; }
.progreso { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.progreso b { color: var(--accent); }
.progreso__barra { height: 4px; margin-top: .7rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.progreso__barra i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width .5s var(--ease); }
.progreso.is-ok b { color: var(--ok); }
.progreso.is-ok .progreso__barra i { background: var(--ok); }
.carrito__lineas { flex: 1; overflow-y: auto; padding: .5rem 1.4rem; }
.linea { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.linea img { width: 76px; height: 57px; object-fit: cover; border-radius: var(--r); }
.linea h3 { font-size: .94rem; font-weight: 600; font-stretch: 100%; }
.linea small { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.linea .cantidad { margin-top: .5rem; }
.linea .cantidad button { width: 34px; height: 34px; }
.linea__precio { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.linea__quitar { display: block; margin: .5rem 0 0 auto; background: none; border: 0; padding: 0; font-size: .8rem; color: var(--muted); text-decoration: underline; }
.linea__quitar:hover { color: var(--text); }
.upsell { display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem; align-items: center; margin: 1rem 0; padding: .8rem; background: var(--bg-3); border: 1px dashed var(--line-2); border-radius: var(--r); font-size: .85rem; color: var(--muted); }
.upsell img { width: 60px; height: 45px; object-fit: cover; border-radius: var(--r); }
.upsell b { display: block; color: var(--text); }
.vacio { padding: 3rem 0; text-align: center; display: grid; gap: .5rem; justify-items: center; }
.vacio .btn { margin-top: 1rem; }
.carrito__pie { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--bg); display: grid; gap: .8rem; }
.proteccion { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.proteccion b { color: var(--text); }
.proteccion input, .legal-check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: .1rem; flex: none; }
.cupon { display: flex; gap: .5rem; }
.cupon input { flex: 1; min-width: 0; height: 44px; padding: 0 .9rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.cupon input::placeholder { color: #8b9097; }
.cupon input:focus { outline: none; border-color: var(--accent); }
.cupon button { height: 44px; padding: 0 1rem; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 600; }
.cupon button:hover { border-color: var(--text); }
.cupon__msg { font-size: .82rem; color: var(--muted); min-height: 0; }
.cupon__msg:empty { display: none; }
.totales { display: grid; gap: .35rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.totales div { display: flex; justify-content: space-between; color: var(--muted); }
.totales .total { margin-top: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: 1.1rem; }
.carrito__pie .btn { width: calc(100% - 12px); margin-inline: 6px; }
.carrito__nota { text-align: center; font-size: .78rem; color: var(--muted); }

/* ---------- Pop-up VIP ---------- */
.vip { width: min(480px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--text); }
.vip::backdrop { background: rgb(0 0 0 / .7); }
.vip__caja { position: relative; padding: 2.2rem 2rem 2rem; border-top: 5px solid var(--accent); }
.vip .cerrar { position: absolute; top: 1rem; right: 1rem; }
.vip h2 { font-size: 1.8rem; padding-right: 2.5rem; }
.vip p { color: var(--muted); margin-top: .8rem; }
.vip form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.vip .campo small { font-weight: 400; }
.legal-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.legal-check a { color: var(--text); }
.vip__codigo { margin-top: 1.5rem; padding: 1.4rem; text-align: center; border: 1px dashed var(--accent); border-radius: var(--r); display: grid; gap: .3rem; }
.vip__codigo b { font-style: italic; font-weight: 900; font-stretch: 122%; font-size: 2.4rem; color: var(--accent); letter-spacing: .04em; }
.vip__codigo .small { color: var(--muted); }

/* ---------- Legales ---------- */
.legal { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 5rem) var(--sec); }
.legal h1 { margin-bottom: 1.8rem; }
.legal h2 { font-size: 1.35rem; font-stretch: 108%; margin: 2.4rem 0 .8rem; }
.legal h3 { margin: 1.6rem 0 .6rem; }
.legal p, .legal li { color: #c3c6cb; }
.legal a { color: var(--accent); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; width: 34%; }
.volver { display: inline-flex; margin-top: 3rem; }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revela { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .revela.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= Taller ================= */
.cab__cta { min-height: 44px; padding: .55rem 1.3rem; font-size: .95rem; }
@media (max-width: 920px) { .taller .cab__acc { margin-left: auto; } }
@media (max-width: 420px) { .cab__cta { font-size: 0; gap: 0; padding: .55rem 1rem; } .cab__cta .i { font-size: 1rem; } }

.t-hero { position: relative; isolation: isolate; min-height: min(calc(100dvh - var(--head-h)), 860px); display: flex; align-items: flex-end; padding-block: 6rem clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.t-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -2; }
.t-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 11 12 / .94) 0%, rgb(10 11 12 / .72) 48%, rgb(10 11 12 / .15) 100%), linear-gradient(to top, rgb(10 11 12 / .9), transparent 45%); }
.t-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.t-hero .lead { margin-top: 1.2rem; color: #c9ccd1; }
.t-hero .hero__ctas { gap: 1rem 1.5rem; }
@media (max-width: 700px) { .t-hero::before { background: linear-gradient(to top, rgb(10 11 12 / .96) 35%, rgb(10 11 12 / .45)); } .t-hero { min-height: 88dvh; } }

.t-cifras { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.t-cifras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.t-cifras li { padding: 1.6rem 1.25rem; }
.t-cifras li + li { border-left: 1px solid var(--line); }
.t-cifras b { display: block; font-style: italic; font-weight: 900; font-stretch: 122%; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; color: var(--accent); }
.t-cifras span { display: block; margin-top: .4rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .t-cifras ul { grid-template-columns: 1fr 1fr; } .t-cifras li:nth-child(3) { border-left: 0; } .t-cifras li:nth-child(n+3) { border-top: 1px solid var(--line); } }

.vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vs__col { padding: clamp(1.5rem, 4vw, 2.75rem); }
.vs__col h3 { font-style: italic; font-weight: 800; font-stretch: 118%; font-size: 1.6rem; margin-bottom: 1.4rem; }
.vs__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.vs__col li { display: flex; gap: .7rem; align-items: flex-start; }
.vs__col:first-child { color: var(--muted); }
.vs__col:first-child h3 { color: var(--muted); }
.vs__col:first-child li::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: .75em; background: var(--line-2); }
.vs__col--si { background: var(--bg-3); border-left: 1px solid var(--line); }
.vs__col--si h3 { color: var(--accent); }
.vs__col--si .i { color: var(--accent); margin-top: .15em; }
@media (max-width: 700px) { .vs { grid-template-columns: 1fr; } .vs__col--si { border-left: 0; border-top: 1px solid var(--line); } }

.srvs { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; gap: 12px; }
.srv { position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate; background: var(--bg-3); }
.srv > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.srv:hover > img { transform: scale(1.04); }
.srv::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 11 12 / .92), rgb(10 11 12 / .1) 60%); }
.srv__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.4rem; }
.srv h3 { font-style: italic; font-weight: 800; font-stretch: 118%; font-size: 1.45rem; }
.srv p { margin-top: .35rem; font-size: .92rem; color: #c9ccd1; max-width: 42ch; }
.srv:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.srv:nth-child(1) h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.srv:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.srv:nth-child(3), .srv:nth-child(4), .srv:nth-child(5) { grid-column: span 2; }
.srv--furgo { background: var(--accent); color: var(--on-accent); }
.srv--furgo::after { display: none; }
.srv--furgo .srv__txt { position: static; height: 100%; display: flex; flex-direction: column; padding: 1.75rem; }
.srv--furgo .i { width: 44px; height: 44px; margin-bottom: auto; }
.srv--furgo h3 { color: var(--on-accent); font-size: 1.8rem; }
.srv--furgo p { color: #2b2b2b; font-size: 1rem; }
.srv--furgo .enlace { margin-top: 1.2rem; color: var(--on-accent); text-decoration-color: rgb(0 0 0 / .35); }
.srv--furgo .enlace:hover { text-decoration-color: var(--on-accent); }
@media (max-width: 860px) {
  .srvs { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .srv:nth-child(1) { grid-column: span 2; grid-row: span 1; height: 300px; }
  .srv:nth-child(2) { grid-column: span 2; grid-row: auto; }
  .srv:nth-child(3), .srv:nth-child(4) { grid-column: span 1; }
  .srv:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 520px) { .srv:nth-child(3), .srv:nth-child(4) { grid-column: span 2; } }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: p; }
.pasos li { position: relative; padding: 2rem 2rem 0 0; border-top: 2px solid var(--line); }
.pasos li::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 2px; background: var(--accent); }
.pasos__n { display: block; font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 3.4rem; line-height: 1; color: var(--line-2); margin-bottom: 1.1rem; }
.pasos h3 { font-size: 1.3rem; }
.pasos p { margin-top: .6rem; color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) { .pasos { grid-template-columns: 1fr; gap: 2.5rem; } .pasos li { padding-right: 0; } }

.carta { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.carta > .i { width: 52px; height: 52px; color: var(--accent); }
.carta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.carta p { margin-top: .5rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .carta { grid-template-columns: 1fr; } }

.garantia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.garantia > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.garantia__ico { width: 54px; height: 54px; color: var(--accent); margin-bottom: 1.4rem; }
.garantia .lead { margin-top: 1.2rem; }
.garantia .enlace { margin-top: 1.6rem; }
.garantia .enlace .i { color: var(--accent); }
@media (max-width: 820px) { .garantia { grid-template-columns: 1fr; } }

.t-final { padding-block: var(--sec); background: var(--accent); color: var(--on-accent); }
.t-final h2 { color: var(--on-accent); max-width: 20ch; }
.t-final .lead { color: #2b2b2b; margin-top: 1rem; }
.t-final .btn--primary { --b: var(--bg); --c: var(--text); }
.t-final .btn--primary:hover::before { background: var(--bg-3); }
.t-final .btn--secondary { --c: var(--on-accent); }
.t-final .btn--secondary::before { box-shadow: inset 0 0 0 1.5px var(--on-accent); }
.t-final .btn--secondary:hover::before { background: rgb(0 0 0 / .08); box-shadow: inset 0 0 0 1.5px var(--on-accent); }
.t-final :focus-visible { outline-color: var(--on-accent); }
.t-final__tienda { margin-top: 2rem; font-size: .95rem; }

.barra-movil { display: none; }
@media (max-width: 760px) {
  .barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1.4fr 1fr; gap: .9rem; padding: .7rem 1.1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgb(13 14 16 / .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .barra-movil.is-visible { transform: none; }
  .barra-movil .btn { min-height: 48px; padding-inline: .8rem; }
}
