/* Motorepuestos Arcadia · Landing de pedidos
   Fuente de verdad visual: design/IDENTIDAD_Y_UX.md */

:root {
  /* Marca */
  --red: #E10A0A;
  --red-press: #C10808;
  --red-on-dark: #FF1E1E;
  --black: #141414;
  --gray-pinon: #5E5E5E;
  --gray-visor: #D9D9D9;
  --pattern: #2A2A2A;

  /* Superficies */
  --bg: #FFFFFF;
  --bg-alt: #F4F4F4;
  --surface: #FFFFFF;
  --line: var(--gray-visor);
  --text: var(--black);
  --text-2: var(--gray-pinon);
  --on-dark: #FFFFFF;
  --on-dark-2: #BDBDBD;

  /* Tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 125%;

  /* Espacio y forma */
  --gutter: 16px;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 64px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(225, 10, 10, 0.12);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label, summary, input, select, textarea { touch-action: manipulation; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--black); color: #fff; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Tipografía display ---------- */
.display, .section-title, .panel-title, .price, .step-num, .btn, .kicker, .eyebrow, .confirm-title, .summary-title {
  font-stretch: var(--display-stretch);
}
.display {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 8.4vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.display--md { font-size: clamp(1.6rem, 6vw, 3rem); }
.section-title {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  letter-spacing: -0.005em;
}
.section-sub { color: var(--text-2); margin-top: 6px; }
.kicker, .eyebrow {
  font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em;
}
.kicker { color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 3px; background: var(--red); flex: none; }
.accent { color: var(--red-on-dark); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 2px solid transparent; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; transform: none; }
.btn-primary { --btn-bg: var(--red); --btn-fg: #fff; }
.btn-dark { --btn-bg: var(--black); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; border-color: var(--black); }
.band-dark .btn-ghost { border-color: #fff; color: #fff; }
.btn-lg { min-height: 56px; font-size: 1rem; padding: 0 24px; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.form > * { min-width: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { --btn-bg: var(--red-press); }
  .btn-dark:hover { --btn-bg: #000; }
  .btn-ghost:hover { --btn-bg: var(--black); --btn-fg: #fff; }
  .band-dark .btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--black); color: var(--black); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--radius);
  background: transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg-alt); } }

.text-link {
  background: none; border: 0; padding: 10px 0; min-height: 44px;
  font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; margin-right: auto; padding: 4px 0; }
.brand img { width: 128px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.order-toggle { padding: 0 12px; min-height: 44px; position: relative; }
.order-toggle-label { display: none; }
.count-badge {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--black); color: #fff;
  font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: transform 200ms var(--ease-out);
}
.count-badge[data-has-items="true"] { background: var(--red); }
.count-badge.bump { transform: scale(1.18); }
.menu-toggle { padding: 0; width: 44px; min-height: 44px; border-color: transparent; }

.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  display: none;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 12px; }
.main-nav a {
  display: flex; align-items: center; min-height: 48px;
  font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line);
}
.main-nav li:last-child a { border-bottom: 0; }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { width: 150px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; display: block; border: 0; background: none; margin-right: 8px; }
  .main-nav ul { display: flex; gap: 4px; padding: 0; }
  .main-nav a {
    min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius);
    font-size: 0.95rem; transition: background-color 150ms ease;
  }
  .main-nav a:hover { background: var(--bg-alt); }
  .header-cta { display: inline-flex; }
  .order-toggle-label { display: inline; }
}

/* ---------- Bandas oscuras con patrón de isotipo ---------- */
.band-dark {
  position: relative; isolation: isolate;
  background: var(--black); color: var(--on-dark);
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/patron-isotipo.svg") 0 0 / 120px 120px repeat;
}
/* Nunca detrás del logo: bandas oscuras que llevan logo van sin patrón */
.band-dark.no-pattern::before { content: none; }

