/* Auto Partes Panamá — estructura Heal / light product landing
   Cards redondas, bloques de color, hero 2 col, full-bleed claro
*/
:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --mute: #5c5c5c;
  --soft: #8a8a8a;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --cream: #f3e6d8;
  --cream-2: #faefe4;
  --lilac: #e4e0f5;
  --lilac-2: #ece9f8;
  --mint: #d8f0e4;
  --mint-2: #e8f7ef;
  --black: #0d0d0d;
  --amber: #ff6a00;
  --amber-deep: #e85d04;
  --wa: #25d366;
  --wa-dark: #1ebe57;
  --green: #1a9b5c;
  --radius: 1.35rem;
  --radius-lg: 1.65rem;
  --radius-xl: 1.85rem;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.1);
  --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }
.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.muted { color: var(--mute); }
.soft { color: var(--soft); font-size: 0.9rem; }
code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.4em;
  border-radius: 0.35rem;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Nav —— */
/* ============================================================
   HEADER — pieza de referencia de la línea gráfica.
   Ver design/LINEA-GRAFICA.md §3. Barra PILL FLOTANTE: nunca
   pegada al borde, nunca con borde inferior. Este es el tono
   de toda superficie flotante del producto.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  padding: 0 1rem;
  margin-top: 0.75rem;
}
.header-pill {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled .header-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.28);
}
.logo-mark svg { display: block; border-radius: 0.7rem; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.05rem;
}
.logo-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.logo-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}
/* nav pegado al logo (izquierda), NO centrado suelto */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mute);
}
.nav-desktop a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-desktop a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.045);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.btn-ghost-sm {
  display: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mute);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost-sm:hover { color: var(--ink); background: rgba(0, 0, 0, 0.045); }
.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.09); }
@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .btn-ghost-sm { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.48rem 1rem; font-size: 0.8rem; }
.btn-black {
  background: var(--black);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.btn-black:hover { background: #222; }
.btn-white {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-orange {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.28);
}
.btn-navy { background: var(--black); color: #fff; }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-block { width: 100%; }
.btn-xl {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  border-radius: 1rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.link-arrow {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link-arrow svg { flex-shrink: 0; }
.link-arrow:hover { color: var(--amber-deep); }

/* —— HERO —— */
.hero-heal {
  padding: 2.5rem 0 3.5rem;
  background: var(--bg);
}
.hero-heal-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-heal-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    min-height: 28rem;
  }
}
.hero-heal .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.85rem;
}
.hero-heal h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
/* Jerarquía por ITÁLICA, como Heal — nunca por gris claro: un título en
   var(--soft) se lee como texto deshabilitado. Ver LINEA-GRAFICA.md §2. */
.hero-heal h1 .accent {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-style: italic;
}
.hero-heal .lead {
  max-width: 28rem;
  font-size: 1.08rem;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* Hero collage */
.hero-collage {
  position: relative;
  min-height: 22rem;
}
.hc-main {
  background: var(--lilac-2);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.hc-main h3 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  font-weight: 800;
}
.hc-float {
  position: absolute;
  z-index: 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1rem;
  background: #fff;
}
.hc-float.rating {
  top: -0.75rem;
  right: 0.5rem;
  background: var(--black);
  color: #fff;
  min-width: 7.5rem;
}
.hc-float.rating .big {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hc-float.rating .sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}
.hc-float.trust {
  bottom: 12%;
  left: -0.5rem;
  background: var(--cream);
  max-width: 11rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-2);
}
.hc-float.wa {
  bottom: -0.5rem;
  right: 1rem;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hc-float.wa .wa-dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hc-float.wa .wa-dot svg { display: block; }
@media (max-width: 959px) {
  .hc-float.trust { left: 0; }
  .hero-collage { min-height: auto; }
  .hc-float { position: relative; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; margin-top: 0.65rem; }
  .hc-float.rating { position: absolute; top: -0.5rem; right: 0.5rem; }
}

/* Search inside collage */
.search-compact .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.search-compact .fields {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.search-compact .field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
  margin-bottom: 0.25rem;
}
.search-compact .field input,
.search-compact .field select {
  width: 100%;
  border: 1.5px solid var(--line-2);
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
}
.search-compact .field input:focus,
.search-compact .field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}
.search-compact .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.search-compact .chip {
  border: 1.5px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
}
.search-compact .chip input { display: none; }
.search-compact .chip:has(input:checked),
.search-compact .chip.on {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* —— Sections ——
   Color en BLOQUES de sección, no en bordecitos.
   Reparto portada (LINEA-GRAFICA §4): soft / lilac / blanco / mint / blanco / cream.
   Nunca dos blancas seguidas ni dos del mismo tono.
*/
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-lilac { background: var(--lilac-2); }
.section-mint { background: var(--mint-2); }
.section-cream { background: var(--cream-2); }
.section-head {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-head p {
  color: var(--mute);
  font-size: 1.02rem;
  margin: 0;
}

/* Services grid — 1 large + 2 stack */
.services-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr 1fr;
    min-height: 26rem;
  }
  .svc-card.big { grid-row: 1 / span 2; }
}
.svc-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 11rem;
}
.svc-card.big {
  background: var(--black);
  color: #fff;
  min-height: 16rem;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.svc-card.big h3 { color: #fff; }
.svc-card.big p { color: rgba(255, 255, 255, 0.65); }
.svc-card .ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.svc-card .ico svg { display: block; }
.svc-card.big .ico {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.svc-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.svc-card p {
  font-size: 0.92rem;
  color: var(--mute);
  margin: 0;
  line-height: 1.45;
}
.svc-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--amber-2, var(--amber));
}
.svc-card.big .more { color: #ffc46b; }

/* Feature row — sobre --lilac-2 las cards van blancas (inversión de contraste) */
.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
}
.feature-visual {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-height: 18rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.feature-visual .phone-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.15rem;
  width: min(100%, 17rem);
  box-shadow: var(--shadow-sm);
}
.feature-visual .phone-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  margin-bottom: 0.55rem;
}
.feature-visual .phone-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.feature-visual .phone-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}
.feature-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.feature-copy .lead {
  color: var(--mute);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}
