/* BRIVA Distribuciones · Dirección B "Moderna y disruptiva"
   Paleta: Índigo #2A2A8C · Tinta #14123A · Lima #D4F04F · Hueso #F7F5F0
   Tipografía: Space Grotesk (logo y títulos) · Inter (texto) · Space Mono (datos)
   Elemento gráfico: la línea de base compartida. Lima solo como acento. */

:root {
  --indigo: #2A2A8C;
  --tinta: #14123A;
  --noche: #0D0C26;
  --lima: #D4F04F;
  --hueso: #F7F5F0;
  --hueso-2: #ECE8DE;
  --blanco: #FFFFFF;

  --mute-d: rgba(247, 245, 240, .72);
  --mute-l: rgba(20, 18, 58, .66);
  --hair-d: rgba(247, 245, 240, .22);
  --hair-l: rgba(20, 18, 58, .16);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4.4vw, 72px);
  --gap: clamp(12px, 1.6vw, 24px);
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .24, 1);
  --ease-film: cubic-bezier(.65, .05, .2, 1);
  --chrome-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--chrome-h) + 12px); }
body {
  margin: 0; background: var(--hueso); color: var(--tinta);
  font: 400 16px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--indigo); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 300; background: var(--lima); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lima { background: var(--lima); color: var(--tinta); }
.btn--indigo { background: var(--indigo); color: var(--hueso); }
.btn--indigo:hover { background: var(--tinta); }
.btn--line { border-color: var(--tinta); background: transparent; }
.btn--line:hover { background: var(--tinta); color: var(--hueso); }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.btn-text { background: none; border: 0; color: var(--mute-l); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--hair-l); background: transparent; cursor: pointer; font-size: 18px;
  transition: background .2s, color .2s;
}
.round:hover { background: var(--tinta); color: var(--hueso); }

/* ---------- Chrome fijo ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--chrome-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); color: var(--tinta);
  transition: color .4s var(--ease), background .4s;
}
.chrome.is-dark { color: var(--hueso); }
.chrome.is-solid { background: rgba(247,245,240,.9); backdrop-filter: blur(10px); }
.chrome.is-dark.is-solid { background: rgba(13,12,38,.82); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; justify-self: start; }
.logo__word { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .05em; line-height: 1; }
.logo__line { height: 3px; margin-top: 4px; border-radius: 2px; background: var(--lima); }
.chrome:not(.is-dark) .logo__line { background: var(--indigo); }
.chrome__mid { opacity: .8; }
.chrome__btn {
  justify-self: end; display: inline-flex; gap: 10px; align-items: center;
  padding: 9px 14px; border: 1px solid currentColor; border-radius: 4px; background: transparent; cursor: pointer;
}
.chrome__btn span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--lima); color: var(--tinta); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 70;
  width: 190px; display: grid; gap: 6px; color: var(--tinta);
  transition: color .4s var(--ease), opacity .4s;
}
.hud.is-dark { color: var(--hueso); }
.hud.is-hidden { opacity: 0; }
.hud__label { font-size: 10px; opacity: .8; }
.hud__row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.hud__bar { height: 2px; background: var(--hair-l); position: relative; overflow: hidden; }
.hud.is-dark .hud__bar { background: var(--hair-d); }
.hud__bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--indigo); }
.hud.is-dark .hud__bar span { background: var(--lima); }

/* ---------- 1 · Hero ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--chrome-h) + 3vh) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center; position: relative;
}
.hero__word { width: 100%; height: auto; overflow: visible; }
.hero__svgtext { font-family: var(--f-display); font-weight: 700; font-size: 340px; letter-spacing: -6px; }
.hero__word image { transition: opacity .6s var(--ease); }
.hero__baseline {
  display: block; height: clamp(8px, 1.4vw, 18px); border-radius: 4px; background: var(--lima);
  margin-top: clamp(10px, 1.4vw, 20px); transform-origin: left;
  animation: draw 1.4s .3s var(--ease-film) both;
}
@keyframes draw { from { transform: scaleX(0); } }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(28px, 5vh, 56px); padding-right: 220px; }
.hero__lead { max-width: 360px; font-size: 15px; color: var(--mute-l); }
.hero__scroll { display: inline-flex; gap: 10px; align-items: center; }
.hero__scroll::before { content: ""; width: 1px; height: 28px; background: currentColor; animation: tick 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes tick { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 2 · Historia fijada ---------- */
.story { height: calc(var(--len) * 100svh); position: relative; background: var(--noche); color: var(--hueso); }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__bg {
  position: absolute; inset: -6%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  transform: scale(calc(1.12 - var(--p, 0) * .12)) rotate(-4deg); opacity: .9;
}
.story__bg div { aspect-ratio: 1; border-radius: 10px; background: var(--hueso) center / 78% no-repeat; }
.story__shade { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 30% 50%, rgba(13,12,38,.55), rgba(13,12,38,.94) 70%),
  linear-gradient(0deg, rgba(42,42,140,.35), rgba(13,12,38,.2)); }
