/* ==========================================================================
   Concesionaria · tu zona
   Un solo CSS para todas las páginas. Todo color, tipografía, radio, sombra
   y espaciado sale de las variables de :root. Para cambiar algo, se cambia acá.
   ========================================================================== */

:root {
  /* ---- Color (de dónde sale cada uno) ----
     ink      grafito de las letras "auto" del cartel (foto del cartel de cerca)
     night    negro de la fachada y del fondo del salón (foto de la hilera de autos)
     red      franja roja de la bandera del cartel (fotos del cartel y del frente)
     concrete piso de hormigón del salón (foto del salón por dentro)
     paper    blanco del panel del cartel, corrido apenas hacia el rojo
     green    franja verde de la bandera: SOLO adentro de la marquita del logo y el punto "abierto" */
  --c-ink: #2d2a29;
  --c-night: #1b1918;
  --c-night-2: #262322;
  --c-red: #c8202b;
  --c-red-deep: #a11a24;
  --c-red-lit: #e04a54;
  --c-green: #2e7d43;
  --c-paper: #f7f4f3;
  --c-concrete: #e4e0dc;
  --c-white: #ffffff;
  --c-ink-soft: #5a5452;
  --c-on-dark-soft: #cfc9c6;
  --c-line: #cfc9c5;
  --c-line-strong: #b4aeaa;
  --c-line-dark: #3f3a39;
  --c-line-ink: #4b4644;
  --c-field-border: #6f6967;
  --c-header: rgba(27, 25, 24, 0.82);
  --c-header-scrolled: rgba(27, 25, 24, 0.94);
  --c-veil-1: rgba(27, 25, 24, 0.94);
  --c-veil-2: rgba(27, 25, 24, 0.86);
  --c-veil-3: rgba(27, 25, 24, 0.52);
  --c-veil-4: rgba(27, 25, 24, 0.7);
  --c-veil-5: rgba(27, 25, 24, 0.3);
  --c-clear: rgba(27, 25, 24, 0);
  --c-glow: rgba(200, 32, 43, 0.38);
  --c-green-glow: rgba(46, 125, 67, 0.35);
  --c-white-50: rgba(255, 255, 255, 0.5);

  /* ---- Tipografía ---- */
  --f-title: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-1: 0.8rem;
  --fs-2: 0.9rem;
  --fs-3: 1rem;
  --fs-4: 1.15rem;
  --fs-5: 1.4rem;
  --fs-6: 1.75rem;
  --fs-7: 2.25rem;
  --fs-8: 3rem;
  --fs-mega: clamp(3rem, 13.4vw, 9rem); /* sólo el teléfono gigante */
  --stretch-title: 112%;

  /* ---- Espaciado: una sola escala ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(var(--s-8), 10vw, var(--s-9));
  --gutter: 20px;
  --container: 1160px;
  --measure: 65ch;
  --hdr-h: 72px;

  /* ---- Radios y sombras (dos niveles y nada más) ---- */
  --r-card: 8px;
  --r-btn: 4px;
  --sh-1: 0 1px 2px rgba(27, 25, 24, 0.12), 0 4px 12px rgba(27, 25, 24, 0.1);
  --sh-2: 0 12px 32px rgba(27, 25, 24, 0.28);

  /* ---- Movimiento ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-reveal: 700ms;
  --t-hover: 200ms;
  --blur: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + var(--s-4));
  overflow-x: clip;
}
html.menu-open, html.menu-open body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-3);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 800;
  font-stretch: var(--stretch-title);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--fs-7), 8.2vw, var(--fs-8)); }
h2 { font-size: clamp(var(--fs-6), 5.6vw, var(--fs-7)); }
h3 { font-size: var(--fs-5); line-height: 1.15; }
h4 { font-size: var(--fs-4); line-height: 1.2; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus, var(--c-ink)); outline-offset: 3px; border-radius: var(--r-btn); }
::selection { background: var(--c-red); color: var(--c-white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: fixed; left: var(--s-4); top: var(--s-4); z-index: 2000; background: var(--c-paper); color: var(--c-ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-btn); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Bandas de sección: cada una define sus propios colores ---------- */
.band {
  --bg: var(--c-paper); --fg: var(--c-ink); --fg-soft: var(--c-ink-soft);
  --line: var(--c-line); --focus: var(--c-ink);
  background: var(--bg); color: var(--fg);
  padding-block: var(--section-y);
  position: relative; overflow-x: clip;
}
.band--concrete { --bg: var(--c-concrete); --line: var(--c-line-strong); }
.band--night, .band--ink {
  --bg: var(--c-night); --fg: var(--c-paper); --fg-soft: var(--c-on-dark-soft);
  --line: var(--c-line-dark); --focus: var(--c-paper);
}
.band--ink { --bg: var(--c-ink); --line: var(--c-line-ink); }
.band--red {
  --bg: var(--c-red); --fg: var(--c-white); --fg-soft: var(--c-white);
  --line: var(--c-white-50); --focus: var(--c-white);
}
.fg-soft, .band .lead { color: var(--fg-soft); }
.lead { font-size: var(--fs-4); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-title); font-weight: 700; font-stretch: 100%;
  font-size: var(--fs-1); letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 var(--s-4); color: var(--fg-soft);
}

