/* =========================================================
   GoldCar's Detail Garage — estilos
   "El taller de noche": negro carbón y grafito del logo, letras
   blancas y un solo dorado, como el destello del logo, usado con
   medida en botones, chips activos y foco.
   Elemento firma: el marco fino dorado con destellos en las
   esquinas (hero, comparador antes/después y pasos).
   ========================================================= */

:root {
  /* Negros (medidos del logo: fondo #000000, letras #F8F8F8, borde #989898) */
  --fondo: #0A0A0A;        /* negro carbón: fondo general */
  --fondo-2: #050505;      /* fondo profundo: pie y detrás de las hojas */
  --superficie: #141414;   /* secciones alternas y tarjetas */
  --elevada: #1F1F1F;      /* chips, botones de icono, superficies sobre superficie */
  --marca: #0A0A0A;        /* texto oscuro sobre dorado */

  /* Luz */
  --oro: #D4A537;          /* dorado: chips activos, botón principal, destellos, foco */
  --oro-tinte: #F3E3B6;
  --whatsapp: #25D366;     /* SOLO botones de cotizar por WhatsApp, con texto oscuro */

  /* Texto */
  --texto: #F8F8F8;
  --texto-2: #B4B4B4;      /* gris acero aclarado para pasar AA sobre grafito */
  --tinta: #0A0A0A;        /* texto oscuro sobre dorado, blanco y WhatsApp */
  --linea: rgba(248, 248, 248, .12);
  --linea-2: rgba(248, 248, 248, .22);

  /* Tipografía */
  --f-titulo: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.6rem, 1.9rem + 3.6vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --fs-small: .875rem;
  --fs-micro: .75rem;

  /* Espacio (múltiplos de 4/8) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --gutter: 16px;

  /* Forma: hojas 28, tarjetas 24, imágenes 16, botones y chips 999 */
  --r-img: 16px;
  --r-tarjeta: 24px;
  --r-hoja: 28px;
  --r-pill: 999px;

  /* Sombras en capas, del negro de fondo */
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .28);
  --sombra-2: 0 2px 4px rgba(0, 0, 0, .32), 0 12px 28px -6px rgba(0, 0, 0, .5);
  --sombra-3: 0 4px 8px rgba(0, 0, 0, .32), 0 22px 44px -10px rgba(0, 0, 0, .6);
  --borde-luz: inset 0 1px 0 rgba(248, 248, 248, .07);

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.2, .8, .2, 1);
  --ease-resorte: cubic-bezier(.32, 1.25, .5, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  /* Medidas de la app */
  --alto-barra: 64px;
  --alto-tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

@media (min-width: 400px) { :root { --gutter: 20px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --alto-barra: 76px; --alto-tabbar: 0px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-barra) + 16px); background: var(--fondo); }
html.con-hoja, html.con-hoja body { background: var(--fondo-2); }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--f-titulo); font-stretch: 85%; font-weight: 700; letter-spacing: -.008em; word-spacing: .06em; line-height: 1.04; margin: 0; color: var(--texto); text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
a { color: var(--oro); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

/* Foco visible sobre fondos oscuros: anillo amarillo */
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.tarjeta:focus-visible { border-radius: var(--r-tarjeta); }
.btn:focus-visible, .chip:focus-visible, .pildora:focus-visible { border-radius: var(--r-pill); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--tinta); font-weight: 600; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; transition: transform .2s var(--ease-out); }
.saltar:focus { transform: translateY(72px); }

.envase { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* La página vive dentro de .app: al abrir una hoja se atenúa */
.app {
  overflow-x: clip;
  padding-bottom: calc(var(--alto-tabbar) + var(--safe-b));
  transition: opacity .3s ease;
}
html.con-hoja .app { opacity: .55; }

/* ---------- Cinta demo ---------- */
.cinta-demo {
  display: flex; justify-content: center; align-items: center;
  background: var(--oro-tinte); color: var(--tinta);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .01em;
  padding: 6px var(--gutter);
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--oro); --btn-fg: var(--tinta);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 2px 0 rgba(0, 0, 0, .45), 0 12px 24px -12px rgba(0, 0, 0, .8);
  transition: transform .14s var(--ease-press), background-color .2s, border-color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn svg { flex: none; }
.btn:active { transform: scale(.97); }
.btn--wa { --btn-bg: var(--whatsapp); --btn-fg: var(--tinta); }
.btn--sec {
  --btn-bg: rgba(248, 248, 248, .04); --btn-fg: var(--texto);
  border-color: var(--linea-2);
  box-shadow: var(--borde-luz);
}
.btn--fantasma { --btn-bg: transparent; --btn-fg: var(--texto-2); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--bloque { width: 100%; }
@media (hover: hover) {
  .btn--pri:hover { --btn-bg: #E2B651; }
  .btn--wa:hover { --btn-bg: #3BE07A; }
  .btn--sec:hover { --btn-bg: rgba(248, 248, 248, .09); border-color: rgba(212, 165, 55, .5); }
  .btn--fantasma:hover { --btn-bg: rgba(248, 248, 248, .06); --btn-fg: var(--texto); }
}

.btn-icono {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--texto);
  transition: transform .12s var(--ease-press), background-color .2s;
}
.btn-icono:active { transform: scale(.92); }
.btn-icono:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .btn-icono:hover:not(:disabled) { background: rgba(248, 248, 248, .08); } }

/* Botón "Mi cotización" del header */
.btn-cotizacion {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border: 1px solid var(--linea-2); border-radius: var(--r-pill);
  background: rgba(248, 248, 248, .04); color: var(--texto); font-weight: 600; font-size: .9375rem;
  transition: transform .14s var(--ease-press), background-color .2s, border-color .2s;
}
.btn-cotizacion:active { transform: scale(.96); }
.btn-cotizacion__txt { display: none; }
@media (min-width: 520px) { .btn-cotizacion { padding: 0 18px 0 14px; } .btn-cotizacion__txt { display: inline; } }
@media (hover: hover) { .btn-cotizacion:hover { border-color: rgba(212, 165, 55, .55); background: rgba(248, 248, 248, .08); } }

.contador {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--oro); color: var(--tinta);
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--fondo);
}
.contador.salta { animation: salta .42s var(--ease-resorte); }
@keyframes salta { 0% { transform: scale(.5); } 100% { transform: none; } }