/* ---------- Hero ---------- */
.hero-inner { padding-block: 40px 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--on-dark-2); margin-bottom: 14px;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--red-on-dark); }
.hero h1 { max-width: 15ch; }
.hero-lead { margin-top: 16px; max-width: 46ch; color: #E6E6E6; font-size: 1.05rem; }

.hero-search { margin-top: 28px; max-width: 640px; }
.hero-search-label {
  display: block; margin-bottom: 10px;
  font-weight: 800; font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1rem;
}
.search-field {
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text);
  border: 2px solid #fff; border-radius: var(--radius);
  padding-left: 14px;
}
.search-field:focus-within { outline: 3px solid var(--red-on-dark); outline-offset: 2px; }
.band-dark .search-field:focus-within { outline-color: #fff; }
.search-field .icon { color: var(--gray-pinon); }
.search-field input {
  flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; padding: 0 4px;
  font-size: 1rem; outline: none;
}
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.search-field .btn { min-height: 48px; margin: 2px; padding: 0 16px; }
.search-field--light { border-color: var(--black); border-width: 2px; }
.search-field--light:focus-within { outline-color: var(--black); }

.guarantees { margin-top: 28px; display: grid; gap: 10px; }
.guarantees li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: #fff;
}
.guarantees .icon { color: var(--red-on-dark); width: 22px; height: 22px; }

@media (min-width: 768px) {
  .hero-inner { padding-block: 72px 64px; }
  .guarantees { grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: 48px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 20px; }
@media (min-width: 768px) { .section { padding-block: 72px; } }

/* ---------- Tienda: catálogo + panel ---------- */
.shop { display: grid; gap: 32px; }
.order-aside { display: none; }
@media (min-width: 1024px) {
  .shop { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .order-aside { display: block; position: sticky; top: calc(var(--header-h) + 16px); }
}

.example-notice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px dashed var(--gray-pinon); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px; font-size: 0.92rem;
}
.example-notice .icon { margin-top: 2px; }

.catalog-tools { display: grid; gap: 14px; margin-bottom: 12px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
@media (min-width: 768px) {
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 2px; }
}
.chip {
  flex: none; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--black); }
}

.results-count { color: var(--text-2); font-size: 0.9rem; min-height: 1.5em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }

/* Lista compacta (opción B aprobada el 07-10-2026) */
.product-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.grid-message { color: var(--text-2); padding: 24px 0; }

.product {
  display: grid; gap: 4px 12px; align-items: start; min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "icon info price" "icon meta action";
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.product-icon {
  grid-area: icon; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--bg-alt); color: var(--gray-pinon); display: grid; place-items: center;
}
.product-icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.product-info { grid-area: info; min-width: 0; display: grid; gap: 3px; }
.product-name { font-size: 0.98rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; margin: 0; }
.product-fits { font-size: 0.84rem; color: var(--text-2); overflow-wrap: anywhere; }
.product-fits b { color: var(--text); font-weight: 600; }
.product-sku { font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.product-price { grid-area: price; text-align: right; }
.price { font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.price-ref { font-size: 0.76rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; align-self: center; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 0.84rem; font-weight: 600; }
.stock .icon { width: 16px; height: 16px; }
.badge-noreturn {
  font-size: 0.74rem; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--gray-pinon); border-radius: var(--radius-sm); padding: 1px 6px; white-space: nowrap;
}
.product-actions { grid-area: action; justify-self: end; }
.product-actions .btn { min-height: 44px; padding: 0 14px; font-size: 0.8rem; font-stretch: 100%; letter-spacing: 0.03em; gap: 6px; }
.product-actions .btn .icon { width: 16px; height: 16px; }
.product-actions .stepper { width: 132px; min-height: 44px; }
.product-actions .stepper button { height: 40px; }
.add-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 768px) {
  .product {
    grid-template-columns: 44px minmax(0, 1fr) 190px 112px 140px;
    grid-template-areas: "icon info meta price action";
    align-items: center; padding: 12px 0;
  }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-actions .btn, .product-actions .stepper { width: 132px; }
}