/* ---------- Marquita de la bandera (rojo · blanco · verde, como en el cartel) ---------- */
.flag { display: inline-flex; flex: none; height: 22px; box-shadow: 0 0 0 1px var(--line, transparent); }
.flag i { display: block; width: 6px; height: 100%; }
.flag i:nth-child(1) { background: var(--c-red); }
.flag i:nth-child(2) { background: var(--c-white); }
.flag i:nth-child(3) { background: var(--c-green); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: var(--s-3) var(--s-5);
  border: 2px solid transparent; border-radius: var(--r-btn);
  font-family: var(--f-title); font-weight: 700; font-stretch: 100%; font-size: var(--fs-3);
  line-height: 1.1; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--t-hover) var(--ease), background-color var(--t-hover), color var(--t-hover);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--c-red); color: var(--c-white); }
.btn--wa:hover { background: var(--c-red-deep); }
.btn--call { background: transparent; color: var(--fg, var(--c-ink)); border-color: var(--fg, var(--c-ink)); }
.btn--call:hover { background: var(--fg, var(--c-ink)); color: var(--bg, var(--c-paper)); }
.btn--inv { background: var(--c-white); color: var(--c-red-deep); }
.btn--inv:hover { background: var(--c-paper); }
.btn--sm { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--fs-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.cta-note { font-size: var(--fs-2); color: var(--fg-soft); margin: var(--s-3) 0 0; max-width: 52ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; isolation: isolate;
  color: var(--c-paper);
  --line: var(--c-line-dark); --focus: var(--c-paper); --fg: var(--c-paper); --bg: var(--c-night);
}
/* El fondo borroso va en un pseudo-elemento: un backdrop-filter en el propio header haría que el menú mobile (position: fixed) quedara atrapado adentro de su alto. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-header);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  transition: background-color 300ms;
}
.site-header.is-scrolled { --hdr-h: 56px; box-shadow: var(--sh-1); }
.site-header.is-scrolled::before { background: var(--c-header-scrolled); }
.hdr-in { display: flex; align-items: center; gap: var(--s-3); height: var(--hdr-h); transition: height 300ms var(--ease); }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--c-paper); flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 0.88; }
.logo-top { font-family: var(--f-title); font-style: italic; font-weight: 500; font-size: var(--fs-1); letter-spacing: 0.02em; }
.logo-main { font-family: var(--f-title); font-weight: 800; font-stretch: 125%; font-size: var(--fs-6); letter-spacing: -0.03em; }
.site-header.is-scrolled .logo-main { font-size: var(--fs-5); }
.logo .flag { height: 30px; box-shadow: none; }
.hdr-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-btn); border: 2px solid var(--c-paper); background: transparent; color: var(--c-paper);
  cursor: pointer; text-decoration: none; transition: transform var(--t-hover) var(--ease), background-color var(--t-hover);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn--wa { background: var(--c-red); border-color: var(--c-red); }
.icon-btn--wa:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); }
.hdr-actions .btn-text { display: none; }
.menu-toggle { display: none; }
.js .menu-toggle { display: inline-grid; }

.site-nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-2) var(--s-3);
  font-family: var(--f-title); font-weight: 600; font-stretch: 100%; font-size: var(--fs-2);
  color: var(--c-on-dark-soft); text-decoration: none; transition: color var(--t-hover);
}
.site-nav a:hover { color: var(--c-paper); }
.site-nav a[aria-current="page"] { color: var(--c-paper); font-weight: 800; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-1);
  height: 3px; background: var(--c-red-lit);
}
.nav-close, .nav-extra { display: none; }

/* Menú mobile (sólo con JS; sin JS la navegación queda visible en fila) */
@media (max-width: 999px) {
  .hdr-in { flex-wrap: wrap; height: auto; min-height: var(--hdr-h); padding-block: var(--s-2); }
  .js .hdr-in { flex-wrap: nowrap; height: var(--hdr-h); padding-block: 0; }
  .site-nav { order: 5; width: 100%; padding-bottom: var(--s-2); }
  .js .site-nav {
    position: fixed; inset: 0; z-index: 300; width: auto; padding: var(--s-9) var(--gutter) var(--s-6);
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: var(--s-2);
    background: var(--c-night); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-16px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .js .site-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav a { font-size: var(--fs-6); font-weight: 800; font-stretch: var(--stretch-title); min-height: 56px; padding: var(--s-2) 0; border-bottom: 1px solid var(--c-line-dark); width: 100%; }
  .js .site-nav a[aria-current="page"]::after { left: 0; right: auto; width: var(--s-7); bottom: -1px; }
  .js .nav-close { display: inline-grid; position: absolute; top: var(--s-3); right: var(--gutter); }
  .js .nav-extra { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); width: 100%; }
  .js .site-nav .nav-extra .btn--wa { color: var(--c-white); }
  .js .site-nav .nav-extra a { font-size: var(--fs-3); font-family: var(--f-title); border-bottom: 2px solid transparent; justify-content: center; width: 100%; min-height: 52px; padding: var(--s-3) var(--s-5); }
  .js .site-nav .nav-extra .btn--call { border-color: var(--c-paper); color: var(--c-paper); }
}
@media (min-width: 1000px) {
  .hdr-in { gap: var(--s-5); }
  .site-nav { margin-left: var(--s-5); flex-wrap: nowrap; }
  .hdr-actions .btn-text { display: inline-flex; }
  .hdr-actions .icon-btn { display: none; }
  .js .menu-toggle { display: none; }
}

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: var(--c-paper); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--hdr-h) + var(--s-8)) 0 var(--s-8); }
.hero--home { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: var(--s-7); overflow: clip; }
.hero-media { position: absolute; inset: 0; overflow: clip; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--c-veil-1) 0%, var(--c-veil-2) 42%, var(--c-veil-3) 72%, var(--c-veil-4) 100%);
}
@media (min-width: 860px) {
  .hero-veil {
    background:
      linear-gradient(to right, var(--c-veil-2) 0%, var(--c-veil-3) 42%, var(--c-clear) 78%),
      linear-gradient(to top, var(--c-veil-1) 0%, var(--c-clear) 45%, var(--c-veil-5) 100%);
  }
}
.hero-body { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 15ch; margin-bottom: var(--s-4); }
.hero--page h1 { max-width: 20ch; }
.hero--home h1 { font-size: clamp(var(--fs-7), 9vw, var(--fs-8)); }
.hero .lead { margin-bottom: 0; }
.hero-facts { display: grid; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-2); color: var(--fg-soft); }
.hero-facts strong { display: block; color: var(--fg); font-family: var(--f-title); font-stretch: 100%; font-size: var(--fs-3); }
.hero-facts .item { display: flex; gap: var(--s-3); align-items: flex-start; }
.hero-facts svg { width: 22px; height: 22px; flex: none; margin-top: var(--s-1); }
@media (min-width: 760px) { .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-7); } }