/* ---------- Chips ---------- */
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--linea); background: var(--elevada); color: var(--texto);
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
  box-shadow: var(--borde-luz), 0 1px 0 rgba(0, 0, 0, .35);
  transition: transform .14s var(--ease-press), background-color .2s, color .2s, border-color .2s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: var(--tinta); font-weight: 600; }
@media (hover: hover) { .chip:hover:not([aria-pressed="true"]) { border-color: rgba(212, 165, 55, .55); } }

.insignia {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--oro-tinte); color: var(--tinta);
  font-size: var(--fs-micro); font-weight: 600; line-height: 1.4;
}

.titulo-sm { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
.nota { font-size: var(--fs-small); color: var(--texto-2); }

/* ---------- Barra superior (vidrio oscuro al hacer scroll) ---------- */
.barra { position: sticky; top: 0; z-index: 40; height: var(--alto-barra); }
.barra::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, .78);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--linea), 0 12px 28px -18px rgba(0, 0, 0, .8);
  opacity: 0; transition: opacity .24s ease;
}
.barra.vidrio::before { opacity: 1; }
.barra__in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.marca { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--texto); margin-right: auto; }
.marca__logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.marca__texto { font-family: var(--f-titulo); font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.barra__nav { display: none; }
@media (min-width: 960px) {
  .marca__logo { width: 52px; height: 52px; }
  .barra__nav { display: flex; gap: var(--s-8); margin-right: var(--s-4); }
  .barra__nav a { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 0; position: relative; }
  .barra__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
  .barra__nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--alto-barra) * -1); padding-top: var(--alto-barra);
  background:
    radial-gradient(120% 70% at 80% 75%, rgba(212, 165, 55, .10), transparent 60%),
    linear-gradient(180deg, #161616 0%, var(--fondo) 100%);
}
.hero { position: relative; display: grid; gap: var(--s-10); padding-top: var(--s-8); padding-bottom: var(--s-12); }
.hero__titulo { font-size: var(--fs-hero); font-weight: 800; line-height: 1; letter-spacing: -.018em; max-width: 12ch; }
.hero__eslogan { margin-bottom: var(--s-3); font-family: var(--f-titulo); font-stretch: 85%; font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); color: var(--oro); line-height: 1.2; letter-spacing: -.01em; }
.hero__entradilla { margin-top: var(--s-4); font-size: var(--fs-lead); color: var(--texto-2); max-width: 46ch; }
.hero__acciones { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__acciones .btn { flex: 1 1 240px; }
.hero__datos { margin-top: var(--s-8); display: grid; gap: var(--s-3); font-size: .9375rem; color: var(--texto); }
.hero__datos li { display: flex; align-items: center; gap: 12px; }
.hero__datos svg { color: var(--oro); flex: none; }

/* Escena: la ilustración enmarcada por la línea de ronda (firma 1) */
.hero__escena { position: relative; width: min(78vw, 340px); justify-self: center; padding: 14px; }
.hero__marco {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-tarjeta); overflow: hidden;
  background: var(--superficie);
  box-shadow: 0 0 0 1px rgba(248, 248, 248, .1), var(--sombra-3);
}
.hero__marco img { width: 100%; height: 100%; object-fit: cover; }
.hero__escena::before {
  /* Ronda: un recorrido fino alrededor de la escena */
  content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(212, 165, 55, .7); border-radius: calc(var(--r-tarjeta) + 14px);
  pointer-events: none;
}
.hero__escena::after {
  /* Puntos de control de la ronda */
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 2px; top: -4px; left: 28%;
  background: var(--oro); box-shadow: 0 0 0 3px var(--fondo);
  pointer-events: none;
}
.ronda-punto { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 1px; background: var(--oro); box-shadow: 0 0 0 3px var(--fondo); transform: rotate(45deg); }

@media (min-width: 720px) and (max-width: 959px) {
  .hero { grid-template-columns: 1.2fr .8fr; align-items: center; gap: var(--s-8); }
  .hero__escena { width: 100%; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.2fr .8fr; align-items: center; gap: var(--s-16); min-height: calc(88vh - var(--alto-barra)); padding-top: var(--s-10); padding-bottom: var(--s-16); }
  .hero__acciones .btn { flex: 0 0 auto; }
  .hero__escena { width: 100%; max-width: 420px; justify-self: end; padding: 18px; }
  .hero__escena::before { border-radius: calc(var(--r-tarjeta) + 18px); }
}

/* Entrada orquestada del hero: solo se mueve, todo se ve desde el primer cuadro (no retrasa el LCP) */
.js .hero__texto > * { animation: subir-visible .8s var(--ease-out) both; }
.js .hero__texto > :nth-child(2) { animation-delay: .07s; }
.js .hero__texto > :nth-child(3) { animation-delay: .14s; }
.js .hero__texto > :nth-child(4) { animation-delay: .21s; }
.js .hero__texto > :nth-child(5) { animation-delay: .28s; }
.js .hero__escena { animation: subir-visible 1s var(--ease-out) .1s both; }
@keyframes subir-visible { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--s-16); }
.seccion--sup { background: var(--superficie); }
.seccion__cabeza { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }
.seccion__cabeza p { color: var(--texto-2); font-size: var(--fs-lead); max-width: 52ch; }
@media (min-width: 960px) { .seccion { padding-block: var(--s-24); } }