.stepper {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  border: 2px solid var(--black); border-radius: var(--radius); min-height: 46px;
}
.stepper button {
  height: 42px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: transform 160ms var(--ease-out);
}
.stepper button:active { transform: scale(0.9); }
.stepper output { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; }

.empty-state {
  border: 1px dashed var(--gray-pinon); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; justify-items: start; margin-top: 8px;
}
.empty-title { font-weight: 800; font-size: 1.1rem; }

/* ---------- Panel de pedido (aside y drawer) ---------- */
.order-panel { border: 2px solid var(--black); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.panel-title { font-weight: 900; text-transform: uppercase; font-size: 1.2rem; }
.order-panel .panel-title { margin-bottom: 12px; }

.cart-empty { color: var(--text-2); padding: 12px 0 4px; }
.cart-empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item-name { font-weight: 700; font-size: 0.92rem; line-height: 1.3; overflow-wrap: anywhere; }
.cart-item-unit { font-size: 0.8rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cart-item-total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.cart-item-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item-controls .stepper { width: 140px; min-height: 44px; border-width: 1.5px; }
.cart-item-controls .stepper button { height: 40px; }
.remove-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px;
  border: 0; background: none; color: var(--text-2); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.totals { padding-top: 12px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.totals-row--main { font-weight: 900; font-size: 1.15rem; font-stretch: var(--display-stretch); padding-top: 6px; border-top: 2px solid var(--black); margin-top: 4px; }
.totals-row--ref { color: var(--text-2); font-size: 0.85rem; }
.rate-note { font-size: 0.78rem; color: var(--text-2); }
.rate-warn { display: flex; gap: 6px; align-items: flex-start; font-size: 0.82rem; font-weight: 600; margin-top: 4px; }
.rate-warn .icon { width: 16px; height: 16px; margin-top: 2px; }
.cart-cta { margin-top: 16px; display: grid; gap: 8px; }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 20, 20, 0.55); }
.drawer, .sheet { overscroll-behavior: contain; }

.drawer {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%;
  max-height: 88dvh; border-radius: 12px 12px 0 0;
  transform: translateY(0);
  transition: transform 320ms var(--ease-drawer), opacity 200ms ease, overlay 320ms allow-discrete, display 320ms allow-discrete;
}
.drawer[open] { display: flex; }
@starting-style { .drawer[open] { transform: translateY(100%); } }
.drawer:not([open]) { transform: translateY(100%); transition-duration: 220ms; }
.drawer-inner { display: flex; flex-direction: column; width: 100%; max-height: 88dvh; }
.drawer-head, .sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 8px 10px var(--gutter); border-bottom: 1px solid var(--line); flex: none;
}
.drawer-body { overflow-y: auto; padding: 4px var(--gutter) calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }

.sheet {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-height: 100dvh;
  opacity: 1; transform: translateY(0);
  transition: transform 280ms var(--ease-out), opacity 200ms ease, overlay 280ms allow-discrete, display 280ms allow-discrete;
}
@starting-style { .sheet[open] { transform: translateY(24px); opacity: 0; } }
.sheet:not([open]) { opacity: 0; transform: translateY(16px); transition-duration: 180ms; }
.sheet-inner { display: flex; flex-direction: column; height: 100%; }
.sheet-body { overflow-y: auto; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); flex: 1; overscroll-behavior: contain; }
@media (min-width: 768px) {
  .sheet {
    inset: 0; margin: auto; width: min(720px, calc(100% - 48px)); height: min(92dvh, 1000px);
    border-radius: 10px;
  }
  .sheet-body { padding-inline: 28px; }
  .sheet-head { padding-left: 28px; }
}
@media (min-width: 1024px) {
  .drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .sheet, .drawer:not([open]), .sheet:not([open]) { transform: none; }
  @starting-style { .drawer[open], .sheet[open] { transform: none; opacity: 0; } }
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-intro { color: var(--text-2); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
legend {
  padding: 0; margin-bottom: 4px; font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .field-row .field--short { max-width: 140px; }
}
label, .label { font-weight: 600; font-size: 0.92rem; }
.optional { font-weight: 400; color: var(--text-2); }
input[type="text"], input[type="tel"], input[type="search"]:not(.search-field input), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--gray-pinon); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 1rem;
  transition: border-color 150ms ease;
}
textarea { resize: vertical; min-height: 72px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.file-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--black); border-radius: var(--radius-sm); background: #fff;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.file-btn:active { transform: scale(0.97); }
.file-field input[type="file"]:focus-visible + .file-btn { outline: 3px solid var(--black); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .file-btn:hover { background: var(--bg-alt); } }
.file-name { font-size: 0.88rem; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
::placeholder { color: #767676; opacity: 1; }
.field-help { font-size: 0.82rem; color: var(--text-2); }
.field-error {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 0.85rem; font-weight: 700; color: var(--black);
}
.field-error::before {
  content: "!"; flex: none; display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--black); color: #fff;
  font-size: 0.72rem; font-weight: 900; margin-top: 1px;
}
[aria-invalid="true"] { border-color: var(--black) !important; border-width: 2px !important; background: #FAFAFA !important; }

.choices { display: grid; gap: 8px; }
@media (min-width: 480px) { .choices { grid-template-columns: 1fr 1fr; } .choices--three { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.choice-body {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 10px 14px 10px 44px; height: 100%;
  border: 1.5px solid var(--gray-pinon); border-radius: var(--radius);
  position: relative; transition: border-color 150ms ease, background-color 150ms ease;
}
.choice-body::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--gray-pinon); border-radius: 50%; background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.choice input:checked + .choice-body { border-color: var(--black); border-width: 2px; background: #FAFAFA; }
.choice input:checked + .choice-body::before { border-color: var(--red); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--red); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--black); outline-offset: 2px; }
.choice-title { font-weight: 700; font-size: 0.95rem; }
.choice-sub { font-size: 0.8rem; color: var(--text-2); }
.choices--compact .choice-body { min-height: 48px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-alt); border-left: 3px solid var(--gray-pinon);
  padding: 10px 12px; font-size: 0.88rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.notice--warn { border-left-color: var(--black); }
.notice .icon { margin-top: 1px; }
.notice .text-link { padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { border: 2px solid var(--black); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.summary-title { font-weight: 900; text-transform: uppercase; font-size: 1rem; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.summary-lines li span:last-child { font-variant-numeric: tabular-nums; flex: none; }
.summary-meta { font-size: 0.88rem; display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-meta b { font-weight: 700; }
.pay-later {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--black); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.92rem;
}
.pay-later .icon { color: var(--red-on-dark); margin-top: 2px; }
.form-status { font-weight: 700; display: flex; gap: 8px; }

/* ---------- Confirmación ---------- */
.confirm { display: grid; gap: 14px; align-content: start; text-align: center; padding-top: 32px; outline: none; }
.confirm-mark {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: var(--black); color: #fff; display: grid; place-items: center;
}
.confirm-mark .icon { width: 32px; height: 32px; stroke-width: 2.2; }
.confirm-kicker { color: var(--text-2); }
.confirm-kicker strong { color: var(--text); font-variant-numeric: tabular-nums; }
.confirm-title { font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.15; text-wrap: balance; }
.confirm-text { color: var(--text-2); max-width: 44ch; margin: 0 auto 6px; }
.confirm-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Cotizar ---------- */
.quote { display: grid; gap: 24px; }
.quote > *, .shop > *, .location > *, .faq-wrap > *, .footer-grid > * { min-width: 0; }
.quote-intro p:last-child { margin-top: 10px; color: var(--text-2); max-width: 42ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1.3fr; align-items: start; gap: 48px; } .card { padding: 24px; } }

/* ---------- Cómo pedir ---------- */
.steps { display: grid; gap: 0; counter-reset: s; border-top: 2px solid var(--black); }
.step { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; }
.step-num { grid-row: span 2; font-weight: 900; font-size: 1.6rem; color: var(--red); line-height: 1; }
.step h3 { font-size: 1.05rem; font-weight: 800; }
.step p { color: var(--text-2); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 0; }
  .step { grid-template-columns: 1fr; border-top: 2px solid var(--black); border-bottom: 0; padding-top: 18px; }
  .step-num { grid-row: auto; margin-bottom: 10px; font-size: 2rem; }
}
.trust-grid { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.trust-item { display: flex; gap: 12px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); }
.trust-item .icon { color: var(--gray-pinon); width: 24px; height: 24px; margin-top: 2px; }
.trust-item h3 { font-size: 0.98rem; font-weight: 800; margin-bottom: 4px; }
.trust-item p { font-size: 0.9rem; color: var(--text-2); }

.reviews { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review p { font-size: 0.95rem; }
.review footer { margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 20px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 48px; } }
.faq { border-top: 2px solid var(--black); }
.faq details { border-bottom: 1px solid var(--gray-visor); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--black); border-bottom: 2px solid var(--black);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 16px; color: var(--text-2); max-width: 62ch; }

/* ---------- Ubicación ---------- */
.location { display: grid; gap: 28px; }
.loc-list { display: grid; gap: 12px; margin-top: 16px; }
.loc-list p { display: flex; gap: 10px; align-items: flex-start; }
.loc-list .icon { color: var(--gray-pinon); margin-top: 2px; }
.loc-list a { font-weight: 700; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.loc-card { border-radius: var(--radius); min-height: 180px; display: grid; place-items: center; padding: 32px; overflow: hidden; }
.loc-card img { width: 220px; }
@media (min-width: 900px) { .location { grid-template-columns: 1.2fr 1fr; align-items: center; } .loc-card { min-height: 260px; } }

/* ---------- Cierre y footer ---------- */
.closing-inner { padding-block: 48px; display: grid; gap: 20px; justify-items: start; }
@media (min-width: 768px) { .closing-inner { padding-block: 64px; grid-template-columns: 1fr auto; align-items: center; } }

.site-footer { padding-block: 40px calc(24px + env(safe-area-inset-bottom)); border-top: 4px solid var(--red); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid img { width: 160px; }
.footer-note { margin-top: 12px; color: var(--on-dark-2); font-size: 0.9rem; max-width: 32ch; }
.footer-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-2); margin-bottom: 8px; font-stretch: var(--display-stretch); }
.footer-list li a, .footer-list li span:only-child { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-list .icon { width: 18px; height: 18px; color: #fff; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #333; display: grid; gap: 6px; font-size: 0.8rem; color: var(--on-dark-2); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- Barra de pedido y WhatsApp flotante (móvil) ---------- */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line);
  transform: translateY(0); transition: transform 240ms var(--ease-out);
}
@starting-style { .order-bar { transform: translateY(100%); } }
.order-bar .btn { justify-content: space-between; }
.order-bar .btn > span:nth-child(2) { margin-right: auto; }
.order-bar-meta { font-variant-numeric: tabular-nums; }
.order-bar .btn { white-space: nowrap; font-size: 0.95rem; }
body.has-order-bar { padding-bottom: 76px; }
@media (min-width: 1024px) { .order-bar { display: none !important; } body.has-order-bar { padding-bottom: 0; } }

.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 24;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 200ms var(--ease-out);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:active { transform: scale(0.94); }
body.has-order-bar .wa-float { transform: translateY(-76px); }
body.has-order-bar .wa-float:active { transform: translateY(-76px) scale(0.94); }
@media (min-width: 1024px) { .wa-float { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--black); color: #fff; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem; max-width: calc(100% - 32px); width: max-content;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.is-visible { transform: translate(-50%, 0); }
  .order-bar { transition: none; }
  .count-badge.bump { transform: none; }
}


/* Factura (0.13.0) */
.invoice-fields { display: grid; gap: 12px; margin-top: 4px; }