/* Entrada en secuencia (CSS puro: aunque el JS falle, termina visible) */
.seq { animation: rise 800ms var(--ease) both; animation-delay: var(--d, 0ms); }

/* Estado abierto/cerrado */
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-2); font-weight: 600; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-soft); flex: none; }
.status.is-open .dot { background: var(--c-green); box-shadow: 0 0 0 3px var(--c-green-glow); }

/* ---------- Revelado al scroll ---------- */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.visible { opacity: 1; transform: none; }

/* Títulos palabra por palabra (el JS los parte respetando <br> y <em>) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; }
.js .wsplit .wi { opacity: 0; transform: translateY(110%); }
.js .wsplit.visible .wi { animation: wordIn 700ms var(--ease) both; animation-delay: calc(var(--base, 0ms) + var(--i, 0) * 70ms); }

/* Si algún día se quiere respetar "Reducir movimiento" del sistema, descomentar este bloque
   Y poner FORZAR_ANIMACIONES = false al principio de main.js. Hoy las animaciones se ven siempre
   (pedido del cliente: con el movimiento reducido el sitio se veía muerto).
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .wsplit .wi { opacity: 1 !important; transform: none !important; }
}
*/

@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Tira de confianza ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.trust > div { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-top: 1px solid var(--line); }
.trust-num { display: flex; align-items: baseline; gap: var(--s-2); font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: var(--fs-8); line-height: 1; font-variant-numeric: tabular-nums; }
.trust-num svg { width: 26px; height: 26px; align-self: center; }
.trust-label { margin: var(--s-2) 0 0; font-size: var(--fs-2); color: var(--fg-soft); max-width: 22ch; }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(4, 1fr); } .trust > div { padding-left: var(--s-5); border-left: 1px solid var(--line); border-top: 0; } .trust > div:first-child { padding-left: 0; border-left: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--c-ink); color: var(--c-paper); overflow: hidden; padding-block: var(--s-4); --focus: var(--c-paper); }
.marquee-track { display: flex; flex-wrap: wrap; gap: var(--s-2) 0; padding-inline: var(--gutter); }
.marquee.ready .marquee-track { flex-wrap: nowrap; width: max-content; padding-inline: 0; animation: marq 50s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: var(--s-5); padding-right: var(--s-5); white-space: nowrap; font-family: var(--f-title); font-weight: 700; font-stretch: 100%; font-size: var(--fs-2); letter-spacing: 0.04em; text-transform: uppercase; }
.marquee-item .flag { height: 16px; }
.marquee-item .flag i { width: 4px; }