/* Rieles horizontales */
.riel, .carrusel, .filtros__riel {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.riel::-webkit-scrollbar, .carrusel::-webkit-scrollbar, .filtros__riel::-webkit-scrollbar { display: none; }
.riel, .filtros__riel { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); }

/* Necesidad */
.ocasiones { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.ocasiones .titulo-sm { margin-bottom: var(--s-4); }
.riel {
  gap: var(--s-2); max-width: 1200px; margin-inline: auto;
  padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity;
}
.riel .chip { min-height: 48px; padding: 0 20px; font-size: 1rem; scroll-snap-align: start; }

/* Carrusel de servicios principales */
.destacados { padding-top: var(--s-12); padding-bottom: var(--s-8); }
.destacados__cabeza { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); }
.destacados__flechas { display: none; gap: var(--s-2); }
.destacados__flechas .btn-icono { border: 1px solid var(--linea-2); }
.destacados__flechas .flecha-izq svg { transform: rotate(180deg); }
@media (min-width: 720px) and (hover: hover) { .destacados__flechas { display: flex; } }
.carrusel {
  gap: var(--s-3); max-width: 1200px; margin-inline: auto;
  padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
}
.carrusel > .tarjeta { flex: 0 0 min(64vw, 260px); scroll-snap-align: start; }
@media (min-width: 1040px) { .carrusel > .tarjeta { flex-basis: calc((100% - 3 * var(--s-3)) / 4); } }

/* ---------- Tarjeta de servicio ---------- */
.tarjeta {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; color: inherit;
}
.tarjeta__in {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2); height: 100%;
  padding: 8px 8px 16px; border-radius: var(--r-tarjeta);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
  transition: transform .14s var(--ease-press);
}
.tarjeta:active .tarjeta__in { transform: scale(.97); }
@media (hover: hover) {
  .tarjeta__in { transition: transform .4s var(--ease-out); }
  .tarjeta:hover .tarjeta__in { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(212, 165, 55, .35), var(--sombra-3); }
}
.tarjeta__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--elevada);
}
/* Contorno sutil sobre la imagen para separarla de la tarjeta */
.tarjeta__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(248, 248, 248, .08); pointer-events: none; }
.tarjeta__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) { .tarjeta:hover .tarjeta__media img { transform: scale(1.04); } }
.tarjeta__mas {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--oro); color: var(--tinta); box-shadow: var(--sombra-1);
  transition: transform .4s var(--ease-resorte);
}
@media (hover: hover) { .tarjeta:hover .tarjeta__mas { transform: rotate(90deg); } }
.tarjeta__nombre { display: block; padding: 6px 8px 0; font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--texto); }
.tarjeta__precio { display: block; padding: 0 8px; margin-top: auto; font-size: var(--fs-small); font-weight: 500; color: var(--texto-2); }

/* ---------- Catálogo de servicios ---------- */
.catalogo { padding-top: var(--s-12); }
.filtros {
  position: sticky; top: var(--alto-barra); z-index: 30;
  margin-bottom: var(--s-6);
  background: rgba(10, 10, 10, .97);
}
.filtros::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linea); opacity: 0; transition: opacity .2s; }
.filtros.pegado::after { opacity: 1; }
.filtros__riel { align-items: center; gap: var(--s-2); padding-block: 12px; }
.filtros__grupo { display: flex; gap: var(--s-2); flex: none; }

.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1040px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }

.aviso-ocasion {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-bottom: var(--s-4); padding: 6px 6px 6px 18px; border-radius: var(--r-pill); font-size: .9375rem; line-height: 1.3;
  background: var(--oro-tinte); color: var(--tinta); font-weight: 600;
}
.aviso-ocasion .btn--fantasma { --btn-fg: var(--tinta); flex: none; }
.vacio { display: grid; justify-items: start; gap: var(--s-4); padding: var(--s-10) 0; color: var(--texto-2); }
.vacio p { font-family: var(--f-titulo); font-stretch: 85%; font-weight: 700; font-size: 1.5rem; color: var(--texto); }

/* ---------- Cómo contratar: la ronda une los pasos (firma 2) ---------- */
.pasos__lista { position: relative; display: grid; gap: var(--s-4); }
.pasos__lista::before {
  content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 1.5px;
  background: rgba(212, 165, 55, .55);
}
.paso {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-4); row-gap: var(--s-1); align-content: start;
  padding: var(--s-6); border-radius: var(--r-tarjeta);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
}
.paso__icono { grid-row: span 2; width: 48px; height: 48px; color: var(--oro); position: relative; }
.paso h3 { font-size: 1.35rem; }
.paso p { color: var(--texto-2); }
@media (min-width: 840px) {
  .pasos__lista { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .pasos__lista::before { left: 56px; right: 56px; top: 56px; bottom: auto; width: auto; height: 1.5px; }
  .paso { grid-template-columns: 1fr; padding: var(--s-8); row-gap: var(--s-3); }
  .paso__icono { grid-row: auto; width: 48px; height: 48px; margin-bottom: var(--s-2); }
}
/* Punto de control de la ronda en cada paso */
.paso::before {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--oro);
  left: 43px; top: -4px; box-shadow: 0 0 0 3px var(--fondo);
}
.paso:first-child::before { display: none; }
@media (min-width: 840px) { .paso::before { left: -4px; top: 52px; } .paso:first-child::before { display: none; } }