.chapter {
  position: absolute; inset: 0; padding: calc(var(--chrome-h) + 8vh) var(--gutter) 13vh;
  opacity: 0; visibility: hidden; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s;
}
.chapter.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s; }
.chapter .eyebrow { color: var(--lima); }
.chapter__big { font-size: clamp(64px, 13vw, 210px); line-height: .9; letter-spacing: -.045em; }
.chapter__big--light { font-weight: 300; }
.chapter__big--heavy { font-weight: 700; }
.chapter__text { max-width: 420px; margin-top: 24px; font-size: 16px; color: var(--mute-d); }
.chapter__text strong { color: var(--hueso); font-weight: 600; }
.chapter--right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.chapter--right .chapter__text { margin-left: auto; }
.chapter--bottom { display: flex; flex-direction: column; justify-content: space-between; }
.chapter__aside { align-self: flex-end; max-width: 300px; }
.chapter__aside h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; color: var(--lima); }
.chapter__aside p { color: var(--mute-d); font-size: 14px; }

.ticket {
  margin-top: 28px; width: min(320px, 100%); text-align: left;
  background: rgba(247,245,240,.06); border: 1px solid var(--hair-d); border-radius: 10px; padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.ticket__head, .ticket__foot { display: flex; justify-content: space-between; font-size: 10px; }
.ticket__head span:last-child { color: var(--lima); }
.ticket__list { grid-template-columns: minmax(0, 1fr); list-style: none; margin: 12px 0; padding: 12px 0; border-block: 1px solid var(--hair-d); display: grid; gap: 8px; min-height: 120px; }
.ticket__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; text-transform: none; letter-spacing: .02em; animation: rise .45s var(--ease) both; }
.ticket__list li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__foot span:last-child { color: var(--lima); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 3 · Ruta ---------- */
.ruta { height: calc(var(--len) * 100svh); background: var(--indigo); color: var(--hueso); position: relative; }
.ruta__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap); align-items: center;
  padding: calc(var(--chrome-h) + 4vh) var(--gutter) 13vh;
}
.ruta__copy .eyebrow { color: var(--lima); }
.ruta__chart { margin: 0; position: relative; }
.ruta__chart svg { width: 100%; height: clamp(220px, 42vh, 380px); overflow: visible; }
.ruta__grid line { stroke: var(--hair-d); stroke-dasharray: 2 6; }
.ruta__path { fill: none; stroke: var(--lima); stroke-width: 3; stroke-linecap: round; }
.ruta__dot { fill: var(--lima); filter: drop-shadow(0 0 10px rgba(212,240,79,.8)); }
.ruta__stops { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; font-size: 10px; }
.ruta__stops li { opacity: .3; border-top: 1px solid var(--hair-d); padding-top: 10px; transition: opacity .4s, border-color .4s; }
.ruta__stops li b { display: block; font-size: 13px; color: var(--hueso); margin-bottom: 4px; }
.ruta__stops li.is-on { opacity: 1; border-color: var(--lima); }
.ruta__chart figcaption { margin-top: 18px; opacity: .55; font-size: 10px; }

/* ---------- 4 · Ficha de rubro ---------- */
.ficha { padding: calc(var(--chrome-h) + 32px) var(--gutter) 64px; background: var(--hueso); min-height: 100svh; display: flex; flex-direction: column; }
.ficha__rule { display: flex; justify-content: space-between; gap: 16px; border-top: 2px solid var(--tinta); padding-top: 12px; }
.ficha__grid { flex: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vh, 56px) 0; }
.ficha__kicker { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); color: var(--indigo); }
.ficha__title { font-size: clamp(52px, 9vw, 150px); line-height: .88; letter-spacing: -.05em; margin: 6px 0 clamp(24px, 4vh, 40px); }
.ficha__label { margin-bottom: 10px; }
.ficha__subs { font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px); line-height: 1.25; max-width: 640px; }
.ficha__subs span { white-space: nowrap; }
.ficha__subs span + span::before { content: " · "; color: var(--indigo); white-space: normal; }
.ficha__stats { display: flex; gap: clamp(20px, 4vw, 56px); margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--hair-l); }
.ficha__stats dt { font-size: 10px; color: var(--mute-l); }
.ficha__stats dd { margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; letter-spacing: -.03em; }
.ficha__actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.ficha__nav { display: flex; gap: 8px; }
.ficha__arch {
  aspect-ratio: 3 / 4.2; width: 100%; max-width: 420px; justify-self: end;
  border-radius: 999px 999px 0 0; overflow: hidden; position: relative; background: var(--blanco);
  border-bottom: 10px solid var(--lima);
}
.ficha__arch div { position: absolute; inset: 0; background: center / 70% no-repeat var(--blanco); opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.ficha__arch div.is-on { opacity: 1; transform: none; }
.ficha__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ficha__chips button, .subchips button, .alta__chips label span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair-l); background: transparent;
  font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.ficha__chips button:hover, .subchips button:hover { border-color: var(--tinta); }