/* ---------- Filas de servicios (sin cajas) ---------- */
.svc-list { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); align-items: start; padding: var(--s-6) 0; border-top: 1px solid var(--line); text-decoration: none; }
.svc-num { font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: var(--fs-7); line-height: 1; color: var(--fg-soft); }
.svc-row h3 { margin: 0 0 var(--s-2); }
.svc-row p { margin: 0; color: var(--fg-soft); }
.svc-go { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-weight: 700; font-size: var(--fs-2); color: var(--fg); }
.svc-go svg { width: 18px; height: 18px; transition: transform var(--t-hover) var(--ease); }
.svc-row:hover .svc-go svg { transform: translateX(6px); }
.svc-row:hover h3 { text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.svc-row .svc-body-p { grid-column: 1 / -1; }
@media (min-width: 800px) { .svc-row { grid-template-columns: 96px 1fr 1fr; align-items: center; } .svc-row .svc-body-p { grid-column: 3; } }

/* ---------- Layouts ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 7fr 5fr; gap: var(--s-8); }
  .split--rev { grid-template-columns: 5fr 7fr; }
  .split--top { align-items: start; }
}
.split > * { min-width: 0; }
.two-up { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .two-up { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.two-up > * { min-width: 0; }
.sec-head { margin-bottom: var(--s-7); }
.sec-head p { margin-bottom: 0; }

/* ---------- Fotos y placeholders ---------- */
.photo { margin: 0; border-radius: var(--r-card); overflow: clip; background: var(--c-night); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--169 { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 9 / 16; max-width: 340px; }
.photo figcaption { display: none; }
.pend {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-2);
  padding: var(--s-5); border: 2px dashed var(--c-field-border); border-radius: var(--r-card);
  color: var(--fg-soft); font-size: var(--fs-2); background: transparent;
}
.pend strong { font-family: var(--f-title); font-stretch: 100%; font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); }
.pend p { margin: 0; }
.pend--photo { min-height: 220px; align-items: center; text-align: center; }
.pend--photo.photo--169 { min-height: 0; }
.band--night .pend, .band--ink .pend { border-color: var(--c-on-dark-soft); }