/* ---------- Cobertura y atención ---------- */
.cobertura__cabeza { align-items: end; }
.datos { display: grid; gap: var(--s-3); }
.dato {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: var(--s-4); row-gap: 2px; align-items: start; align-content: start;
  padding: var(--s-5); border-radius: var(--r-tarjeta); background: var(--elevada);
  box-shadow: inset 0 0 0 1px var(--linea), var(--borde-luz);
}
.dato svg { grid-row: span 2; color: var(--oro); margin-top: 2px; }
.dato dt { font-weight: 600; color: var(--texto); }
.dato dd { color: var(--texto-2); }
@media (min-width: 720px) { .datos { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 960px) { .cobertura__cabeza { grid-template-columns: 1fr auto; } }

/* Etiqueta "Oficina abierta / cerrada" (punto fijo, sin pulso) */
.estado-oficina { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1.4; justify-self: start; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(248, 248, 248, .05); box-shadow: inset 0 0 0 1px var(--linea); font-size: var(--fs-small); font-weight: 500; color: var(--texto); }
.estado-oficina__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-2); flex: none; transform: translateY(-1px); }
.estado-oficina[data-abierta="true"] .estado-oficina__punto { background: var(--whatsapp); }
.estado-oficina[data-abierta="false"] .estado-oficina__punto { background: var(--oro); }
.estado-oficina--sm { padding: 6px 12px; font-size: var(--fs-micro); }

/* ---------- Quiénes somos ---------- */
.historia { padding-block: var(--s-20); background: linear-gradient(180deg, var(--fondo), #161616); }
.historia__in { display: grid; gap: var(--s-10); justify-items: center; }
.historia__escena { display: grid; place-items: center; }
.historia__logo { width: min(60vw, 240px); height: auto; aspect-ratio: 1; }
.historia__texto { max-width: 52ch; display: grid; gap: var(--s-5); }
.historia__texto > p { font-size: var(--fs-lead); line-height: 1.65; color: var(--texto-2); }
.historia__cita { margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--linea); }
.historia__cita p { font-family: var(--f-titulo); font-stretch: 85%; font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--oro); }
@media (min-width: 900px) {
  .historia__in { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); justify-items: start; align-items: center; column-gap: var(--s-20); }
  .historia__escena { justify-self: center; }
  .historia__logo { width: 300px; }
}

/* ---------- Antes y después: comparador con el marco dorado (firma 3) ---------- */
.trabajos__in { display: grid; gap: var(--s-8); }
.trabajos__ig { justify-self: start; margin-top: var(--s-2); }
.comparar { --corte: 50%; position: relative; margin: 0; width: min(100%, 420px); justify-self: center; padding: 14px; display: grid; gap: var(--s-3); }
.comparar::before { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 5; height: auto; border: 1.5px solid rgba(212, 165, 55, .7); border-radius: calc(var(--r-tarjeta) + 14px); pointer-events: none; }
.comparar .ronda-punto--b { right: -4px; top: 40%; }
.comparar__marco { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-tarjeta); overflow: hidden; background: var(--superficie); box-shadow: 0 0 0 1px rgba(248, 248, 248, .1), var(--sombra-3); }
.comparar__marco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparar__despues { clip-path: inset(0 0 0 var(--corte)); }
.comparar__linea { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 2px; margin-left: -1px; background: var(--oro); pointer-events: none; }
.comparar__linea::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 4px rgba(10, 10, 10, .6); }
.comparar__etq { position: absolute; top: 14px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(10, 10, 10, .75); font-size: var(--fs-small); font-weight: 600; color: var(--texto); pointer-events: none; }
.comparar__etq--a { left: 14px; }
.comparar__etq--d { right: 14px; color: var(--oro); }
.comparar__rango { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparar__rango:focus-visible + * , .comparar__marco:focus-within { outline: 3px solid var(--oro); outline-offset: 3px; }
.comparar figcaption { padding-inline: 4px; }
@media (min-width: 960px) {
  .trabajos__in { grid-template-columns: 1fr 1.1fr; gap: var(--s-16); align-items: center; }
  .trabajos__in .seccion__cabeza { margin-bottom: 0; }
}

/* ---------- FAQ ---------- */
.acordeon { border-top: 1px solid var(--linea); }
.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--texto);
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--elevada) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23FFC80F' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .3s var(--ease-out);
}
.acordeon details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .acordeon summary:hover { color: var(--oro-tinte); } }
.acordeon .respuesta { padding: 0 var(--s-12) var(--s-5) 0; color: var(--texto-2); max-width: 60ch; }
.js .acordeon details[open] .respuesta { animation: abrir .35s var(--ease-out); }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1040px) {
  .faq__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-16); align-items: start; }
}