/* Checkmark geométrico CSS — sin carácter ✓ */
.feature-list li::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
  margin-top: 0.1rem;
  background-image:
    linear-gradient(var(--green), var(--green)),
    linear-gradient(var(--green), var(--green));
  background-size: 0.45rem 0.12rem, 0.12rem 0.7rem;
  background-position: 0.32rem 0.72rem, 0.72rem 0.38rem;
  background-repeat: no-repeat;
  transform: rotate(-45deg);
}

/* How it works — 2 cards + bottom strip (sección blanca: color en las cards) */
.how-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
.how-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 0;
  box-shadow: var(--shadow-sm);
  min-height: 14rem;
}
.how-card.mint { background: var(--mint-2); }
.how-card .step-n,
.how-wide .step-n {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.65rem;
}
.how-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
  color: var(--ink);
}
.how-card p {
  color: var(--mute);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.how-mini {
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.how-wide {
  margin-top: 1.25rem;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 700px) {
  .how-wide {
    grid-template-columns: 1fr auto;
  }
}
.how-wide h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.how-wide p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

/* Stories — avatares grandes superpuestos + contador 1/3 + flechas */
.stories {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .stories { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
}
.stories-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stories-faces {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}
.stories-faces .av {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-left: -1.35rem;
  background: linear-gradient(145deg, var(--lilac), var(--cream));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.stories-faces .av:nth-child(1) {
  margin-left: 0;
  background: linear-gradient(145deg, var(--lilac), #d4cef0);
  z-index: 3;
}
.stories-faces .av:nth-child(2) {
  background: linear-gradient(145deg, var(--cream), #edd9c4);
  z-index: 2;
}
.stories-faces .av:nth-child(3) {
  background: linear-gradient(145deg, var(--mint), #c5e8d6);
  z-index: 1;
}
.stories-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.stories-counter {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 2.5rem;
}
.stories-arrows {
  display: flex;
  gap: 0.4rem;
}
.stories-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  box-shadow: var(--shadow-sm);
}
.stories-arrow:hover {
  background: var(--black);
  color: #fff;
  transform: translateY(-1px);
}
.stories-arrow svg { display: block; }
.stories-quote h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
.stories-quote p {
  font-size: 1.08rem;
  color: var(--mute);
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.stories-quote .who {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.stories-quote .who span {
  display: block;
  font-weight: 500;
  color: var(--soft);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* CTA band — sobre --cream-2 la card va blanca */
.cta-band {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.75rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.cta-band p {
  color: var(--mute);
  max-width: 28rem;
  margin: 0 auto 1.35rem;
  font-size: 1.02rem;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Product grid (below fold / catalog) */
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: none;
}
.section-head-row h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0;
  color: var(--ink);
}
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Cards de pieza: --radius-lg + sombra suave, sin borde 1px */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--ink);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
}
.product-card .body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-card .meta {
  font-size: 0.78rem;
  color: var(--mute);
  margin-bottom: 0.55rem;
}
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 0.5rem;
}
.price {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.shop { font-size: 0.72rem; color: var(--soft); text-align: right; }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.badge-nueva { background: #d1fae5; color: #047857; }
.badge-usada { background: #fef3c7; color: #b45309; }

/* Catalog / detail — mismo lenguaje: superficie redonda, sombra, chips pill */
.page-pad { padding: 1.75rem 0 3.5rem; }
body.page-catalog,
body.page-detail {
  background: var(--bg-soft);
}
body.page-catalog .app-shell,
body.page-detail .app-shell {
  background: var(--bg-soft);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--soft);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: var(--mute); font-weight: 650; }
.breadcrumb a:hover { color: var(--amber-deep); }

.detail-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0.25rem 0 1rem;
}
@media (min-width: 800px) {
  .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.75rem; }
}
.detail-photo {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
  box-shadow: var(--shadow-sm);
}
.detail-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.detail-photo-empty {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--lilac-2), var(--cream-2));
}
.detail-body {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  border: 0;
  box-shadow: var(--shadow-sm);
}
.detail-body h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--ink);
  margin-top: 0.45rem;
}
.price-lg {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.4rem 0;
  color: var(--ink);
}
.compat {
  background: var(--mint-2);
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f6b42;
  margin: 1rem 0;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.spec {
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 0.85rem;
}
.spec label {
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.spec b { font-size: 0.95rem; color: var(--ink); }
.provider-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin: 1rem 0;
}
.provider-box .av {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: var(--black);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.actions { display: grid; gap: 0.55rem; }

/* Filtros catálogo: card flotante + chips pill (no selects grises) */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 0;
}
.search-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.form-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid .span2 { grid-column: span 2; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
  margin-bottom: 0.28rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 3px rgba(255, 106, 0, 0.12);
  background: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.95rem 0;
}
.chip {
  border: 0;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover { color: var(--ink); background: rgba(0, 0, 0, 0.07); }
.chip input { display: none; }
.chip:has(input:checked), .chip.on {
  background: var(--black);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.catalog-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.catalog-filters .btn { align-self: flex-start; }
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-soft);
  border-top: 0;
  padding: 2.5rem 0 1.75rem;
  color: var(--mute);
}
.site-footer .logo { margin-bottom: 0.85rem; }
.site-footer p {
  font-size: 0.9rem;
  max-width: 26rem;
  color: var(--soft);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.footer-bottom a { font-weight: 700; color: var(--ink-2); }
.footer-bottom a:hover { color: var(--amber-deep); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.drawer.open { pointer-events: auto; }
.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.drawer.open .drawer-bg { opacity: 1; }
/* Drawer: card redonda que baja desde arriba (mismo lenguaje que el pill del
   header, no un cajón lateral con esquinas duras). */
.drawer-panel {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.9rem 1.1rem;
  transform: translateY(-115%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-lg);
}
.drawer.open .drawer-panel { transform: translateY(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.35rem 0.6rem;
}
.drawer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.drawer-panel a {
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.drawer-panel a:hover { background: var(--bg-soft); }
.drawer-panel .drawer-cta { margin-top: 0.65rem; text-align: center; }
.drawer-panel .drawer-ghost {
  display: block;
  text-align: center;
  margin-top: 0.15rem;
}

/* Paginación pública (catálogo) — pills blancas con sombra suave, sin bordes */
.catalog-count { margin: 0 0 1rem; font-size: 0.88rem; }
.pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pag-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pag-btn.off {
  color: var(--soft);
  background: var(--bg-soft);
  box-shadow: none;
  pointer-events: none;
}
.pag-info { font-weight: 700; font-size: 0.85rem; color: var(--mute); }

/* Testimonio: el avatar del quote activo se levanta sobre los demás */
.stories-faces .av { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stories-faces .av.on {
  transform: translateY(-0.4rem) scale(1.06);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

/* Páginas de error (404 / 500) */
.error-page { text-align: center; padding: 5rem 1.5rem 4rem; }
.error-code {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.error-page h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0.35rem 0 0.6rem; }
.error-page p { color: var(--mute); max-width: 30rem; margin-inline: auto; }
.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
