/* Gomería El Gato — estilos de todo el sitio (portada, tienda y fichas de producto) */

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1d1d1d;
  --line: #2c2c2c;
  --ink: #f4f2ed;
  --muted: #a8a49c;
  --yellow: #ffc414;
  --yellow-2: #ffd34d;
  --red: #e2231a;
  --wa: #25d366;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --wrap: 1180px;
  --gutter: 16px;
  --tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 14 20 0h14L14 14zM28 42l20-14h14L42 42z' fill='%23fff' fill-opacity='.035'/%3E%3C/svg%3E");
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, #111 16px 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .005em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #000; padding: 10px 16px; font-weight: 600; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.hazard { height: 12px; background: var(--hazard); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent;
  font: 700 1.2rem/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ic { width: 1.35em; height: 1.35em; }
.btn--primary { background: var(--yellow); color: #0a0a0a; }
.btn--primary:hover { background: var(--yellow-2); }
.btn--ghost { border-color: #4a4a4a; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 40; background: #0a0a0a; border-bottom: 1px solid #1f1f1f; }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top__logo { display: block; flex: none; }
.top__logo img { width: 104px; height: auto; }
.top__nav { display: none; margin-left: auto; gap: 4px; }
.top__nav a { padding: 10px 12px; text-decoration: none; font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-radius: 4px; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--ink); }
.top__nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; text-decoration: none; font: 700 1.05rem/1 var(--display); font-style: italic; text-transform: uppercase; color: var(--ink); border: 1px solid #3a3a3a; border-radius: var(--r); }
.top__link:hover { border-color: var(--yellow); color: var(--yellow); }
.top__wa { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--yellow); color: #0a0a0a; }
.top__wa .ic { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .top__in { min-height: 72px; }
  .top__logo img { width: 150px; }
  .top__nav { display: flex; }
  .top__actions { margin-left: 8px; }
  .top__actions .top__link { display: none; }
  .top__wa { width: auto; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; text-decoration: none; font: 700 1.05rem/1 var(--display); font-style: italic; text-transform: uppercase; }
}
.top__wa-txt { display: none; }
@media (min-width: 900px) { .top__wa-txt { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg) var(--tread); overflow: hidden; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 45%, rgba(10,10,10,.85) 82%, #0a0a0a 100%); }
.hero__body { position: relative; margin-top: -120px; padding-bottom: 36px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); transform: skewX(-20deg); }
.hero h1 { margin-top: 14px; font-size: clamp(2.75rem, 11.5vw, 4.6rem); }
.hero h1 em { font-style: inherit; color: var(--yellow); }
.hero__lead { margin-top: 16px; max-width: 34em; color: #d6d3cc; font-size: 1.075rem; }
.estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; font-weight: 600; }
.estado__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.estado[data-abierto="si"] .estado__dot { background: #3ddc6a; box-shadow: 0 0 0 4px rgba(61, 220, 106, .18); }
.estado[data-abierto="no"] .estado__dot { background: var(--red); }
.hero__ctas { display: grid; gap: 10px; margin-top: 22px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: .98rem; text-decoration: none; }
.hero__rating strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars .ic { width: 17px; height: 17px; }
@media (min-width: 560px) { .hero__ctas { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero > .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
  .hero__body { margin: 0; padding: 0; order: -1; }
  .hero__media { padding: 0 18px 18px 0; }
  .hero__media::after { display: none; }
  .hero__media img { aspect-ratio: 1; border-radius: var(--r); box-shadow: 18px 18px 0 var(--yellow); }
  .hero__tag { position: absolute; left: -22px; bottom: 44px; background: #0a0a0a; border: 2px solid var(--yellow); padding: 12px 16px; border-radius: var(--r); font: 800 1.35rem/1 var(--display); font-style: italic; text-transform: uppercase; }
  .hero__tag small { display: block; margin-top: 4px; font: 600 .82rem/1 var(--body); font-style: normal; text-transform: none; color: var(--muted); letter-spacing: 0; }
}
.hero__tag { display: none; }
@media (min-width: 900px) { .hero__tag { display: block; } }
@media (max-width: 899px) { .hero > .wrap { padding: 0; } .hero__body { padding-inline: var(--gutter); } }

/* ---------- Accesos rápidos ---------- */
.quick { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0; }
.quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick__item { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 16px 14px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid #3a3a3a; box-shadow: 0 3px 0 #000; text-decoration: none; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), border-color .2s ease, background-color .2s ease; }
.quick__item .ic:first-child { width: 42px; height: 42px; padding: 9px; margin-bottom: 8px; border-radius: 50%; background: var(--yellow); color: #0a0a0a; }
.quick__label { font: 800 1.3rem/1 var(--display); font-style: italic; text-transform: uppercase; }
.quick__sub { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.quick__go { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease-out), color .2s ease; }
.quick__item--wa { background: var(--yellow); border-color: var(--yellow); color: #0a0a0a; }
.quick__item--wa .ic:first-child { background: #0a0a0a; color: var(--yellow); }
.quick__item--wa .quick__sub, .quick__item--wa .quick__go { color: #3a3000; }
.quick__item:active { transform: translateY(3px); box-shadow: 0 0 0 #000; }
@media (hover: hover) and (pointer: fine) {
  .quick__item:hover { border-color: var(--yellow); }
  .quick__item:hover .quick__go { transform: translate(2px, -2px); color: var(--yellow); }
  .quick__item--wa:hover { background: var(--yellow-2); }
  .quick__item--wa:hover .quick__go { color: #0a0a0a; }
}
@media (min-width: 900px) {
  .quick { padding: 22px 0; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .quick__item { padding: 20px 18px 18px; }
}

/* ---------- Secciones ---------- */
.sec { padding: 64px 0; }
.sec--alt { background: var(--surface) var(--tread); border-block: 1px solid var(--line); }
.sec__head { display: grid; gap: 12px; margin-bottom: 30px; }
.sec__head h2 { font-size: clamp(2.4rem, 8vw, 4rem); }
.sec__head p { color: var(--muted); max-width: 40em; }
.sec__head--row { align-items: end; }
@media (min-width: 900px) {
  .sec { padding: 96px 0; }
  .sec__head--row { grid-template-columns: 1fr auto; }
}

/* Servicios */
.vehiculos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.vehiculo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); text-align: center; font: 700 1.05rem/1 var(--display); font-style: italic; text-transform: uppercase; }
.vehiculo .ic { width: 30px; height: 30px; color: var(--yellow); }
@media (min-width: 700px) { .vehiculos { grid-template-columns: repeat(6, 1fr); } }
.servicios { display: grid; gap: 16px; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; }
.card h3 { font-size: 1.9rem; display: flex; align-items: center; gap: 10px; }
.card h3 .ic { width: 30px; height: 30px; color: var(--yellow); }
.checks { display: grid; gap: 10px; margin-top: 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { width: 20px; height: 20px; color: var(--yellow); margin-top: 3px; }
.checks small { display: block; color: var(--muted); font-size: .92rem; }
.precurados { display: grid; gap: 14px; margin-top: 16px; padding: 22px 20px; border-radius: var(--r); background: var(--yellow); color: #0a0a0a; }
.precurados h3 { font-size: 2rem; }
.medidas { display: flex; flex-wrap: wrap; gap: 8px; }
.medidas li { padding: 6px 10px; background: #0a0a0a; color: var(--yellow); border-radius: 4px; font: 700 1.15rem/1 var(--display); font-style: italic; }
@media (min-width: 800px) {
  .servicios { grid-template-columns: 1fr 1fr; }
  .card { padding: 30px 28px; }
  .precurados { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 24px 28px; }
}

/* Trabajos */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3a3a3a; background: transparent; cursor: pointer; font: 600 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chip:hover { color: var(--ink); border-color: #666; }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #0a0a0a; }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.galeria__item { position: relative; padding: 0; border: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.galeria__item:hover img { transform: scale(1.04); }
.galeria__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); text-align: left; font: 700 1rem/1.1 var(--display); font-style: italic; text-transform: uppercase; }
.galeria__item[hidden] { display: none; }
.galeria__more { margin-top: 18px; }
.galeria__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .galeria { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; color: var(--ink); }
.lb::backdrop { background: rgba(0, 0, 0, .92); }
.lb__in { display: grid; place-items: center; height: 100%; padding: 64px 12px 24px; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lb img { max-height: calc(100dvh - 140px); width: auto; border-radius: var(--r); }
.lb figcaption { font: 700 1.2rem/1.1 var(--display); font-style: italic; text-transform: uppercase; }
.lb__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(30,30,30,.9); color: var(--ink); cursor: pointer; }
.lb__btn:hover { background: var(--yellow); color: #000; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Productos ---------- */
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .prods { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1080px) { .prods { grid-template-columns: repeat(4, 1fr); } }
.prod { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; transition: border-color .15s ease; }
.prod:hover { border-color: #4a4a4a; }
.prod[hidden] { display: none; }
.prod__media { position: relative; display: block; aspect-ratio: 1; background: #111; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; background: #111 var(--tread); color: #3a3a3a; text-align: center; }
.ph .ic { width: 46%; height: auto; aspect-ratio: 1; }
.ph--ico { color: var(--yellow); }
.ph--ico .ic { width: 40%; opacity: .9; }
.ph span { font: 800 clamp(1.3rem, 5vw, 2rem)/1 var(--display); font-style: italic; color: #6b6b6b; }
.badge { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 4px; font: 800 .9rem/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .04em; background: var(--yellow); color: #0a0a0a; }
.badge--usada { background: #f4f2ed; }
.badge--precurado { background: var(--red); color: #fff; }
.prod__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.prod__medida { font: 800 clamp(1.35rem, 5.4vw, 1.7rem)/1 var(--display); font-style: italic; color: var(--yellow); }
.prod__name { font: 600 1rem/1.25 var(--body); text-transform: none; font-style: normal; letter-spacing: 0; }
.prod__name a { text-decoration: none; }
.prod__name a::after { content: ""; }
.prod__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prod__meta { color: var(--muted); font-size: .88rem; }
.prod__cta { margin-top: auto; padding-top: 10px; }
.prod__cta .btn { width: 100%; min-height: 44px; padding: 0 10px; font-size: 1.02rem; gap: 6px; }
.tienda-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Reseñas ---------- */
.score { display: flex; align-items: center; gap: 16px; }
.score__num { font: 800 4.5rem/1 var(--display); font-style: italic; color: var(--yellow); }
.score__txt { color: var(--muted); font-size: .98rem; }
.score__txt .stars .ic { width: 20px; height: 20px; }
.resenas { position: relative; }
.resenas__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.resenas__track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .resenas__track { grid-auto-columns: calc((100% - 24px) / 3); } }
.resena { position: relative; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.resena blockquote { margin: 0; font-size: 1.04rem; flex: 1; }
.resena blockquote::before { content: "“"; display: block; height: .5em; font: 800 3.4rem/1 var(--display); color: var(--yellow); }
.resena figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.resena figcaption strong { color: var(--ink); }
.resenas__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3a3a; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.resenas__ctrl .btn { margin-left: auto; }

/* ---------- Ubicación ---------- */
.sec--ubic { padding: 40px 0; }
.sec--ubic .sec__head { margin-bottom: 20px; gap: 8px; }
.sec--ubic .sec__head h2 { font-size: clamp(2.2rem, 7vw, 3rem); }
.quick + .sec--ubic { border-top: 0; }
.ubic { display: grid; gap: 18px; }
.ubic__info { display: grid; gap: 16px; }
.ubic__side { display: grid; gap: 10px; }
.dato__fill { flex: 1; }
.dato { display: flex; gap: 12px; align-items: flex-start; }
.dato .ic { width: 26px; height: 26px; color: var(--yellow); margin-top: 2px; }
.dato strong { display: block; font: 800 1.45rem/1.05 var(--display); font-style: italic; text-transform: uppercase; }
.dato span { color: var(--muted); }
.horarios { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 1rem; }
.horarios th, .horarios td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.horarios th { font-weight: 600; white-space: nowrap; }
.horarios td { color: #d6d3cc; text-align: right; font-variant-numeric: tabular-nums; }
.horarios tr.hoy th, .horarios tr.hoy td { color: var(--yellow); font-weight: 600; }
.horarios tr.hoy th::after { content: " · hoy"; font-weight: 400; font-size: .85em; }
.ubic__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ubic__btns .btn { min-height: 48px; padding: 0 12px; }
.mapa { position: relative; height: 170px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
@media (min-width: 900px) {
  .sec--ubic { padding: 56px 0; }
  .ubic { grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
  .mapa { height: 200px; }
}

/* ---------- Pie ---------- */
.pie { padding: 48px 0 110px; background: #070707; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.pie__grid { display: grid; gap: 26px; }
.pie__logo img { width: 170px; }
.pie h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--yellow); }
.pie li + li { margin-top: 6px; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }
@media (min-width: 800px) { .pie { padding-bottom: 48px; } .pie__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* WhatsApp flotante (solo celu) */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #06210f; text-decoration: none; font: 800 1.15rem/1 var(--display); font-style: italic; text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.fab .ic { width: 28px; height: 28px; }
.fab { transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
.fab[data-oculto] { transform: translateY(24px); opacity: 0; pointer-events: none; visibility: hidden; }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- Tienda ---------- */
.t-head { padding: 40px 0 8px; background: var(--bg) var(--tread); }
.t-head h1 { font-size: clamp(3rem, 13vw, 5.5rem); margin-top: 10px; }
.t-head p { margin-top: 12px; color: #d6d3cc; max-width: 36em; }
.aviso { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 12px; border: 1px dashed #4a4a4a; border-radius: var(--r); color: var(--muted); font-size: .9rem; }
.filtros { z-index: 30; padding: 12px 0; background: #0a0a0a; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .filtros { position: sticky; top: 72px; } }
.filtros .chips { margin: 0; }
.filtros__row { display: grid; gap: 10px; }
.buscar { position: relative; }
.buscar .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.buscar input { width: 100%; min-height: 48px; padding: 0 14px 0 44px; border-radius: var(--r); border: 1px solid #3a3a3a; background: var(--surface); color: var(--ink); font: 400 1rem var(--body); }
.buscar input::placeholder { color: #8b877f; }
.buscar input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 196, 20, .25); }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px; padding: 0 36px 0 14px; border-radius: var(--r); border: 1px solid #3a3a3a; background: var(--surface); color: var(--ink); font: 600 1rem var(--body); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
@media (min-width: 900px) { .filtros__row { grid-template-columns: auto 1fr 360px; align-items: center; } .selects { order: 3; } }
.resultado { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 14px; color: var(--muted); font-size: .95rem; }
.link-btn { border: 0; background: none; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; font-size: .95rem; }
.vacio { padding: 36px 20px; text-align: center; border: 1px dashed #3a3a3a; border-radius: var(--r); }
.vacio h2 { font-size: 2rem; }
.vacio p { color: var(--muted); margin: 8px 0 18px; }
.medida-ayuda { display: grid; gap: 18px; }
.mas-llantas { display: grid; gap: 24px; align-items: center; }
.mas-llantas img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
@media (min-width: 900px) { .mas-llantas { grid-template-columns: 1fr 1fr; gap: 48px; } }
.medida-ej { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.medida-ej div { display: grid; gap: 6px; justify-items: center; }
.medida-ej b { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 4px; background: var(--yellow); color: #0a0a0a; font: 800 1.6rem/1 var(--display); font-style: italic; }
.medida-ej span { font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.15; }
.medida-ej i { font: 800 1.6rem/52px var(--display); color: var(--muted); align-self: start; }
@media (min-width: 800px) { .medida-ayuda { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* Ficha de producto */
.crumbs { padding: 18px 0 0; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.crumbs a:hover { color: var(--yellow); }
.ficha { display: grid; gap: 24px; padding: 8px 0 56px; }
.ficha__media { position: relative; border-radius: var(--r); overflow: hidden; background: #111; aspect-ratio: 1; border: 1px solid var(--line); }
.ficha__media img { width: 100%; height: 100%; object-fit: cover; }
.ficha__galeria { min-width: 0; }
.minis { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 520px) { .minis { grid-template-columns: repeat(7, 1fr); } }
.mini { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 2px solid var(--line); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini[aria-current="true"] { border-color: var(--yellow); }
.ficha__media .badge { top: 12px; left: 12px; font-size: 1.05rem; padding: 7px 10px; }
.ficha h1 { font-size: clamp(2.6rem, 10vw, 4.2rem); color: var(--yellow); }
.ficha__nombre { margin-top: 8px; font: 600 1.25rem/1.3 var(--body); }
.ficha__det { margin-top: 14px; color: #d6d3cc; }
.specs { display: grid; grid-template-columns: auto 1fr; margin: 22px 0 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 20px; }
.specs dd { font-weight: 600; text-align: right; }
.ficha__ctas { display: grid; gap: 10px; margin-top: 24px; }
.ficha__nota { margin-top: 14px; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.ficha__nota .ic { color: var(--yellow); margin-top: 2px; }
@media (min-width: 900px) { .ficha { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-top: 16px; } .ficha__ctas { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Movimiento. Idea: "todo rueda con el scroll".
   El movimiento continuo (cubierta, franjas, cintas) sigue al scroll: nada se mueve solo.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Barra de progreso de lectura en el encabezado */
.top { transition: border-color .25s ease; }
.top[data-scrolled] { border-bottom-color: #2a2a2a; }
.progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Cubierta decorativa que gira con el scroll */
.rueda-deco { position: absolute; z-index: 0; pointer-events: none; color: var(--yellow); opacity: .1; width: 340px; right: -150px; bottom: 120px; }
.rueda-deco svg { width: 100%; height: auto; }
.hero > .wrap, .t-head > .wrap { position: relative; z-index: 1; }
.t-head { position: relative; overflow: hidden; }
.t-head .rueda-deco { width: 300px; right: -120px; top: -40px; bottom: auto; opacity: .09; }
@media (min-width: 900px) {
  .hero .rueda-deco { width: 620px; right: -170px; top: 50%; bottom: auto; margin-top: -310px; opacity: .07; }
  .t-head .rueda-deco { width: 460px; right: -80px; top: -110px; }
}

/* Hero: la foto y su bloque amarillo */
@media (min-width: 900px) {
  .hero__media img { box-shadow: none; position: relative; z-index: 1; }
  .hero__media::before { content: ""; position: absolute; inset: 18px 0 0 18px; border-radius: var(--r); background: var(--yellow); animation: bloque-in .9s var(--ease-out) .15s both; }
  .hero__tag { z-index: 2; animation: tag-in .6s var(--ease-out) .55s both; }
}
@keyframes bloque-in { from { transform: translate(-18px, -18px); } }
@keyframes tag-in { from { transform: translateX(-14px) scale(.96); opacity: 0; } }

/* Subrayado tipo marca de frenada bajo "rueda" (el texto siempre está visible) */
.rueda-txt { position: relative; }
.rueda-txt::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: .02em; height: .12em; background: var(--red); transform: skewX(-20deg) scaleX(1); transform-origin: 0 50%; z-index: -1; animation: frenada .8s var(--ease-out) .35s both; }
@keyframes frenada { from { transform: skewX(-20deg) scaleX(0); } }

/* Punto de "Abierto ahora" */
.estado[data-abierto="si"] .estado__dot { position: relative; }
.estado[data-abierto="si"] .estado__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc6a; animation: latido 2.2s var(--ease-out) infinite; }
@keyframes latido { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* Franja de peligro que avanza con el scroll */
.hazard { position: relative; overflow: hidden; background: none; }
.hazard::before { content: ""; position: absolute; top: 0; bottom: 0; left: -91px; right: -91px; background: var(--hazard); }

/* Cintas cruzadas de servicios */
.cintas { position: relative; height: 170px; overflow: hidden; overflow: clip; margin: -10px 0; z-index: 2; pointer-events: none; }
.cinta { outline: 1px solid transparent; backface-visibility: hidden; -webkit-backface-visibility: hidden; position: absolute; left: -10%; right: -10%; top: 50%; padding: 12px 0; white-space: nowrap; font: 800 clamp(1.6rem, 6vw, 2.6rem)/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.cinta--a { background: var(--yellow); color: #0a0a0a; transform: translateY(-95%) rotate(-3deg); }
.cinta--b { background: #161616; color: var(--ink); border-block: 1px solid #333; transform: translateY(-5%) rotate(2.5deg); z-index: -1; }
.cinta__track { display: inline-block; }
.cinta__track span { margin: 0 .5em; }
.cinta__track b { color: var(--red); font-weight: 800; }
.cinta--b .cinta__track b { color: var(--yellow); }
@media (min-width: 900px) { .cintas { height: 210px; } }

/* Aparición escalonada al scrollear (solo lo que está debajo del pliegue; lo agrega app.js) */
.rv { opacity: 0; transform: translateY(22px); }
.rv-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.kicker.rv::before { transform: skewX(-20deg) scaleX(0); transform-origin: 0 50%; }
.kicker.rv-in::before { transform: skewX(-20deg) scaleX(1); transition: transform .7s var(--ease-out) calc(var(--d, 0ms) + 150ms); }
.score .stars .ic { transition: transform .5s var(--ease-out), opacity .3s ease; transition-delay: calc(var(--i, 0) * 70ms + 300ms); }
.score[data-espera] .stars .ic { transform: scale(.4) rotate(-40deg); opacity: 0; }

/* Botones: brillo al pasar el mouse y presión */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn:active { transform: scale(.97); transition-duration: .1s; }

/* Botón flotante: un aro que avisa cuando aparece */
.fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
.fab[data-ping]::after { animation: ping 1.2s var(--ease-out) 2; }
@keyframes ping { to { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* Tarjetas, accesos y vehículos: reacción al mouse (solo con mouse real) */
.prod, .card, .vehiculo, .vehiculo .ic, .prod__media img { transition: transform .3s var(--ease-out), border-color .2s ease, background-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out); }
  .prod:hover { transform: translateY(-4px); border-color: #555; }
  .prod:hover .prod__media img { transform: scale(1.05); }
  .card:hover { transform: translateY(-3px); border-color: #444; }
  .vehiculo:hover { transform: translateY(-3px); border-color: var(--yellow); }
  .vehiculo:hover .ic { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
  .medidas li { transition: transform .2s var(--ease-out); }
  .medidas li:hover { transform: translateY(-2px) rotate(-2deg); }
}
.prod__media { overflow: hidden; }

/* Vista ampliada de fotos */
.lb[open] { animation: lb-in .3s var(--ease-out); }
.lb[open]::backdrop { animation: lb-fondo .3s ease; }
.lb[open] .lb__fig { animation: lb-foto .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-fondo { from { opacity: 0; } }
@keyframes lb-foto { from { transform: scale(.96); } }

/* Animaciones atadas al scroll con CSS (las mueve el compositor, igual que el scroll: sin tirones).
   Navegadores sin soporte: quedan quietas. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progreso { animation: progreso linear both; animation-timeline: scroll(root); }
    .rueda-deco { animation: rodar linear both; animation-timeline: scroll(root); animation-range: 0px 1600px; }
    .hazard { view-timeline: --franja block; }
    .hazard::before { animation: franja linear both; animation-timeline: --franja; }
    /* Línea de tiempo con nombre en el contenedor: así no depende de cuál sea el área de scroll más cercana */
    .cintas { view-timeline: --cintas block; }
    .cinta__track { animation: cinta-a linear both; animation-timeline: --cintas; animation-range: cover; }
    .cinta--b .cinta__track { animation-name: cinta-b; }
    @media (min-width: 900px) {
      .hero__media picture { animation: paralaje linear both; animation-timeline: scroll(root); animation-range: 0px 900px; }
    }
  }
}
@keyframes progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rodar { to { transform: rotate(300deg); } }
@keyframes franja { from { transform: translateX(0); } to { transform: translateX(-181px); } }
@keyframes cinta-a { from { transform: translateX(0); } to { transform: translateX(-30%); } }
@keyframes cinta-b { from { transform: translateX(-30%); } to { transform: translateX(0); } }
@keyframes paralaje { to { transform: translateY(54px); } }

@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; }
  .rueda-txt::after, .hero__media::before, .hero__tag, .fab[data-ping]::after, .estado__dot::after { animation: none !important; }
  .score[data-espera] .stars .ic { transform: none; }
}

/* ---------- Carrito de consultas ---------- */
.prod__cta { display: grid; gap: 8px; }
.btn-add.is-added { border-color: var(--yellow); color: var(--yellow); }
.ficha__ctas .btn-add { min-height: 52px; }
.cartfab { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--yellow); background: #0a0a0a; color: var(--yellow); cursor: pointer; font: 800 1.1rem/1 var(--display); font-style: italic; text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.cartfab[hidden], .cart[hidden] { display: none; }
.cartfab .ic { width: 24px; height: 24px; }
.cartfab b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: #0a0a0a; font-style: normal; }
.cart { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.66); }
.cart__box { width: min(100%, 520px); max-height: 88vh; overflow: auto; display: grid; gap: 14px; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.cart__head { display: flex; align-items: center; justify-content: space-between; }
.cart__head h2 { font-size: 2rem; }
.cart__sub { color: var(--muted); font-size: .95rem; }
.cart__list { display: grid; gap: 8px; }
.cart__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); }
.cart__list a { text-decoration: none; font-weight: 600; }
.cart__list small { display: block; color: var(--muted); }
@media (min-width: 700px) { .cart { align-items: center; } .cart__box { border-radius: 14px; } }

/* ---------- Carrusel de trabajos ---------- */
.gc { margin: 0 calc(50% - 50vw); }
.gc__top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 max(var(--gutter), calc(50vw - 590px)); margin-bottom: 6px; font: 800 1.1rem/1 var(--display); font-style: italic; text-transform: uppercase; }
.gc__cat { color: var(--yellow); letter-spacing: .04em; }
.gc__n { color: var(--muted); font-style: normal; font-weight: 600; }
.galeria { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 18px max(var(--gutter), calc(50% - 160px)) 26px; grid-template-columns: none; outline-offset: -3px; }
.galeria::-webkit-scrollbar { display: none; }
.galeria__item { flex: 0 0 min(68vw, 320px); transform: scale(.88); opacity: .45; filter: saturate(.7); cursor: pointer; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .45s ease, filter .45s ease, box-shadow .45s ease; }
.galeria__item.is-activo { transform: scale(1); opacity: 1; filter: none; cursor: zoom-in; box-shadow: 0 0 0 2px var(--yellow), 0 18px 44px rgba(0, 0, 0, .55); }
.galeria__item.is-activo .galeria__cap { padding-top: 40px; font-size: 1.15rem; }
.galeria__item[hidden] { display: none !important; }
@media (min-width: 900px) { .galeria__item { flex-basis: 340px; } .galeria { padding-inline: max(var(--gutter), calc(50% - 170px)); } }
.gc__ctrl { display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); max-width: 640px; margin: 0 auto; }
.gc__ctrl .icon-btn { flex: none; }
.gc__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gc__bar i { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.chip.is-actual { border-color: var(--yellow); color: var(--yellow); }
.icon-btn .ic { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .galeria__item { transition: none; } }

/* Tienda destacada en el menú de escritorio (en el celu ya se ve como botón) y foto de viales centrada */
.viales__foto { margin-top: 20px; max-width: 380px; }
@media (min-width: 700px) { .viales__foto { margin-inline: auto; } }
@media (min-width: 760px) {
  .top__actions .top__link--tienda { display: inline-flex; border-color: var(--yellow); color: var(--yellow); }
  .top__actions .top__link--tienda:hover { background: var(--yellow); color: #0a0a0a; }
  .top__nav .top__nav-tienda { display: none; }
}
