/* RectiFrenos — diseño 2026 (v2).
   Rediseño completo sobre la MISMA estructura de islands y HTML del tema: cambian los estilos, no
   los componentes. Identidad: grafito profundo, un solo acento (el naranja del logo, #f58634),
   tipografía Barlow Condensed (títulos, condensada como el logo) + Inter (texto y precios),
   superficies planas con borde fino en vez de vidrio esmerilado, video de taller como fondo del
   hero. Lo que decidió el cliente se respeta: el buscador es la pantalla de inicio (sin carrusel
   grande, 2026-09-11) y la ficha no lleva tabla técnica (2026-09-17).

   Contrato con el core: `--header-h` (alto del masthead flotante) lo leen todas las páginas para
   no quedar tapadas; `--cart-bar-space` la fija el island de la barra de cotización. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;1,600;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ==================== TOKENS ==================== */
:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #15181c;
  --surface-2: #1b1f24;
  --surface-3: #232830;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f5f7;
  --ink-2: #c9ced5;
  --muted: #8d949e;
  --accent: #f58634;
  --accent-hover: #ff9a4d;
  --accent-ink: #1a0d03;
  --accent-soft: rgba(245, 134, 52, .14);
  --accent-line: rgba(245, 134, 52, .42);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .14);
  --whatsapp: #25d366;
  --whatsapp-ink: #05301a;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .5);
  --focus: 0 0 0 3px rgba(245, 134, 52, .35);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: var(--cart-bar-space, 0px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Fondo: grafito con un halo cálido arriba. Sin foto de engranajes: el contenido es el protagonista. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(245, 134, 52, .22), transparent 62%),
    radial-gradient(900px 700px at 100% 0%, rgba(120, 150, 255, .10), transparent 60%),
    radial-gradient(1200px 800px at 60% 120%, rgba(245, 134, 52, .07), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 26px 26px,
    linear-gradient(180deg, #0c0d10 0%, #0a0b0d 40%, #08090b 100%);
  -webkit-mask-image: radial-gradient(1400px 1000px at 50% 30%, #000 40%, rgba(0, 0, 0, .55) 100%);
  mask-image: radial-gradient(1400px 1000px at 50% 30%, #000 40%, rgba(0, 0, 0, .55) 100%);
}
/* Trazo diagonal muy tenue (velocidad), fijo, sólo en pantallas anchas */
@media (min-width: 900px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(115deg, transparent 0 220px, rgba(255, 255, 255, .018) 220px 224px);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
  }
}
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
img, .brands-marquee2 img, .rlc__media img, .recti-sheet__stage img, .recti-sheet__thumb img { -webkit-user-drag: none; }
.page { display: flex; flex-direction: column; min-height: 100vh; }
.home, .brands-marquee2, .prefooter, .banners-container { background: transparent; }

/* Botones genéricos (hero y páginas de texto) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .24); }
.btn--wa { background: var(--whatsapp); color: var(--whatsapp-ink); }
.btn--wa:hover { filter: brightness(1.06); }

/* ==================== MASTHEAD (barra flotante) ==================== */
.masthead {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(calc(100vw - 24px), var(--wrap));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px;
  background: rgba(14, 16, 19, .82);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: mastheadIn .5s var(--ease) both;
}
@keyframes mastheadIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.masthead__brand { display: flex; align-items: center; flex: none; min-width: 0; }
.masthead__logo { height: 34px; width: auto; display: block; }
.masthead__nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.masthead__nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .18s var(--ease), color .18s var(--ease); }
.masthead__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.masthead__search { flex: 1 1 380px; min-width: 0; max-width: 620px; position: relative; margin: 0 auto; }
.masthead__search form { position: relative; display: flex; align-items: center; }
.masthead__search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .18s var(--ease); }
.masthead__search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06); color: var(--ink); padding: 0 96px 0 44px; font-size: 15px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.masthead__search input::placeholder { color: var(--muted); }
.masthead__search input:hover { background: rgba(255, 255, 255, .09); }
.masthead__search input:focus { outline: none; border-color: var(--accent-line); background: rgba(255, 255, 255, .08); box-shadow: var(--focus); }
.masthead__search form:focus-within .masthead__search-icon { color: var(--accent); }
.masthead__search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  height: 36px; padding: 0 16px; border: none; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13.5px; transition: background-color .18s var(--ease);
}
.masthead__search button:hover { background: var(--accent-hover); }
.masthead__right { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.masthead__account { display: flex; align-items: center; gap: 6px; }
.masthead__login {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.masthead__login:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
/* Con sesión: «Hola, Nombre» + Salir, dentro de una misma píldora */
.masthead__account:has(.masthead__hola) { height: 40px; padding: 0 4px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.masthead__hola { color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.masthead__hola::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; box-shadow: 0 0 0 3px var(--ok-soft); }
.masthead__logout { height: 30px; padding: 0 12px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .08); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: background-color .18s var(--ease), color .18s var(--ease); }
.masthead__logout:hover { background: var(--danger-soft); color: #fecaca; }
.masthead__cart {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.masthead__cart:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .24); }
.masthead__cart svg { flex: none; }
.masthead__cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; line-height: 1;
  animation: countPop .3s var(--ease);
}
.masthead__cart-count[hidden] { display: none; }
@keyframes countPop { from { transform: scale(.6); } to { transform: none; } }
@media (max-width: 1180px) { .masthead__nav { display: none; } }
@media (max-width: 760px) { .masthead__cart-label { display: none; } .masthead__cart { padding: 0 10px; } .masthead__search button { padding: 0 12px; } }
@media (max-width: 560px) {
  :root { --header-h: 128px; }
  .masthead { flex-wrap: wrap; row-gap: 8px; padding: 8px 8px 8px 12px; }
  .masthead__brand { flex: 1 1 auto; }
  .masthead__logo { height: 30px; }
  .masthead__search { order: 3; flex: 1 0 100%; max-width: none; }
  .masthead__login { display: none; }
  .masthead__hola { max-width: 90px; }
}

/* Autocompletado del buscador del masthead (mini fichas) */
.ms-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 120; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: min(70vh, 460px); overflow-y: auto; display: none;
}
.ms-suggest.is-open { display: block; }
.ms-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; cursor: pointer; }
.ms-item.is-active, .ms-item:hover { background: rgba(255, 255, 255, .07); }
.ms-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.ms-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ms-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ms-name { color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-sub { color: var(--accent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-all { position: sticky; bottom: -6px; margin: 4px -6px -6px; padding: 12px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; z-index: 2; }
.ms-all:hover { background: var(--accent-soft); }
.ms-meta-row { padding: 12px 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .ms-suggest { position: fixed; top: calc(var(--header-h) - 4px); left: 12px; right: 12px; max-width: none; }
}
.ms-item { animation: rcFade .18s var(--ease) both; }

/* ==================== HOME · HERO ==================== */
.home { position: relative; overflow-x: clip; display: flex; flex-direction: column; }
.hero-overlay {
  position: relative; z-index: 1; width: 100%; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  overflow: hidden;
}
@supports not (height: 100svh) { .hero-overlay { min-height: 100vh; } }
#background-video, #background-video-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none;
  filter: brightness(.55) saturate(.7) contrast(1.05);
}
.hero-overlay::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .82) 0%, rgba(8, 9, 11, .55) 45%, rgba(8, 9, 11, .35) 100%),
    linear-gradient(180deg, rgba(10, 11, 13, .35) 0%, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .95) 100%);
}
.hero-overlay .hero-grid {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy card";
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-left { grid-area: copy; min-width: 0; max-width: 620px; }
.hero-left__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero-left__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-left__title {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 6.6vw, 88px); line-height: .94; letter-spacing: -.005em; color: #fff;
  text-wrap: balance;
}
.hero-left__title em { font-style: italic; color: var(--accent); }
.hero-left__text { margin: 20px 0 0; max-width: 52ch; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; text-wrap: pretty; }
.hero-left__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* La tarjeta del buscador */
.hero-right {
  grid-area: card; position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(17, 19, 23, .84); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero-right > * { position: relative; z-index: 1; }
.hero-right > .brake-disc { position: absolute; right: -14%; top: -18%; width: min(60%, 360px); height: auto; color: rgba(245, 134, 52, .10); z-index: 0; pointer-events: none; animation: discSpin 70s linear infinite; }
.hero-card__head { display: flex; flex-direction: column; gap: 4px; }
.hero-card__eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-card__title, .hero-right h1 { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: #fff; }
.hero-card__hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.home-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.home-filters .rc { position: relative; width: 100%; min-width: 0; }
.home-filters .search-btn-home { grid-column: 1 / -1; }
.search-btn-home {
  height: 52px; width: 100%; border: none; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; letter-spacing: .01em; display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 8px 24px rgba(245, 134, 52, .25);
}
.search-btn-home:hover { background: var(--accent-hover); box-shadow: 0 10px 30px rgba(245, 134, 52, .35); }
.search-btn-home:active { transform: translateY(1px); }

/* Afiches de marca bajo el buscador (island banner-gallery) */
.bnr { width: 100%; padding-top: 4px; border-top: 1px solid var(--line); }
.bnr__list { display: flex; gap: 10px; margin: 0; padding: 12px 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.bnr__list::-webkit-scrollbar { display: none; }
.bnr__item { flex: 1 1 0; min-width: 84px; scroll-snap-align: start; }
.bnr__thumb {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 0 8px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--surface-2); color: var(--ink); cursor: zoom-in;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
}
.bnr__thumb picture { display: block; }
.bnr__thumb:hover { border-color: var(--accent-line); transform: translateY(-2px); background: var(--surface-3); }
.bnr__thumb:focus-visible { box-shadow: var(--focus); }
.bnr__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.bnr__caption { display: flex; align-items: center; justify-content: center; min-height: 2.4em; padding: 6px 6px 0; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink-2); overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .hero-overlay .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "card"; max-width: 680px; gap: 22px; }
  .hero-left { max-width: none; }
  .hero-left__title { font-size: clamp(40px, 9vw, 64px); }
  .hero-left__text { display: none; }
  .hero-left__actions { display: none; }
}
@media (max-width: 560px) {
  .hero-overlay { padding: calc(var(--header-h) + 16px) 12px 28px; align-items: start; }
  .hero-left__eyebrow { margin-bottom: 12px; font-size: 11.5px; }
  .home-filters { grid-template-columns: 1fr; }
  .bnr__item { flex: 0 0 96px; }
}
/* Ventanas anchas y bajas (portátiles): menos aire, todo entra en una pantalla. */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero-overlay { padding-top: calc(var(--header-h) + 14px); padding-bottom: 20px; }
  .hero-left__title { font-size: clamp(40px, 5.4vw, 64px); }
  .hero-right { gap: 10px; padding: 16px 18px; }
  .bnr__item { min-width: 64px; }
}