/* ---------- Contacto ---------- */
.contacto__lista { display: grid; gap: var(--s-3); }
.contacto__item > a, .contacto__item > div {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 76px; padding: var(--s-4) var(--s-5); border-radius: var(--r-tarjeta);
  background: var(--elevada); color: var(--texto); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--linea), var(--borde-luz);
  transition: transform .14s var(--ease-press);
}
.contacto__item > a:active { transform: scale(.98); }
@media (hover: hover) { .contacto__item > a:hover { box-shadow: inset 0 0 0 1px rgba(212, 165, 55, .45), var(--sombra-2); } }
.contacto__item svg { flex: none; color: var(--oro); }
.contacto__item strong { display: block; font-weight: 600; color: var(--texto); }
.contacto__item span span { color: var(--texto-2); font-size: .9375rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contacto__item--wa > a { background: var(--whatsapp); color: var(--tinta); box-shadow: 0 2px 0 rgba(0, 0, 0, .45), var(--sombra-2); }
.contacto__item--wa > a strong, .contacto__item--wa > a span span, .contacto__item--wa svg { color: var(--tinta); }
@media (hover: hover) { .contacto__item--wa > a:hover { background: #3BE07A; box-shadow: 0 2px 0 rgba(0, 0, 0, .45), var(--sombra-3); } }
@media (min-width: 720px) { .contacto__lista { grid-template-columns: repeat(2, 1fr); } .contacto__item--wa { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .contacto__lista { grid-template-columns: 2fr 1fr 1fr; } .contacto__item--wa { grid-column: auto; } }

/* Oficina */
.sucursales { margin-top: var(--s-12); }
.sucursales .titulo-sm { margin-bottom: var(--s-4); }
.sucursales__lista { display: grid; gap: var(--s-3); }
.sucursal {
  display: grid; grid-template-columns: 108px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-4); border-radius: var(--r-tarjeta);
  background: var(--elevada); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
}
.sucursal__foto { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--superficie); }
.sucursal__foto img { width: 100%; height: 100%; object-fit: cover; }
.sucursal__info { display: grid; gap: var(--s-2); justify-items: start; }
.sucursal__nombre { font-size: 1.5rem; margin: 0; }
.sucursal__dir { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--texto-2); font-size: .9375rem; }
.sucursal__dir svg { flex: none; margin-top: 3px; color: var(--oro); }
.sucursal__horario { display: grid; gap: 2px; color: var(--texto); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.sucursal .btn { margin-top: var(--s-2); }
.sucursal--sin-foto { grid-template-columns: 1fr; padding: var(--s-6); }
@media (min-width: 720px) { .sucursales__lista { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

/* ---------- Pie ---------- */
.pie { background: var(--fondo-2); border-top: 1px solid var(--linea); color: var(--texto-2); padding: var(--s-16) 0 calc(var(--s-16) + 72px); }
.pie__in { display: grid; gap: var(--s-8); }
.pie__marca { display: flex; align-items: center; gap: var(--s-5); }
.pie__marca img { flex: none; width: 96px; height: 96px; }
.pie__eslogan { font-family: var(--f-titulo); font-stretch: 85%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: var(--texto); letter-spacing: -.01em; max-width: 14ch; }
.pie__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }
.pie__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto); text-decoration: none; font-weight: 500; }
@media (hover: hover) { .pie__nav a:hover { text-decoration: underline; text-decoration-color: var(--oro); } }
.pie__legal { font-size: var(--fs-small); color: var(--texto-2); }
@media (min-width: 960px) {
  .pie { padding-bottom: var(--s-16); }
  .pie__in { grid-template-columns: 1fr auto; align-items: center; }
  .pie__legal { grid-column: 1 / -1; padding-top: var(--s-6); border-top: 1px solid var(--linea); }
}

/* ---------- Dock flotante ---------- */
.dock {
  position: fixed; z-index: 45; left: 0; right: 0;
  bottom: calc(var(--alto-tabbar) + var(--safe-b) + 12px);
  display: flex; align-items: center; gap: var(--s-3);
  padding-inline: var(--gutter); pointer-events: none;
  max-width: 1200px; margin-inline: auto;
}
.dock > * { pointer-events: auto; }
.wa-flotante {
  margin-left: auto; flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: var(--tinta);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), var(--sombra-2);
  transition: transform .14s var(--ease-press);
}
.wa-flotante:active { transform: scale(.92); }
.pildora {
  flex: 1 1 auto; max-width: 420px; min-height: 56px;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 6px 8px 6px 6px; border: 0; border-radius: var(--r-pill);
  background: var(--elevada); color: var(--texto); text-align: left;
  box-shadow: inset 0 0 0 1px rgba(248, 248, 248, .16), var(--sombra-3);
  animation: pildora-entra .5s var(--ease-resorte);
  transition: transform .14s var(--ease-press);
}
.pildora:active { transform: scale(.97); }
.pildora.salta { animation: pildora-salta .42s var(--ease-resorte); }
@keyframes pildora-entra { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pildora-salta { 0% { transform: scale(.94); } 100% { transform: none; } }
.pildora__icono { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(212, 165, 55, .14); color: var(--oro); }
.pildora__texto { flex: 1 1 auto; display: grid; line-height: 1.25; min-width: 0; }
.pildora__texto strong, .pildora__texto span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pildora__texto strong { font-weight: 600; font-size: .9375rem; }
.pildora__texto span { font-size: var(--fs-small); color: var(--texto-2); font-variant-numeric: tabular-nums; }
.pildora__accion { flex: none; margin-left: auto; padding: 10px 16px; border-radius: var(--r-pill); background: var(--oro); color: var(--tinta); font-weight: 600; font-size: .875rem; white-space: nowrap; }
@media (max-width: 379px) { .pildora__icono { display: none; } .pildora { padding-left: 18px; } }
@media (min-width: 960px) { .dock { justify-content: flex-end; } .pildora { flex: 0 1 380px; margin-left: auto; } .pildora + .wa-flotante { margin-left: 0; } }

/* ---------- Barra inferior tipo app ---------- */
.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: calc(var(--alto-tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 10, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 -1px 0 var(--linea), 0 -12px 28px -16px rgba(0, 0, 0, .8);
}
.tabbar a, .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--texto-2); text-decoration: none;
  font-size: var(--fs-micro); font-weight: 500;
  transition: color .2s, transform .14s var(--ease-press);
  -webkit-user-select: none; user-select: none;
}
.tabbar svg { transition: transform .3s var(--ease-out); }
.tabbar a:active, .tabbar button:active { transform: scale(.92); }
.tabbar [aria-current="true"] { color: var(--texto); font-weight: 600; }
.tabbar [aria-current="true"] svg { color: var(--oro); }
.tabbar [aria-current="true"]::before { content: ""; position: absolute; top: 0; width: 24px; height: 2px; border-radius: 0 0 2px 2px; background: var(--oro); }
.tabbar :focus-visible { outline-offset: -4px; }
.tabbar__bolsa { position: relative; }
.tabbar__bolsa .contador { top: -6px; right: -12px; }
@media (min-width: 960px) { .tabbar { display: none; } }