/* ---------- Cards (sólo donde hay un objeto de verdad) ---------- */
.card { position: relative; background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--sh-1); transition: transform var(--t-hover) var(--ease); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--c-red); box-shadow: 0 0 24px var(--c-glow); opacity: 0; transition: opacity var(--t-hover); pointer-events: none; }
.card:hover { transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.band--night .card { background: var(--c-night-2); color: var(--c-paper); border-color: var(--c-line-dark); box-shadow: none; }
.stock-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .stock-grid { grid-template-columns: repeat(3, 1fr); } }
.stock-card { padding: var(--s-4); display: grid; gap: var(--s-3); }
.stock-card .pend { min-height: 0; padding: var(--s-4); }
.stock-card .photo-ph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; border: 2px dashed var(--c-field-border); border-radius: var(--r-card); padding: var(--s-4); font-size: var(--fs-2); color: var(--c-ink-soft); }
.stock-card dl { margin: 0; display: grid; gap: var(--s-1); font-size: var(--fs-2); color: var(--c-ink-soft); }
.stock-card dt { display: inline; font-weight: 700; color: var(--c-ink); }
.stock-card dd { display: inline; margin: 0; }

/* ---------- Listas con ícono ---------- */
.checks { display: grid; gap: var(--s-3); margin: var(--s-5) 0 0; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.checks svg { width: 22px; height: 22px; margin-top: var(--s-1); }
.steps { counter-reset: s; display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: var(--fs-6); line-height: 1; color: var(--fg-soft); }
.steps h3 { margin: 0 0 var(--s-1); font-size: var(--fs-4); }
.steps p { margin: 0; color: var(--fg-soft); }

/* ---------- Horarios ---------- */
.hours { margin: 0; border-top: 1px solid var(--line); }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; color: var(--fg-soft); }
.hours .closed dd { color: var(--fg-soft); }

/* ---------- Teléfono gigante: EL GOLPE ---------- */
.mega-wrap { display: grid; gap: var(--s-5); }
.mega { display: block; font-family: var(--f-title); font-weight: 800; font-stretch: 100%; font-size: var(--fs-mega); line-height: 0.95; letter-spacing: -0.03em; color: var(--c-white); text-decoration: none; font-variant-numeric: tabular-nums; }
.mega:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 0.08em; }
.band--red h2 { max-width: 20ch; }

/* ---------- Reseñas ---------- */
.rating-head { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (min-width: 860px) { .rating-head { grid-template-columns: auto 1fr; gap: var(--s-9); align-items: center; } }
.rating-big { display: flex; align-items: baseline; gap: var(--s-3); font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: var(--fs-mega); line-height: 0.9; font-variant-numeric: tabular-nums; }
.rating-big small { font-size: var(--fs-5); font-weight: 600; color: var(--fg-soft); font-stretch: 100%; }
.rating-line { margin: 0 0 var(--s-3); font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: clamp(var(--fs-6), 6vw, var(--fs-7)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: var(--s-1); color: var(--fg); }
.stars svg { width: 18px; height: 18px; }
.stars .off { opacity: 0.28; }
.rating-meta { display: grid; gap: var(--s-3); }
.dist { display: grid; gap: var(--s-2); max-width: 460px; font-size: var(--fs-2); }
.dist-row { display: grid; grid-template-columns: 28px 1fr 28px; gap: var(--s-3); align-items: center; font-variant-numeric: tabular-nums; }
.dist-bar { height: 8px; background: var(--line); border-radius: var(--r-btn); overflow: hidden; }
.dist-bar i { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 1200ms var(--ease); }
.js .dist-bar i { transform: scaleX(0); }
.js .dist.visible .dist-bar i { transform: scaleX(var(--w, 0)); }
.carousel-wrap { position: relative; }
.carousel { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.carousel-track { display: flex; width: max-content; padding-block: var(--s-5); }
.rev { flex: 0 0 min(84vw, 340px); margin-right: var(--s-4); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); white-space: normal; }
.rev-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.rev .stars { color: inherit; }
.rev-date { font-size: var(--fs-1); color: var(--c-on-dark-soft); }
.rev blockquote { margin: 0; font-size: var(--fs-3); line-height: 1.55; }
.rev-name { margin: 0; font-family: var(--f-title); font-weight: 700; font-stretch: 100%; font-size: var(--fs-2); }
.rev-more { align-self: flex-start; background: none; border: 0; padding: var(--s-2) 0; min-height: 44px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--c-paper); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.rev-reply { margin-top: var(--s-2); margin-left: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--c-night); border-left: 3px solid var(--c-red-lit); border-radius: var(--r-btn); font-size: var(--fs-2); }
.rev--pend { border-style: dashed; border-width: 2px; border-color: var(--c-on-dark-soft); background: transparent; justify-content: center; color: var(--c-on-dark-soft); font-size: var(--fs-2); }
.rev--pend strong { font-family: var(--f-title); font-stretch: 100%; font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-paper); }
.rev--pend p { margin: 0; }
.carousel-tools { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; margin-top: var(--s-4); }
.linkish { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 700; color: var(--fg); background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-underline-offset: 0.2em; cursor: pointer; }
.linkish svg { width: 18px; height: 18px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-4) 0; cursor: pointer; list-style: none; font-family: var(--f-title); font-weight: 700; font-stretch: 100%; font-size: var(--fs-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--t-hover) var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding-bottom: var(--s-4); color: var(--fg-soft); margin: 0; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: var(--s-4); max-width: 640px; }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field label { font-weight: 700; font-size: var(--fs-2); }
.field .opt { font-weight: 400; color: var(--c-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font: inherit; color: var(--c-ink); background: var(--c-white);
  border: 2px solid var(--c-field-border); border-radius: var(--r-btn);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s-7); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.err { display: none; margin: 0; color: var(--c-red-deep); font-size: var(--fs-2); font-weight: 600; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--c-red-deep); }