/* ==================== HOME · SERVICIOS (trust-strip) ==================== */
.trust-strip { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px) var(--gutter) 0; }
.trust-strip__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.trust-item:hover { border-color: var(--line-2); transform: translateY(-2px); }
.trust-item svg { flex: none; width: 22px; height: 22px; color: var(--accent); box-sizing: content-box; padding: 10px; border-radius: 12px; background: var(--accent-soft); }
@media (max-width: 900px) { .trust-strip__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-item { padding: 12px 12px; gap: 10px; font-size: 13.5px; } .trust-item svg { width: 18px; height: 18px; padding: 8px; } }

/* ==================== HOME · MARCAS (marquesina) ==================== */
.home .brands-marquee2 {
  --logoBoxW: clamp(120px, 10vw, 168px); --logoBoxH: clamp(64px, 5.6vw, 88px); --gap: 12px; --dur: 70s;
  position: relative; z-index: 2; width: 100%; padding: clamp(40px, 6vw, 84px) var(--gutter) 0;
}
.brands-marquee2__inner { max-width: var(--wrap); margin: 0 auto; }
.brands-marquee2__header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
.brands-marquee2__title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.brands-marquee2__subtitle { margin: 0; color: var(--muted); max-width: 60ch; font-size: 15px; }
.brands-marquee2__shell { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.brands-marquee2__lane { overflow: hidden; padding: 6px 0; }
.brands-marquee2__track { display: flex; align-items: center; gap: var(--gap); width: max-content; animation: brandsScroll var(--dur) linear infinite; }
.brands-marquee2__lane--b .brands-marquee2__track { animation-direction: reverse; }
.brands-marquee2__shell:hover .brands-marquee2__track { animation-play-state: paused; }
.brands-marquee2__card { flex: 0 0 auto; width: var(--logoBoxW); height: var(--logoBoxH); display: flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.brands-marquee2__card img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes brandsScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ==================== PRE-FOOTER: horarios + mapa ==================== */
.prefooter { position: relative; z-index: 2; padding: clamp(40px, 6vw, 84px) var(--gutter) clamp(28px, 4vw, 48px); }
.prefooter__container { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.prefooter__info { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.prefooter__info h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; color: #fff; }
.footer-hours { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--ink-2); }
.footer-hours td { padding: 8px 0; border-top: 1px solid var(--line); }
.footer-hours tr:first-child td { border-top: none; }
.footer-hours td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 20px; width: 1%; }
.footer-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.prefooter__contact { margin-top: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-address { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.contact-wa { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.contact-wa a { display: inline-flex; align-items: center; margin-left: 8px; padding: 8px 14px; border-radius: 999px; background: var(--whatsapp); color: var(--whatsapp-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.contact-wa a:hover { filter: brightness(1.06); }
.prefooter__map { min-width: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 320px; }
.prefooter__map iframe { width: 100%; height: 100%; min-height: 320px; display: block; border: none; filter: invert(92%) hue-rotate(180deg) saturate(.6) contrast(.95); }
@media (max-width: 860px) { .prefooter__container { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-hours { font-size: 13px; } .footer-hours td:first-child { padding-right: 12px; } }

/* ==================== FOOTER ==================== */
.site-footer { position: relative; z-index: 2; padding: clamp(36px, 5vw, 64px) var(--gutter) 28px; background: #07080a; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.site-footer__message { max-width: var(--wrap); margin: 0 auto 32px; text-align: left; }
.site-footer__message p { margin: 0; }
.site-footer__message p:first-child { margin-bottom: 6px; }
.site-footer__message strong { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); line-height: 1; color: #fff; }
.site-footer__message p:last-child { color: var(--muted); max-width: 60ch; }
.site-footer__columns { max-width: var(--wrap); margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer__brand img { width: 180px; display: block; }
.site-footer__contact { text-align: left; }
.site-footer__contact b { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer__contact p { margin: 4px 0; color: var(--ink-2); }
.site-footer__social { display: flex; gap: 8px; margin-top: 12px; }
.site-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background-color .18s var(--ease); }
.site-footer__social a:hover { background: rgba(255, 255, 255, .12); }
.site-footer__social img { width: 18px; height: 18px; display: block; }
.site-footer__bar { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.site-footer__copyright { margin: 0; font-size: 13px; color: var(--muted); }
.enova-sello { display: inline-block; line-height: 0; flex: none; margin-left: auto; margin-right: 72px; }
.enova-sello img { display: block; width: 300px; min-width: 240px; max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .site-footer__bar { flex-direction: column; align-items: flex-start; padding-bottom: 72px; }
  .enova-sello { margin: 0; }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 10000; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 999px;
  background: var(--whatsapp); box-shadow: 0 10px 30px rgba(37, 211, 102, .35), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .18s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float img, .wa-float svg { width: 30px; height: 30px; display: block; }

/* ==================== CAMPOS: combos (rc) e inputs ==================== */
.rc { position: relative; width: 100%; min-width: 0; }
.rc__label, .cat__label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rc__box { position: relative; }
.rc__input, .cat__search input, .cat__measure-input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  padding: 0 14px; font-size: 16px; /* ≥16px: iOS no hace zoom al enfocar */
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rc__input { padding-right: 70px; cursor: pointer; text-overflow: ellipsis; }
.rc__input::placeholder, .cat__search input::placeholder, .cat__measure-input::placeholder { color: var(--muted); opacity: 1; }
.rc__input:hover, .cat__search input:hover, .cat__measure-input:hover { border-color: rgba(255, 255, 255, .24); background: var(--surface-3); }
.rc__input:focus, .cat__search input:focus, .cat__measure-input:focus { outline: none; border-color: var(--accent-line); box-shadow: var(--focus); background: var(--surface-2); }
.rc__icon { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rc__clear { position: absolute; top: 50%; right: 40px; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--ink); font-size: 14px; line-height: 1; z-index: 2; transition: background-color .15s var(--ease); }
.rc__clear:hover { background: var(--accent); color: var(--accent-ink); }
.rc__list {
  position: absolute; left: 0; top: calc(100% + 6px); width: 100%; min-width: 240px; z-index: 40; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; color: var(--ink); font-size: 15px;
  max-height: 280px; overflow-y: auto; box-shadow: var(--shadow-lg); animation: rcFade .16s var(--ease) forwards;
}
@keyframes rcFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rc__advice { position: sticky; top: -6px; margin: -6px -6px 4px; padding: 10px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.rc__opt { padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color .12s var(--ease); }
.rc__opt--active, .rc__opt:hover { background: rgba(255, 255, 255, .07); }
.rc__opt--active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
@media (hover: none) { .rc__opt:hover { background: transparent; } .rc__opt--active { background: var(--accent-soft); } }
.rc__opt--all { color: var(--ink); font-weight: 500; }
.rc__opt--muted { color: var(--muted); }
.rc__opt mark { background: var(--accent-soft); color: var(--accent-hover); border-radius: 3px; padding: 0 2px; }
.rc__empty { padding: 12px; color: var(--muted); }

/* ==================== CATÁLOGO ==================== */
.catalog-page { flex: 1 0 auto; width: min(var(--wrap), 100%); margin: 0 auto; padding: calc(var(--header-h) + 28px) var(--gutter) 72px; display: flex; flex-direction: column; gap: 22px; }
.cat { display: flex; flex-direction: column; gap: 16px; }
/* Franja con la foto del taller detrás del panel: a sangre completa, del borde de arriba al pie del panel. */
.cat__panel { position: relative; z-index: 20; display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-xl); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
/* La superficie del panel va en ::after (z-index -1, pintado DESPUÉS de la foto de ::before): si fuera
   el background del propio panel, la foto —también con z-index negativo— lo taparía. */
.cat__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(17, 19, 23, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: none; }
.cat__panel::before {
  content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); width: 100vw;
  top: calc(-1 * (var(--header-h) + 28px)); bottom: -40px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .55) 0%, rgba(10, 11, 13, .35) 55%, var(--bg) 100%),
    url("https://cdn.enovaproject.com/themes/rectifrenos/global/catalogo-cover.webp") center 40% / cover no-repeat;
  filter: saturate(.85);
}
.catalog-page > *, .catalog-page astro-island, .catalog-page .cat, .catalog-page .cat__count, .catalog-page .cat__grid { position: relative; z-index: 1; }
.cat__titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cat__title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: #fff; }
.cat__reset { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.cat__reset:hover { background: var(--danger-soft); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.cat__combos { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat__searchrow { display: flex; flex-direction: column; }
.cat__search { position: relative; }
.cat__search input { padding-right: 44px; }
.cat__search svg { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cat__measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat__measures .cat__label { grid-column: 1 / -1; margin-bottom: -4px; }
.cat__measure { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.cat__measure:focus-within { border-color: var(--accent-line); box-shadow: var(--focus); }
.cat__measure-name { padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.cat__measure-input { height: 46px; border: none; border-radius: 0; background: transparent; padding: 0 12px; text-align: center; font-variant-numeric: tabular-nums; }
.cat__measure-input--min { border-right: 1px solid var(--line); }
.cat__measure-input:hover, .cat__measure-input:focus { background: transparent; box-shadow: none; border-color: var(--line); }
.cat__controls { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cat__count { margin: 6px 2px 0; color: var(--muted); font-size: 14px; }
.cat__count strong { color: var(--ink); font-weight: 600; }
.cat__loading { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cat__spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: catSpin .7s linear infinite; }
@keyframes catSpin { to { transform: rotate(360deg); } }
.cat__empty { margin: 8px 0; padding: 40px 20px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink-2); text-align: center; font-size: 15px; }
.cat__grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cat__combos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat__measures { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .catalog-page { padding-top: calc(var(--header-h) + 18px); padding-left: 12px; padding-right: 12px; }
  .cat__combos, .cat__controls { grid-template-columns: 1fr; }
  .cat__grid { grid-template-columns: 1fr; gap: 12px; }
  .cat__panel::before { top: calc(-1 * (var(--header-h) + 18px)); }
}
@media (min-width: 420px) and (max-width: 640px) { .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Paginador */
.cat__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.cat__pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.cat__pg:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(255, 255, 255, .24); }
.cat__pg--current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cat__pg:disabled { opacity: .35; cursor: default; }
.cat__gap { min-width: 24px; text-align: center; color: var(--muted); }

/* Esqueletos de carga */
.rlc--skel { pointer-events: none; }
.sk { position: relative; overflow: hidden; background: rgba(255, 255, 255, .06); border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: skShimmer 1.25s ease-in-out infinite; }
@keyframes skShimmer { 100% { transform: translateX(100%); } }
.sk-chip { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-brand { flex: 1; max-width: 130px; }
.sk-media { aspect-ratio: 4 / 3; border-radius: 12px; margin-top: 2px; }
.sk-name { width: 85%; height: 14px; margin-top: 12px; }
.sk-price { width: 45%; height: 20px; margin-top: 12px; }
.sk-controls { height: 44px; border-radius: 12px; margin-top: 12px; }

/* ==================== TARJETA DE PRODUCTO (rlc) ==================== */
.rlc {
  position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 12px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.rlc:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.rlc:focus-visible { box-shadow: var(--focus); }
.rlc__head, .rlc__media, .rlc__title { min-width: 0; }
.rlc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rlc__chip { flex: none; height: 32px; width: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); }
.rlc__brand { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.rlc__brand-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.rlc__brand-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlc__stock, .recti-sheet__stock { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid rgba(251, 191, 36, .25); background: var(--warn-soft); color: #fde68a; white-space: nowrap; }
.rlc__stock--ok, .recti-sheet__stock--ok { border-color: rgba(52, 211, 153, .25); background: var(--ok-soft); color: #a7f3d0; }
.rlc__media { position: relative; flex: none; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #fff; }
.rlc__img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .3s var(--ease); }
.rlc:hover .rlc__img { transform: scale(1.03); }
.rlc__hint { position: absolute; inset-inline: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 11, 13, .78); color: #fff; font-size: 12px; font-weight: 600; text-align: center; backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.rlc:hover .rlc__hint { opacity: 1; transform: none; }
.rlc__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: rgba(10, 11, 13, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font-size: 20px; line-height: 1; z-index: 4; transition: background-color .15s var(--ease); }
.rlc__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rlc__nav--prev { left: 8px; }
.rlc__nav--next { right: 8px; }
.rlc__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; z-index: 4; padding: 3px 4px; border-radius: 999px; background: rgba(10, 11, 13, .6); backdrop-filter: blur(4px); transition: bottom .2s var(--ease); }
.rlc:hover .rlc__dots { bottom: 46px; }
.rlc__dot { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0; border: none; background: none; }
.rlc__dot::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .15s var(--ease), transform .15s var(--ease); }
.rlc__dot:hover::before { background: rgba(255, 255, 255, .85); }
.rlc__dot--active::before { background: var(--accent); transform: scale(1.35); }
.rlc__name { margin: 12px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rlc__measures { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rlc__offer { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rlc__price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rlc__price-consultar, .recti-sheet__price-consultar { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.rlc__subtotal { margin: 0; font-size: 13px; color: var(--muted); }
.rlc__subtotal strong { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.rlc__controls { display: flex; align-items: stretch; gap: 8px; margin-top: 4px; }
.rlc__qty, .recti-sheet__qty, .quote__qty, .co-item__qty { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); }
.rlc__qty { flex: 1 1 auto; justify-content: center; }
.rlc__qty button, .recti-sheet__qty button, .quote__qty button, .co-item__qty button { flex: 0 0 auto; padding: 0 12px; background: transparent; border: none; color: var(--ink); font-size: 16px; transition: background-color .15s var(--ease); }
.rlc__qty button:hover, .recti-sheet__qty button:hover, .quote__qty button:hover, .co-item__qty button:hover { background: rgba(255, 255, 255, .08); }
.rlc__qty input, .recti-sheet__qty input, .quote__qty input, .co-item__qty input { flex: 1 1 auto; width: 100%; min-width: 0; text-align: center; background: transparent; border: none; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rlc__qty input:focus, .recti-sheet__qty input:focus, .quote__qty input:focus, .co-item__qty input:focus { outline: none; box-shadow: none; }
.rlc__qty { height: 44px; }
.rlc__add, .recti-sheet__add, .co-cart__cta, .co-bar__cta, .quote__send, .quote__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: background-color .15s var(--ease), transform .15s var(--ease); }
.rlc__add:hover, .recti-sheet__add:hover, .co-cart__cta:hover, .co-bar__cta:hover, .quote__send:hover, .quote__cta:hover { background: var(--accent-hover); }
.rlc__add:active, .recti-sheet__add:active { transform: translateY(1px); }
.rlc__add { flex: 0 0 auto; height: 44px; padding: 0 16px; font-size: 14px; }
.rlc__add-icon { flex: none; }
/* Precio de cliente: el de mostrador tachado arriba, chico. */
.recti-counter { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.recti-counter s { text-decoration-thickness: 1.5px; }
.recti-counter small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Foto pendiente (placeholder de producto sin imagen) */
.pp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-2); overflow: hidden; background-color: var(--surface-3); background-image: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .07), transparent 60%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); }
.pp--card { position: absolute; inset: 0; gap: 4px; background-size: 100% 100%, 16px 16px, 16px 16px; }
.pp--sheet { aspect-ratio: 4 / 3; border-radius: 12px; gap: 8px; background-size: 100% 100%, 22px 22px, 22px 22px; }
.pp--thumb { width: 100%; height: 100%; background-size: 100% 100%, 9px 9px, 9px 9px; }
.pp__badge { position: absolute; top: 10px; left: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .3); }
.pp--sheet .pp__badge { top: 14px; left: 16px; }
.pp__deco { position: absolute; color: rgba(255, 255, 255, .05); animation: ppGear 14s linear infinite; }
.pp__deco--a { top: -14%; right: -12%; width: 46%; height: 46%; }
.pp__deco--b { bottom: -18%; left: -14%; width: 60%; height: 60%; animation-direction: reverse; animation-duration: 20s; }
.pp--thumb .pp__deco--a { top: -24%; right: -20%; width: 66%; height: 66%; }
.pp__cam { position: relative; z-index: 1; color: var(--accent); }
.pp--card .pp__cam { width: 28px; height: 28px; }
.pp--sheet .pp__cam { width: 44px; height: 44px; }
.pp--thumb .pp__cam { width: 22px; height: 22px; }
.pp__eyebrow { position: relative; z-index: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; }
.pp--card .pp__eyebrow { margin-top: 4px; font-size: 9px; padding: 3px 8px; }
.pp--sheet .pp__eyebrow { font-size: 10px; padding: 4px 12px; }
.pp__title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.pp--card .pp__title { font-size: 17px; }
.pp--sheet .pp__title { font-size: 26px; }
.pp__sub { position: relative; z-index: 1; color: var(--muted); }
.pp--card .pp__sub { font-size: 11px; }
.pp--sheet .pp__sub { font-size: 13px; }
@keyframes ppGear { to { transform: rotate(360deg); } }

/* ==================== FICHA DE PRODUCTO (product-recti) ==================== */
.producto { width: 100%; margin: 0; padding: 0; }
.recti-sheet { position: relative; overflow-x: clip; width: min(1120px, 100%); margin: 0 auto; padding: calc(var(--header-h) + 28px) var(--gutter) clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; color: var(--ink); }
.recti-sheet > * { position: relative; z-index: 1; }
.recti-sheet__disc { position: absolute; right: 24px; bottom: 24px; width: 220px; height: auto; color: rgba(245, 134, 52, .06); z-index: 0; pointer-events: none; animation: discSpin 90s linear infinite; }
.recti-sheet__loading { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: var(--muted); font-size: 1.1rem; }
.recti-sheet__card, .recti-sheet__gallery { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-xl); }
.recti-sheet__gallery { padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.recti-sheet__stagewrap { position: relative; }
.recti-sheet__stage { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #fff; border: none; padding: 0; cursor: zoom-in; }
.recti-sheet__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 12px; }
.recti-sheet__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: rgba(10, 11, 13, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font-size: 24px; line-height: 1; z-index: 4; transition: background-color .15s var(--ease); }
.recti-sheet__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.recti-sheet__nav--prev { left: 10px; }
.recti-sheet__nav--next { right: 10px; }
.recti-sheet__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.recti-sheet__thumb { width: 68px; height: 68px; flex: 0 0 auto; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; border: 2px solid transparent; opacity: .7; transition: opacity .15s var(--ease), border-color .15s var(--ease); }
.recti-sheet__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.recti-sheet__thumb:hover { opacity: 1; }
.recti-sheet__thumb--active { opacity: 1; border-color: var(--accent); }
.recti-sheet__info { display: flex; flex-direction: column; gap: 12px; }
.recti-sheet__card { padding: clamp(18px, 2.2vw, 24px); }
.recti-sheet__name { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.02; color: #fff; text-wrap: balance; }
.recti-sheet__brandrow { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.recti-sheet__brandchip { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); font-weight: 800; font-size: 12px; background: var(--accent-soft); }
.recti-sheet__brandinfo { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.recti-sheet__brandlabel { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.recti-sheet__brandname { font-weight: 600; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recti-sheet__stock { font-size: 12px; padding: 5px 11px; }
.recti-sheet__pricebox { display: flex; flex-direction: column; gap: 14px; }
.recti-sheet__priceline { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.recti-sheet__price { font-weight: 800; font-size: clamp(30px, 3.4vw, 38px); letter-spacing: -.015em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.recti-sheet__price-consultar { font-size: 14px; padding: 9px 16px; }
.recti-sheet__qtyrow { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; min-width: 0; }
.recti-sheet__qty { height: 46px; }
.recti-sheet__qty input { width: 64px; }
.recti-sheet__subtotal { margin-left: auto; flex: 1 1 140px; min-width: 0; text-align: right; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.recti-sheet__subtotal strong { color: #fff; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.recti-sheet__add { width: 100%; height: 56px; font-size: 16px; border-radius: 16px; box-shadow: 0 8px 24px rgba(245, 134, 52, .22); }
@media (max-width: 900px) { .recti-sheet { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .recti-sheet { padding-left: 12px; padding-right: 12px; } }

/* Notas del producto */
.producto-notas { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 48px; position: relative; z-index: 2; }
.producto-notas__titulo { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; color: #fff; }
.producto-notas__texto { margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink-2); font-size: 14.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }

/* Lupa / visor a pantalla completa (RectiZoom) */
.rz { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(6, 7, 9, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rz__toolbar { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 8px); display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; justify-content: space-between; padding: 10px; max-width: calc(100vw - 16px); margin: 0 auto; pointer-events: none; z-index: 30; }
.rz__group { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(21, 24, 28, .9); border: 1px solid var(--line-2); padding: 6px 8px; color: #fff; font-size: 14px; max-width: 100%; overflow-x: auto; }
.rz__title { font-weight: 600; margin: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.rz__btn { border: none; background: transparent; color: #fff; padding: 8px 12px; border-radius: 999px; font: inherit; line-height: 1; flex-shrink: 0; transition: background-color .15s var(--ease); }
.rz__btn:hover { background: rgba(255, 255, 255, .1); }
.rz__btn:active { transform: scale(.95); }
.rz__count { min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; opacity: .9; flex-shrink: 0; }
.rz__sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; flex-shrink: 0; }
.rz__stage { position: relative; width: 100%; height: 90vh; max-width: 96vw; max-height: 90vh; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); z-index: 10; touch-action: none; }
.rz__pan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.rz__img { width: auto; height: auto; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-select: none; }
.rz__thumbs { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); display: flex; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(21, 24, 28, .9); border: 1px solid var(--line-2); max-width: calc(100vw - 16px); overflow-x: auto; z-index: 30; }
.rz__thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #fff; padding: 0; flex-shrink: 0; }
.rz__thumb--active { border-color: var(--accent); }
.rz__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==================== COTIZACIÓN (/carrito) ==================== */
.carrito { flex: 1 0 auto; padding: calc(var(--header-h) + 36px) var(--gutter) 72px; }
.quote { width: min(860px, 100%); margin: 0 auto; color: var(--ink); }
.quote__title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.quote--empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: clamp(28px, 5vw, 56px) 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.quote--empty .quote__title { margin: 0; }
.quote__empty-art { display: flex; justify-content: center; margin: 4px 0; }
.quote__empty-disc { width: 110px; height: 110px; color: var(--accent); opacity: .5; animation: discSpin 40s linear infinite; }
.quote__text { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.quote__cta, .quote__send { height: 52px; padding: 0 28px; font-size: 15px; border-radius: 999px; }
.quote__send { background: var(--whatsapp); color: var(--whatsapp-ink); }
.quote__send:hover { background: var(--whatsapp); filter: brightness(1.06); }
.quote__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quote__item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 12px; }
.quote__media { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; text-decoration: none; }
.quote__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.quote__noimg { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.quote__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.quote__name { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.quote__name:hover { color: var(--accent-hover); }
.quote__code { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.quote__line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quote__qty { height: 36px; border-radius: 10px; }
.quote__qty input { width: 44px; font-size: 13.5px; }
.quote__subtotal { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.quote__remove { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 18px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.quote__remove:hover { background: var(--danger-soft); color: #fecaca; border-color: rgba(248, 113, 113, .4); }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quote__total { font-size: 15px; color: var(--muted); }
.quote__total strong { display: block; color: #fff; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.quote__note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); max-width: 42ch; }
@media (max-width: 520px) {
  .quote__item { grid-template-columns: 64px 1fr; }
  .quote__remove { grid-column: 2; justify-self: end; }
  .quote__media { width: 64px; height: 64px; }
}

/* ==================== OVERLAY DE COTIZACIÓN (toast + mini-carrito + barra) ==================== */
.co-toasts { position: fixed; top: calc(var(--header-h) + 8px); right: max(12px, calc((100vw - var(--wrap)) / 2)); z-index: 220; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.co-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; width: min(340px, 88vw); box-shadow: var(--shadow-lg); animation: coToastIn .22s var(--ease); }
.co-toast__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #05301a; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.co-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-toast__body strong { font-size: 13.5px; font-weight: 700; }
.co-toast__body span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
@keyframes coToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.co-cart { position: fixed; top: calc(var(--header-h) + 2px); right: max(12px, calc((100vw - var(--wrap)) / 2)); width: min(440px, calc(100vw - 24px)); z-index: 210; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-lg); max-height: min(80vh, 640px); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); animation: coToastIn .18s var(--ease); }
.co-cart__head { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.co-cart__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 20px; }
.co-cart__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: transparent; color: var(--ink-2); font-size: 22px; line-height: 1; border-radius: 8px; }
.co-cart__close:hover { background: rgba(255, 255, 255, .08); }
.co-cart__body { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.co-cart__empty { text-align: center; padding: 32px 16px; display: flex; flex-direction: column; gap: 4px; }
.co-cart__empty strong { font-size: 15px; }
.co-cart__empty span { color: var(--muted); font-size: 13px; }
.co-cart__empty-disc { width: 74px; height: 74px; color: var(--accent); opacity: .5; margin: 0 auto 8px; animation: discSpin 40s linear infinite; }
.co-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.co-item__thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.co-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-item__thumb--empty { background: var(--surface-3); }
.co-item__meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.co-item__namerow { display: flex; align-items: flex-start; gap: 8px; }
.co-item__name { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); text-decoration: none; cursor: pointer; }
.co-item__name:hover { color: var(--accent-hover); }
.co-item__trash { flex: none; display: grid; place-items: center; border: none; background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.co-item__trash:hover { background: var(--danger-soft); color: #fecaca; }
.co-item__code { font-size: 11.5px; color: var(--muted); }
.co-item__price { font-size: 12.5px; color: var(--muted); }
.co-item__price strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.co-item__qtyrow { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.co-item__qtylabel { font-size: 12px; color: var(--muted); }
.co-item__qty { height: 30px; border-radius: 8px; }
.co-item__qty button { padding: 0 9px; font-size: 14px; }
.co-item__qty input { width: 36px; font-size: 13px; }
.co-item__sub { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.co-cart__foot { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.co-cart__total { text-align: center; font-size: 14px; color: var(--muted); }
.co-cart__total strong { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.co-cart__cta { height: 46px; font-size: 14px; }
.co-cart__cta[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.co-bar { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 150; padding: 0 12px; }
@media (max-width: 640px) { .co-bar { display: none; } }
.co-bar__inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink); box-shadow: var(--shadow-lg); }
.co-bar__text { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.co-bar__text strong { color: #fff; font-variant-numeric: tabular-nums; }
.co-bar__cta { margin-left: auto; flex: none; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14px; }

/* ==================== AUTH (login / registro / recuperar) ==================== */
.auth-page { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 36px) var(--gutter) 72px; }
.auth { width: 100%; max-width: 440px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); padding: 28px 26px 30px; }
.auth__logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth__logo img { height: 44px; width: auto; }
.auth__title { text-align: center; margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1; color: #fff; }
.auth__tabs { display: flex; gap: 4px; margin: 0 0 20px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.auth__tab { flex: 1; height: 38px; border: none; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background-color .15s var(--ease), color .15s var(--ease); }
.auth__tab:hover { color: #fff; }
.auth__tab--active { background: var(--surface-3); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.auth__banner { border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.4; }
.auth__banner--error { background: var(--danger-soft); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; }
.auth__banner--ok { background: var(--ok-soft); border: 1px solid rgba(52, 211, 153, .4); color: #bbf7d0; }
.auth__form { display: grid; gap: 14px; }
.auth__field { display: grid; gap: 6px; }
.auth__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auth__input { width: 100%; height: 48px; border-radius: 12px; padding: 0 14px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); font-size: 16px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.auth__input::placeholder { color: var(--muted); }
.auth__input:focus { outline: none; border-color: var(--accent-line); box-shadow: var(--focus); }
.auth__input:disabled { opacity: .6; }
.auth__grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .auth__grid2 { grid-template-columns: 1fr 1fr; } }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.auth__check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.auth__check input { width: 18px; height: 18px; accent-color: var(--accent); }
.auth__link { font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.auth__link:hover { color: #fff; text-decoration-color: var(--accent); }
.auth__submit { margin-top: 4px; height: 50px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; border: none; transition: background-color .15s var(--ease), transform .1s var(--ease); }
.auth__submit:hover { background: var(--accent-hover); }
.auth__submit:active { transform: translateY(1px); }
.auth__submit:disabled { opacity: .6; cursor: default; }
.auth__switch { font-size: 13.5px; color: var(--muted); text-align: center; }
.auth__switch button, .auth__switch a { background: none; border: none; color: var(--ink); font-size: inherit; font-family: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); cursor: pointer; padding: 0; }
.auth__switch button:hover, .auth__switch a:hover { text-decoration-color: var(--accent); }
.auth__hint { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.auth--signed { text-align: center; }
.auth__signed-eyebrow { margin: 0 0 6px; color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth--signed .auth__hint { text-align: center; margin-bottom: 18px; }
.auth--signed .auth__submit { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.auth__secondary { height: 44px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.auth__secondary:hover { background: var(--danger-soft); color: #fecaca; border-color: rgba(248, 113, 113, .4); }
.auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==================== 404 ==================== */
.error-page { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 48px) var(--gutter) 72px; text-align: center; }
.error-page__panel { width: 100%; max-width: 560px; }
.error-page__code { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 24vw, 200px); line-height: .85; letter-spacing: -.02em; color: transparent; background: linear-gradient(180deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.error-page__title { margin: 10px 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); line-height: 1; color: #fff; }
.error-page__text { margin: 16px auto 0; max-width: 46ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.error-page__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.error-page__btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.error-page__btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.error-page__btn:active { transform: translateY(1px); }
.error-page__btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.error-page__btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ==================== LIGHTBOX DE AFICHES (banner-gallery) ==================== */
.bnr-lb { position: fixed; inset: 0; z-index: 100001; background: rgba(6, 7, 9, .94); backdrop-filter: blur(8px); display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 12px; }
.bnr-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px; color: #fff; }
.bnr-lb__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 20px; }
.bnr-lb__count { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.bnr-lb__close, .bnr-lb__arrow { border: 1px solid var(--line-2); background: rgba(21, 24, 28, .8); color: #fff; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--ease); }
.bnr-lb__close { width: 44px; height: 44px; flex: none; }
.bnr-lb__close:hover, .bnr-lb__arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bnr-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.bnr-lb__stage > picture { display: contents; }
.bnr-lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.bnr-lb__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; z-index: 2; }
.bnr-lb__arrow--prev { left: 4px; }
.bnr-lb__arrow--next { right: 4px; }
@media (min-width: 769px) { .bnr-lb { padding: 18px 24px; } .bnr-lb__arrow--prev { left: 18px; } .bnr-lb__arrow--next { right: 18px; } }

/* ==================== DECORACIÓN, MOVIMIENTO, ACCESIBILIDAD ==================== */
@keyframes discSpin { to { transform: rotate(360deg); } }
.brake-disc { display: block; }
a.rlc, .rlc__nav, .rlc__dot, .rlc__qty button, .rlc__add, .rc__clear, .cat__reset, .co-bar__cta { -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) {
  .rlc__dot { width: 24px; height: 24px; }
  .auth__form input[type="checkbox"] { width: 24px; height: 24px; }
  .auth__form button[type="button"], .auth__link { min-height: 24px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .brands-marquee2__track { animation: none; }
  .brake-disc, .pp__deco, .quote__empty-disc, .co-cart__empty-disc { animation: none !important; }
}

/* Barras de desplazamiento finas en toda la tienda */
* { scrollbar-width: thin; scrollbar-color: rgba(140, 140, 140, .45) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 140, 140, .45); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(170, 170, 170, .7); }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { width: 0; height: 0; display: none; }

/* ==================== 2.1 · FICHA, AFICHES, MARCAS, MOVIMIENTO ====================
   Segunda pasada del rediseño (pedidos de Kevin, 2026-09-29): ficha más amplia con migas y
   «Volver», afiches en su propia sección, logos de marca en tarjetas y ficha, barra de
   cotización rehecha, y movimiento (entrada del hero, reveal al bajar, transiciones). */

/* Logos de marca: chip blanco con el logo adentro; sin logo, las iniciales de siempre. */
.rlc__chip--logo, .recti-sheet__brandchip--logo { background: #fff; padding: 4px; overflow: hidden; }
.rlc__chip--logo { width: 52px; height: 32px; border-radius: 8px; }
.recti-sheet__brandchip--logo { width: 72px; height: 44px; border-radius: 10px; }
.rlc__chip--logo img, .recti-sheet__brandchip--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Migas y «Volver» */
.recti-sheet__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 2px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--muted); }
.crumbs__link { color: var(--ink-2); text-decoration: none; padding: 4px 2px; border-radius: 6px; transition: color .15s var(--ease); }
.crumbs__link:hover { color: var(--accent-hover); }
.crumbs__sep { color: var(--muted); opacity: .6; }
.crumbs__current { color: var(--ink); font-weight: 600; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backlink { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.backlink:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.backlink:hover svg { transform: translateX(-2px); }
.backlink svg { transition: transform .18s var(--ease); }

/* Ficha amplia: galería grande a la izquierda, columna de compra pegajosa a la derecha */
.recti-sheet { width: min(1240px, 100%); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 2.6vw, 36px); padding-top: calc(var(--header-h) + 20px); }
.recti-sheet__gallery { padding: 14px; }
.recti-sheet__stage { aspect-ratio: 1 / 1; max-height: min(72vh, 720px); width: 100%; }
.recti-sheet__stage img { padding: 6%; }
.recti-sheet__thumbs { gap: 10px; margin-top: 12px; }
.recti-sheet__thumb { width: 76px; height: 76px; }
@media (min-width: 901px) { .recti-sheet__info { position: sticky; top: calc(var(--header-h) + 16px); } }
.recti-sheet__catrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.recti-sheet__cat { flex: none; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease); }
.recti-sheet__cat:hover { background: rgba(245, 134, 52, .26); }
.recti-sheet__wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 16px; border: 1px solid rgba(37, 211, 102, .45); background: rgba(37, 211, 102, .1); color: #bff5d3; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.recti-sheet__wa:hover { background: rgba(37, 211, 102, .2); border-color: rgba(37, 211, 102, .7); }
.recti-sheet__wa svg { color: var(--whatsapp); }
.recti-sheet__note { margin: 2px 4px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .recti-sheet { grid-template-columns: minmax(0, 1fr); } .recti-sheet__stage { max-height: 62vh; } .crumbs__current { max-width: 26ch; } }

/* Afiches: sección propia con las tarjetas grandes */
.promos { position: relative; z-index: 2; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; width: 100%; }
.promos__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.promos__eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.promos__title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.promos__text { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.promos .bnr { border-top: none; padding-top: 0; }
.promos .bnr__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; overflow: visible; }
.promos .bnr__item { min-width: 0; }
.promos .bnr__thumb { border-radius: var(--r-lg); background: var(--surface); padding-bottom: 12px; }
.promos .bnr__thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promos .bnr__img { aspect-ratio: 3 / 4; }
.promos .bnr__caption { font-size: 14px; padding-top: 12px; min-height: 0; }
@media (max-width: 900px) { .promos .bnr__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promos .bnr__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; } .promos .bnr__item { flex: 0 0 62%; scroll-snap-align: start; } }

/* Barra inferior de cotización: contador, total y botón, en una píldora */
.co-bar__inner { max-width: 880px; padding: 8px 8px 8px 8px; gap: 14px; }
.co-bar__badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.co-bar__text { display: flex; flex-direction: column; gap: 1px; }
.co-bar__text strong { font-weight: 700; }
.co-bar__cta { height: 44px; padding: 0 22px; }
.co-bar { animation: coBarIn .35s var(--ease) both; }
@keyframes coBarIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Movimiento: entrada del hero y reveal al bajar (el core marca <html>.js-reveal y .is-revealed) */
.hero-left > * { animation: riseIn .7s var(--ease) both; }
.hero-left > :nth-child(2) { animation-delay: .08s; }
.hero-left > :nth-child(3) { animation-delay: .16s; }
.hero-left > :nth-child(4) { animation-delay: .24s; }
.hero-right { animation: riseIn .8s var(--ease) .18s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Reveal al bajar SIN JS: animaciones por scroll (Chrome/Edge/Safari 26+). Donde no hay soporte,
   el contenido se ve normal desde el principio; nunca queda oculto esperando a un observer. */
@supports (animation-timeline: view()) {
  [data-reveal] { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .trust-strip__inner[data-reveal] { animation: none; }
  .trust-strip__inner[data-reveal] > .trust-item { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .promos .bnr__item { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
}
.cat__grid > .rlc { animation: riseIn .45s var(--ease) both; }
.cat__grid > .rlc:nth-child(2) { animation-delay: .04s; } .cat__grid > .rlc:nth-child(3) { animation-delay: .08s; }
.cat__grid > .rlc:nth-child(4) { animation-delay: .12s; } .cat__grid > .rlc:nth-child(5) { animation-delay: .16s; } .cat__grid > .rlc:nth-child(6) { animation-delay: .2s; }
.recti-sheet__gallery { animation: riseIn .55s var(--ease) both; }
.recti-sheet__info { animation: riseIn .55s var(--ease) .1s both; }
.auth, .quote, .error-page__panel { animation: riseIn .5s var(--ease) both; }
.wa-float::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(37, 211, 102, .5); animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(.9); opacity: .9; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }
/* View transitions del ClientRouter de Astro: un fundido corto entre páginas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .trust-strip__inner[data-reveal] > .trust-item, .promos .bnr__item { animation: none !important; }
  .wa-float::before { display: none; }
}
/* En /carrito la página ya tiene su botón de envío: la barra flotante sobra. */
.page:has(> .carrito) .co-bar { display: none; }
@media (max-width: 480px) {
  .recti-sheet__price { font-size: 28px; }
  .recti-sheet__qtyrow { gap: 10px; }
  .recti-sheet__subtotal { flex-basis: 100%; text-align: left; }
}

/* ==================== 2.2 · AJUSTES (Kevin, 29/09 noche) ==================== */
/* Las opciones de los combos del home se cortaban: la tarjeta recortaba todo lo que sobresalía. */
.hero-right { overflow: visible; }
.hero-right > .brake-disc { right: 4%; top: 6%; width: 38%; }
.hero-right > astro-island { z-index: 5; }
/* La barra flotante de la cotización: mismo radio que el resto, no una píldora */
.co-bar__inner { border-radius: 18px; padding: 10px 10px 10px 12px; }
.co-bar__badge { border-radius: 12px; }
.co-bar__cta { border-radius: 12px; }
/* Login, recuperar, cotización y 404: ocupan la pantalla, el pie queda debajo del pliegue */
.auth-page, .error-page { min-height: 100svh; }
.carrito { min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.carrito > astro-island, .carrito > .quote { width: 100%; }

/* Zoom: flechas grandes a los lados de la foto (además de las de la barra), sólo con más de una foto */
.rz__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 31; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(21, 24, 28, .85); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.rz__arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rz__arrow:active { transform: translateY(-50%) scale(.94); }
.rz__arrow--prev { left: 22px; }
.rz__arrow--next { right: 22px; }
@media (max-width: 640px) { .rz__arrow { width: 44px; height: 44px; } .rz__arrow--prev { left: 8px; } .rz__arrow--next { right: 8px; } }

/* ==================== 2.3 · CARRITO EN EL TELÉFONO (Kevin, 29/09) ==================== */
/* En Chrome del teléfono `vh` mide la pantalla CON la barra de direcciones escondida. Con la barra
   visible, el mini-carrito (top = alto del masthead + 80vh) se pasaba del borde y «Enviar por
   WhatsApp» quedaba abajo, fuera de la vista, hasta deslizar la página. Ahora el alto sale del
   viewport visible (dvh, con svh de respaldo): cabecera y pie fijos, sólo la lista hace scroll. */
.co-cart__head, .co-cart__foot { flex: none; }
.co-cart__body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.co-cart { max-height: min(80vh, 640px, calc(100svh - var(--header-h) - 16px)); }
@supports (height: 100dvh) {
  .co-cart { max-height: min(80vh, 640px, calc(100dvh - var(--header-h) - 16px)); }
}
.wa-float { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .co-cart { max-height: calc(100svh - var(--header-h) - 16px); }
  @supports (height: 100dvh) { .co-cart { max-height: calc(100dvh - var(--header-h) - 16px); } }
  .co-cart__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  /* Con el carrito abierto el fondo no se desliza, y el botón flotante no tapa el de enviar. */
  html:has(.co-cart), html:has(.co-cart) body { overflow: hidden; overscroll-behavior: none; }
  html:has(.co-cart) .wa-float { display: none; }
}
/* El visor de fotos: mismo criterio, que el escenario no se pase del alto visible. */
@supports (height: 100dvh) { .rz__stage { height: 90dvh; max-height: 90dvh; } }