/* ---------- Hojas inferiores ---------- */
.hoja {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden;
}
.hoja::backdrop { background: transparent; }
.hoja::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .3s ease;
}
.hoja.abierta::before { opacity: 1; }
.hoja__panel {
  --x: 0;
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 24px);
  background: var(--superficie); color: var(--texto);
  border-radius: var(--r-hoja) var(--r-hoja) 0 0;
  box-shadow: inset 0 1px 0 rgba(248, 248, 248, .12), var(--sombra-3);
  transform: translate(var(--x), 100%);
  transition: transform .28s var(--ease-in);
  will-change: transform;
}
@supports (height: 100dvh) { .hoja__panel { max-height: calc(100dvh - 24px); } }
.hoja.abierta .hoja__panel { transform: translate(var(--x), 0); transition: transform .55s var(--ease-resorte); }
.hoja.arrastrando .hoja__panel { transition: none; }
.hoja__asa { position: relative; flex: none; display: grid; place-items: center; height: 28px; cursor: grab; touch-action: none; }
.hoja__asa span { width: 40px; height: 5px; border-radius: 3px; background: rgba(248, 248, 248, .3); }
.hoja__cerrar { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--elevada); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1); }
.hoja__cuerpo { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) var(--s-6); }
.hoja__pie {
  position: relative; flex: none; display: grid; gap: var(--s-2); justify-items: center;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + var(--safe-b));
  background: var(--superficie); box-shadow: 0 -1px 0 var(--linea);
}
.hoja__pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2) var(--s-3); }
/* El contenido de la hoja entra escalonado tras el resorte */
.js .hoja.abierta .hp__info > *, .js .hoja.abierta .pedido__lista > *, .js .hoja.abierta .hoja__pie > * { animation: entra-hoja .5s var(--ease-out) backwards; }
.js .hoja.abierta .hp__info > :nth-child(2), .js .hoja.abierta .pedido__lista > :nth-child(2) { animation-delay: .05s; }
.js .hoja.abierta .hp__info > :nth-child(3), .js .hoja.abierta .pedido__lista > :nth-child(3) { animation-delay: .1s; }
.js .hoja.abierta .hp__info > :nth-child(n+4), .js .hoja.abierta .pedido__lista > :nth-child(n+4) { animation-delay: .15s; }
.js .hoja.abierta .hoja__pie > * { animation-delay: .12s; }
@keyframes entra-hoja { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 720px) {
  .hoja__panel { --x: -50%; left: 50%; right: auto; width: min(640px, calc(100vw - 48px)); bottom: 24px; border-radius: var(--r-hoja); max-height: calc(100vh - 48px); transform: translate(var(--x), calc(100% + 24px)); }
  .hoja__pie { border-radius: 0 0 var(--r-hoja) var(--r-hoja); }
}

/* Detalle del servicio */
.hp__media { padding-right: 52px; }
.hp__media img { width: 100%; max-width: 220px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-img); background: var(--elevada); box-shadow: 0 0 0 1px rgba(248, 248, 248, .08), var(--sombra-2); }
.hp__info { display: grid; gap: var(--s-3); padding-top: var(--s-5); }
.hp__nombre { font-size: clamp(1.7rem, 1.5rem + 1vw, 2.2rem); padding-right: 8px; }
.hp__precio { font-size: var(--fs-small); font-weight: 600; color: var(--oro); }
.hp__desc { color: var(--texto-2); }
@media (max-width: 719px) {
  .hp__media { display: flex; gap: var(--s-4); align-items: end; padding-right: 0; }
  .hp__media img { width: 38%; max-width: 160px; }
}
@media (min-width: 720px) {
  .hoja__cuerpo:has(.hp__media) { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); padding-top: var(--s-2); }
  .hp__media { padding: 0; }
  .hp__info { padding-top: 0; align-content: start; padding-right: 40px; }
}

/* Campos */
.campo { display: grid; gap: 6px; margin-top: var(--s-2); }
.campo label, .campo legend, .campo__etiqueta { font-weight: 600; font-size: .9375rem; color: var(--texto); }
.campo legend { margin-bottom: 8px; padding: 0; }
.opcional { font-weight: 400; color: var(--texto-2); }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--linea-2); border-radius: var(--r-img);
  background: var(--fondo); font-size: 16px; color: var(--texto);
  transition: border-color .2s;
}
.campo select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--fondo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%23FFC80F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
.campo textarea { resize: vertical; min-height: 92px; }
.campo input::placeholder, .campo textarea::placeholder { color: #8A8A8A; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(212, 165, 55, .25); }
.campo input::-webkit-calendar-picker-indicator { filter: invert(.9); }
.campo__ayuda { font-size: var(--fs-small); color: var(--oro-tinte); padding: 10px 14px; border-radius: var(--r-img); background: rgba(212, 165, 55, .1); }
.campo__nota, .campo__cuenta { font-size: var(--fs-small); color: var(--texto-2); }
.campo__nota { margin-top: 8px; }
.campo__cuenta { text-align: right; font-variant-numeric: tabular-nums; }
.campo--fila { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

.cantidad { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--fondo); box-shadow: inset 0 0 0 1px var(--linea); }
.cantidad__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--elevada); color: var(--texto); box-shadow: var(--borde-luz), 0 1px 0 rgba(0, 0, 0, .35); transition: transform .14s var(--ease-press); }
.cantidad__btn:active { transform: scale(.9); }
.cantidad__btn:disabled { opacity: .4; cursor: default; }
.cantidad output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cantidad--sm .cantidad__btn { width: 44px; height: 44px; }