.form-note { margin: 0; font-size: var(--fs-2); color: var(--c-ink-soft); }
.form-ok { display: none; padding: var(--s-4); border-left: 4px solid var(--c-ink); background: var(--c-white); font-size: var(--fs-2); max-width: 640px; }
.form-ok.show { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Mapa ---------- */
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: var(--c-concrete); filter: grayscale(0.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-night); color: var(--c-paper); padding: var(--s-9) 0 var(--s-6); --line: var(--c-line-dark); --fg: var(--c-paper); --fg-soft: var(--c-on-dark-soft); --focus: var(--c-paper); }
.foot-grid { display: grid; gap: var(--s-7); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: var(--s-6); } }
.site-footer h2 { font-size: var(--fs-1); letter-spacing: 0.14em; text-transform: uppercase; font-stretch: 100%; color: var(--c-on-dark-soft); margin-bottom: var(--s-4); }
.site-footer p, .site-footer li { color: var(--c-on-dark-soft); font-size: var(--fs-2); margin: 0 0 var(--s-2); }
.site-footer a { color: var(--c-paper); }
.site-footer .foot-name { font-family: var(--f-title); font-weight: 800; font-stretch: var(--stretch-title); font-size: var(--fs-5); color: var(--c-paper); margin: 0 0 var(--s-3); }
.site-footer address p { color: var(--c-paper); }
.site-footer li a { display: inline-flex; min-height: 32px; align-items: center; }
.foot-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-1); color: var(--c-on-dark-soft); }

/* ---------- Botón flotante (mobile) ---------- */
.float { position: fixed; right: var(--s-4); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.js .float { opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js .float.show { opacity: 1; transform: none; pointer-events: auto; }
.float a { position: relative; display: grid; place-items: center; border-radius: 50%; text-decoration: none; box-shadow: var(--sh-2); }
.float-call { width: 48px; height: 48px; background: var(--c-paper); color: var(--c-ink); border: 2px solid var(--c-ink); }
.float-wa { width: 60px; height: 60px; background: var(--c-red); color: var(--c-white); }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c-red); animation: pulse 2.2s ease-out infinite; }
.float svg { width: 26px; height: 26px; }
.float-call svg { width: 22px; height: 22px; }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(var(--s-10) + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 900px) { .float { display: none; } }

/* ---------- Ajustes de pantallas grandes ---------- */
@media (min-width: 1000px) {
  .hero--home .hero-body { padding-bottom: var(--s-4); }
}