.ficha__chips button[aria-selected="true"], .subchips button[aria-pressed="true"] { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }

/* ---------- 5 · Catálogo ---------- */
.catalogo { padding: clamp(72px, 10vw, 128px) var(--gutter); background: var(--hueso-2); }
.catalogo__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.catalogo__title { font-size: clamp(40px, 6vw, 88px); letter-spacing: -.04em; }
.catalogo__note { max-width: 340px; color: var(--mute-l); font-size: 14px; }
.catalogo__layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.filtros { position: sticky; top: calc(var(--chrome-h) + 16px); max-height: calc(100svh - var(--chrome-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.search input { width: 100%; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--hair-l); background: var(--blanco); font: 400 15px var(--f-text); color: var(--tinta); }
.filtros__list { list-style: none; margin: 16px 0 0; padding: 0; }
.filtros__list button {
  width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left;
  padding: 10px 2px; border: 0; border-bottom: 1px solid var(--hair-l); background: none; cursor: pointer; font-size: 14px;
  transition: color .2s, padding .25s var(--ease);
}
.filtros__list button span:last-child { font-family: var(--f-mono); font-size: 11px; color: var(--mute-l); }
.filtros__list button:hover { padding-left: 8px; }
.filtros__list button[aria-current="true"] { font-weight: 600; color: var(--indigo); padding-left: 10px; box-shadow: inset 3px 0 0 var(--lima); }
.filtros, .resultados { min-width: 0; }
.subchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subchips:empty { display: none; }
.subchips button { font-size: 12px; padding: 6px 12px; }
.resultados__count { color: var(--mute-l); margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--mute-l); border: 1px dashed var(--hair-l); border-radius: var(--r); }
.pager { display: flex; justify-content: center; margin-top: 32px; }
.pager[hidden] { display: none; }

.card { background: var(--blanco); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; border: 1px solid transparent; transition: border-color .2s, transform .3s var(--ease); }
.card:hover { border-color: var(--hair-l); transform: translateY(-3px); }
.card__media { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__ph { font-family: var(--f-display); font-weight: 700; font-size: 44px; color: var(--indigo); opacity: .15; }
.card__body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__sub { font-size: 9.5px; color: var(--mute-l); }
.card__nombre { font: 500 14px/1.3 var(--f-text); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.card__precio { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.card__precio.is-consultar { font-size: 13px; font-weight: 500; color: var(--indigo); }
.card__cod { font-size: 9.5px; color: var(--mute-l); }
.card__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hair-l); border-radius: 999px; }
.qty button { width: 30px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty input { width: 30px; border: 0; background: none; text-align: center; font: 600 14px var(--f-text); color: var(--tinta); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add { flex: 1; padding: 10px 12px; font-size: 13px; }

/* ---------- 6 · Cierre ---------- */
.cierre { background: var(--noche); color: var(--hueso); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.cierre .eyebrow { color: var(--lima); }
.cierre__grid { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cierre__title { font-size: clamp(64px, 11vw, 180px); }
.alta { display: grid; gap: 20px; }
.alta fieldset { border: 0; padding: 0; margin: 0; }
.alta legend { margin-bottom: 10px; opacity: .8; }
.alta__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alta__chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.alta__chips label span { display: inline-block; border-color: var(--hair-d); font-size: 12px; padding: 6px 12px; }
.alta__chips input:checked + span { background: var(--lima); color: var(--tinta); border-color: var(--lima); }
.alta__chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--lima); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair-d); border-radius: 8px; overflow: hidden; }
.seg span { display: block; text-align: center; padding: 11px 6px; cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.seg label + label span { border-left: 1px solid var(--hair-d); }
.seg input:checked + span { background: var(--hueso); color: var(--tinta); }
.field { display: grid; gap: 8px; }
.field input { padding: 13px 14px; border-radius: 8px; font: 400 15px var(--f-text); border: 1px solid var(--hair-l); background: var(--blanco); color: var(--tinta); }
.cierre .field input { background: transparent; border-color: var(--hair-d); color: var(--hueso); }
.cierre .field input::placeholder { color: rgba(247,245,240,.4); }
.field input.is-error { border-color: #F08A6B; }
.alta__note { font-size: 12px; opacity: .55; }

/* ---------- Footer ---------- */
.footer { background: var(--noche); color: var(--hueso); padding: 0 var(--gutter) 28px; }
.footer__word { border-top: 1px solid var(--hair-d); padding-top: clamp(40px, 6vw, 80px); }
.footer__word span:first-child { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(96px, 25vw, 400px); line-height: .78; letter-spacing: -.02em; }
.footer__line { display: block; height: clamp(8px, 1.6vw, 22px); background: var(--lima); border-radius: 4px; margin-top: clamp(12px, 2vw, 28px); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.footer__cols .eyebrow { color: var(--lima); margin-bottom: 10px; }
.footer__cols p:not(.eyebrow) { color: var(--mute-d); font-size: 15px; }
.footer__cols a { text-decoration: none; border-bottom: 1px solid var(--hair-d); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hair-d); padding-top: 20px; opacity: .6; }
.footer__legal a { text-decoration: none; }

/* ---------- Panel de pedido ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(13,12,38,.55); }
.pedido {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  background: var(--hueso); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease-film);
}
.pedido.is-open { transform: none; }
.pedido__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 3px solid var(--indigo); }
.pedido__head h2 { font-size: 28px; }
.pedido__body { flex: 1; overflow-y: auto; padding: 4px 24px; }
.pedido__empty { color: var(--mute-l); padding: 40px 0; text-align: center; }
.pedido__form { display: grid; gap: 10px; }
.pedido__form .field { min-width: 0; }
.pedido__form .field input { width: 100%; min-width: 0; padding: 10px 12px; }
.pedido__foot { max-height: 64vh; overflow-y: auto; }
.pedido__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .pedido__dos { grid-template-columns: 1fr; } }
.pedido__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pedido__acepto { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mute-l); line-height: 1.4; }
.pedido__acepto input { margin-top: 2px; }
.pedido__ok { padding: 32px 0; display: grid; gap: 10px; text-align: center; }
.pedido__ok b { font: 600 22px var(--f-text); color: var(--tinta); }
.pedido__ok p { color: var(--mute-l); }
[data-enviar].is-disabled, [data-enviar-web]:disabled { opacity: .45; pointer-events: none; }
.linea { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair-l); }
.linea img, .linea__ph { width: 48px; height: 48px; object-fit: contain; background: var(--blanco); border-radius: 8px; grid-row: 1 / span 2; }
.linea__nombre { font-size: 14px; font-weight: 500; line-height: 1.3; }
.linea__meta { font-size: 9.5px; color: var(--mute-l); grid-column: 2; }
.linea .qty { grid-row: 1 / span 2; grid-column: 3; background: var(--blanco); }
.pedido__foot { padding: 18px 24px 22px; display: grid; gap: 12px; background: var(--blanco); border-top: 1px solid var(--hair-l); }
.pedido__total { display: flex; justify-content: space-between; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--chrome-h) + 12px); z-index: 120;
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: var(--hueso); padding: 11px 16px; border-radius: 6px;
  border-bottom: 3px solid var(--lima); text-transform: none; letter-spacing: .02em; font-size: 12px;
  transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .chrome__mid { display: none; }
  .chrome { grid-template-columns: 1fr auto; }
  .hero__foot { padding-right: 0; flex-direction: column; align-items: flex-start; }
  .ruta__stage { grid-template-columns: 1fr; align-content: center; }
  .ruta__stops { grid-template-columns: repeat(3, 1fr); }
  .ficha__grid { grid-template-columns: 1fr; }
  .ficha__arch { order: -1; max-width: 260px; justify-self: start; }
  .catalogo__layout { grid-template-columns: minmax(0, 1fr); }
  .filtros { position: static; max-height: none; overflow: visible; }
  .filtros__list { display: flex; gap: 6px; overflow-x: auto; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filtros__list button { white-space: nowrap; border: 1px solid var(--hair-l); border-radius: 999px; padding: 8px 14px; gap: 10px; }
  .filtros__list button:hover { padding-left: 14px; }
  .filtros__list button[aria-current="true"] { background: var(--tinta); color: var(--hueso); box-shadow: none; padding-left: 14px; }
  .filtros__list button[aria-current="true"] span:last-child { color: var(--lima); }
  .cierre__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { justify-content: flex-end; padding-bottom: 120px; }
  .hud { width: 150px; bottom: 14px; }
  .hud__row { font-size: 13px; }
  .chapter { padding-bottom: 18vh; }
  .chapter__text { font-size: 15px; }
  .ticket { margin-top: 18px; }
  .ticket__list { min-height: 96px; }
  .ruta__stops { grid-template-columns: repeat(2, 1fr); }
  .ficha__rule span:nth-child(2) { display: none; }
  .ficha__stats { gap: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__media { padding: 10px; }
  .card__body { padding: 0 10px 10px; }
  .card__actions { flex-direction: column; }
  .card__actions .qty { justify-content: space-between; }
  .card__actions .qty input { flex: 1; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}