.opciones__lista { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Mi cotización */
.pedido__titulo { font-size: 2.1rem; margin: var(--s-1) 0 var(--s-5); padding-right: 52px; }
.pedido__lista { display: grid; gap: var(--s-3); }
.item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-3);
  padding: 8px; border-radius: 20px; background: var(--elevada); box-shadow: inset 0 0 0 1px var(--linea);
}
/* Radio concéntrico: 20 (item) − 8 (padding) = 12 */
.item__media { width: 56px; height: 70px; border-radius: 12px; overflow: hidden; background: var(--superficie); }
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item__info { display: grid; gap: 4px; min-width: 0; align-content: start; }
.item__nombre { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--texto); overflow-wrap: anywhere; }
.item__detalle { font-size: var(--fs-small); color: var(--texto-2); overflow-wrap: anywhere; }
.item__fila { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: 4px; }
.item__precio { font-size: var(--fs-small); font-weight: 600; color: var(--oro); }
.pedido__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--linea); }
.pedido__total span { font-weight: 600; color: var(--texto); }
.pedido__total strong { font-family: var(--f-titulo); font-stretch: 85%; font-size: 1.8rem; font-weight: 800; color: var(--oro); font-variant-numeric: tabular-nums; }
.pedido__total + .nota { margin-top: 4px; }
.pedido__form { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.pedido__vacio { display: grid; gap: var(--s-3); padding: var(--s-4) 0 var(--s-6); color: var(--texto-2); }
.pedido__vacio-titulo { font-family: var(--f-titulo); font-stretch: 85%; font-size: 1.6rem; font-weight: 700; color: var(--texto); }
.pedido__vacio-acciones { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.pedido__vacio-acciones .btn { flex: 1 1 200px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--alto-barra) + 12px);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px 10px 14px; border-radius: var(--r-pill);
  background: var(--texto); color: var(--tinta); font-weight: 600; font-size: .9375rem;
  box-shadow: var(--sombra-3);
  opacity: 0; transform: translate(-50%, -12px); pointer-events: none;
  transition: opacity .25s ease, transform .45s var(--ease-resorte);
}
.toast svg { color: var(--marca); flex: none; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aparición escalonada de secciones ---------- */
.js .revelar {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .revelar.visible { opacity: 1; transform: none; }

/* ---------- Movimiento reducido: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .revelar { transform: none; }
}

/* Escritorio: los rieles caben completos, sin cortes ni desvanecido */
@media (min-width: 720px) {
  .riel, .filtros__riel { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .filtros__grupo { flex-wrap: wrap; }
}
.ronda-punto--b { right: -4px; top: 58%; }
.ronda-punto--c { bottom: -4px; left: 64%; }

/* ---------- En el celular la escena acompaña al título, dentro del primer pliegue ---------- */
@media (max-width: 719px) {
  .hero { padding-top: var(--s-6); }
  .hero__titulo { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 2.75rem); padding-right: calc(min(32vw, 128px) + 16px); max-width: none; }
  .hero__escena { position: absolute; top: var(--s-6); right: var(--gutter); width: min(32vw, 128px); padding: 8px; }
  .hero__escena::before { border-radius: calc(var(--r-img) + 8px); border-width: 1px; }
  .hero__marco { border-radius: var(--r-img); }
  .hero__escena::after, .hero__escena .ronda-punto { width: 7px; height: 7px; }
  .hero__escena::after { top: -3px; }
  .ronda-punto--b { right: -3px; }
  .ronda-punto--c { bottom: -3px; }
}

/* ---------- "Servicios principales" en tarjetas anchas con descripción (no repite la grilla) ---------- */
.destacado {
  flex: 0 0 min(84vw, 380px); scroll-snap-align: start;
  display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: stretch;
  padding: 8px; border: 0; border-radius: var(--r-tarjeta); text-align: left; color: inherit;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
  transition: transform .14s var(--ease-press);
}
.destacado:active { transform: scale(.97); }
@media (hover: hover) {
  .destacado { transition: transform .4s var(--ease-out); }
  .destacado:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(212, 165, 55, .35), var(--sombra-3); }
}
.destacado:focus-visible { border-radius: var(--r-tarjeta); }
/* Radio concéntrico: 24 (tarjeta) − 8 (padding) = 16 */
.destacado__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--elevada); align-self: start; }
.destacado__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(248, 248, 248, .08); }
.destacado__media img { width: 100%; height: 100%; object-fit: cover; }
.destacado__info { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 6px 0; min-width: 0; }
.destacado__nombre { font-family: var(--f-titulo); font-stretch: 85%; font-weight: 700; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.008em; color: var(--texto); }
.destacado__desc { font-size: var(--fs-small); color: var(--texto-2); line-height: 1.5; }
.destacado__accion { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--oro); }
.destacado__accion svg { flex: none; }
@media (min-width: 960px) {
  .carrusel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); overflow: visible; padding-inline: var(--gutter); }
  .destacado { grid-template-columns: 148px 1fr; padding: 10px; gap: var(--s-6); }
  .destacado__info { padding: var(--s-3) var(--s-3) var(--s-3) 0; }
  .destacado__nombre { font-size: 1.45rem; }
  .destacado__desc { font-size: .9375rem; }
  .destacados__flechas { display: none !important; }
}

/* ---------- La columna de la FAQ ya no queda vacía ---------- */
.faq__ayuda { display: grid; gap: var(--s-4); justify-items: start; margin-top: var(--s-2); }
.faq__ayuda p { color: var(--texto-2); max-width: 36ch; }
.faq__ayuda-acciones { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.faq__in .seccion__cabeza { margin-bottom: var(--s-6); }
@media (min-width: 1040px) { .faq__in .seccion__cabeza { position: sticky; top: calc(var(--alto-barra) + var(--s-8)); } }

/* ---------- Pulido ---------- */
/* Toques sin retraso ni zoom por doble toque */
a, button, summary, .chip, .tarjeta, .destacado { touch-action: manipulation; }
/* Alineación óptica: un ícono a la izquierda pesa menos que el texto; se compensa el padding */
.btn:has(> svg:first-child) { padding-left: 20px; }
.btn--sm:has(> svg:first-child) { padding-left: 14px; }
/* Números alineados en contadores, horarios y cantidades */
.contador, .cantidad output, .sucursal__horario, .pildora__texto, .pedido__total strong, .estado-oficina { font-variant-numeric: tabular-nums; }
/* Texto seleccionable solo donde aporta */
.tabbar, .chip, .btn, .pildora { -webkit-touch-callout: none; }
.pedido__vaciar { justify-self: end; margin: var(--s-2) -12px 0 auto; display: flex; }
.hoja__pie { gap: 4px; }

/* Sin JavaScript: se ocultan los controles que no funcionarían (filtros, cotización, carrusel) */
html:not(.js) .solo-js { display: none !important; }
html:not(.js) .tabbar { grid-template-columns: repeat(3, 1fr); }
/* Sin datos (falló la red): se ven las tarjetas del HTML y el aviso para pedir por WhatsApp */
.sin-datos .vacio { padding-top: var(--s-6); }
.sin-datos .ocasiones, .sin-datos .destacados, .sin-datos .filtros { display: none; }
/* Pantallas bajas (zoom 200 %, celular horizontal): se libera espacio vertical */
@media (max-height: 520px) {
  .filtros { position: static; }
  .pildora { display: none; }
}

/* Ítem de la cotización: el botón de quitar va al final de la fila */
.item__quitar { align-self: start; flex: none; }

/* ---------- Bienvenida: pantalla completa con el auto 3D de fondo ----------
   La sección mide dos pantallas: el contenido queda fijo mientras bajas y app.js
   gira el auto según --p (0 a 1). --n muestra la nota del PPF a mitad del recorrido. */
.bienvenida { --p: 0; --n: 0; position: relative; height: 210svh; background: radial-gradient(90% 60% at 50% 62%, rgba(212, 165, 55, .12), transparent 70%), var(--fondo); }
.bienvenida__pegado { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: calc(var(--alto-barra) + var(--s-6)) var(--gutter) calc(var(--alto-tabbar) + var(--safe-b) + var(--s-5)); }
.bienvenida__auto { position: absolute; inset: 0; width: 100%; height: 100%; }
.bienvenida__texto { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s-2); text-align: center; transform: translateY(calc(var(--p) * -70px)) scale(calc(1 - var(--p) * .12)); opacity: calc(1 - var(--p) * 1.7); }
.bienvenida__hola { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); letter-spacing: .02em; color: var(--oro); }
.bienvenida__logo { width: clamp(132px, 34vw, 170px); height: auto; aspect-ratio: 1; }
.bienvenida__nombre { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem); line-height: .95; letter-spacing: -.01em; color: var(--texto); }
.bienvenida__nombre span { display: block; color: var(--oro); }
.bienvenida__nota { grid-row: 2; align-self: end; position: relative; z-index: 1; margin-bottom: var(--s-4); max-width: 30ch; text-align: center; font-size: var(--fs-small); font-weight: 500; color: var(--oro-tinte); opacity: var(--n); transform: translateY(calc((1 - var(--n)) * 8px)); }
.bienvenida__pista { grid-row: 3; align-self: end; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; color: var(--texto); text-decoration: none; background: rgba(10, 10, 10, .55); box-shadow: inset 0 0 0 1px var(--linea-2); opacity: calc(1 - var(--p) * 6); }
.bienvenida__pista svg { color: var(--oro); }

/* Entrada única al cargar: solo transform y un brillo dorado que cruza el nombre (el texto nunca empieza invisible) */
.js .bienvenida__hola { animation: bv-sube .8s var(--ease-out) both; }
.js .bienvenida__logo { animation: bv-logo 1.1s var(--ease-resorte) .08s both; }
.js .bienvenida__nombre { animation: bv-sube 1s var(--ease-out) .16s both; }
.js .bienvenida__nombre span { background: linear-gradient(100deg, var(--oro) 35%, #FFF1C9 50%, var(--oro) 65%) 0 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bv-brillo 1.8s var(--ease-out) .5s both; }
@keyframes bv-sube { from { transform: translateY(18px); } }
@keyframes bv-logo { from { transform: scale(.82) rotate(-8deg); } }
@keyframes bv-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (min-width: 960px) {
  .bienvenida__pegado { padding-bottom: var(--s-8); }
}
@media (prefers-reduced-motion: reduce) {
  .bienvenida { height: 100svh; }
  .bienvenida__texto, .bienvenida__pista { transform: none; opacity: 1; }
  .bienvenida__nota { opacity: 1; transform: none; }
}
