/* Inevitable — sistema del local. El logo y la tipografía display (Libre Baskerville) son los del manual de marca;
   los colores también: escarlata #CB1421 y granate #791619 sobre negro absoluto y blanco puro (ver DESIGN.md). */
:root {
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --surface-sunken: #E8E8E8;
  --band: #000000;
  --band-raised: #141414;
  --text: #000000;
  --text-2: #474747;
  --text-3: #666666;
  --text-on-band: #FFFFFF;
  --text-on-band-2: #B3B3B3;
  --border: #E0E0E0;
  --border-strong: #000000;
  --accent: #CB1421;
  --accent-hover: #791619;
  --accent-on-band: #CB1421;
  --on-accent: #FFFFFF;
  --ok: #2E6B3E;
  --warn: #8A5A00;
  --warn-bg: #FBF2DE;
  --error: #C2410C;
  --error-bg: #FBEDE6;

  --f-display: 'Libre Baskerville', Georgia, serif;
  --f-body: 'Jost', system-ui, sans-serif;
  --t-display: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  --t-title: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  --t-sub: 1.25rem;
  --t-body: 1rem;
  --t-small: .875rem;
  --t-eyebrow: .75rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --ancho: 1280px;
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.banda :focus-visible, .header :focus-visible, .footer :focus-visible, .hero :focus-visible { outline-color: var(--text-on-band); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--s5); }
@media (max-width: 640px) { .contenedor { padding: 0 var(--s4); } }

/* ---------- tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 400; font-size: var(--t-display); line-height: 1.05; letter-spacing: -.5px; margin: 0; }
.titulo { font-family: var(--f-display); font-weight: 400; font-size: var(--t-title); line-height: 1.15; margin: 0; }
.eyebrow { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.destacado { color: var(--accent); font-style: italic; }
.banda .destacado { color: var(--accent-on-band); }
/* Sobre la foto del hero el rojo no llega a 3:1 (la foto cambia debajo): la palabra va en blanco y el rojo de la marca la subraya. */
.hero .destacado { color: var(--text-on-band); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.encabezado { text-align: center; margin-bottom: var(--s6); }
.encabezado .eyebrow { color: var(--accent); display: block; margin-bottom: var(--s2); }
.banda .encabezado .eyebrow { color: var(--text-on-band); }
.encabezado .titulo::after { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: var(--s3) auto 0; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 28px; border: 1px solid transparent;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.btn-primario { background: var(--accent); color: var(--on-accent); }
.btn-primario:hover { background: var(--accent-hover); }
.btn-borde { border-color: currentColor; }
.btn-borde:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.banda .btn-borde:hover, .hero .btn-borde:hover { background: var(--text-on-band); color: var(--band); border-color: var(--text-on-band); }
.btn-oscuro { background: var(--text); color: var(--bg); }
.btn-oscuro:hover { background: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-sunken); color: var(--text-3); border-color: var(--surface-sunken); cursor: not-allowed; }
.btn-ancho { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }

/* ---------- barra superior + header ---------- */
.topbar { background: var(--accent); color: var(--on-accent); font-size: var(--t-eyebrow); letter-spacing: .4px; }
.topbar .contenedor { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: var(--s4); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .topbar .dir { display: none; } .topbar .contenedor { justify-content: center; } }

.header { background: var(--band); color: var(--text-on-band); position: sticky; top: 0; z-index: 40; }
.header .contenedor { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo svg { display: block; height: 32px; width: auto; }
.nav { display: flex; gap: var(--s5); margin-left: auto; font-size: var(--t-small); }
.nav a { padding: var(--s2) 0; border-bottom: 1px solid transparent; transition: border-color var(--dur), color var(--dur); }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent-on-band); }
.acciones { display: flex; align-items: center; gap: var(--s3); }
.icono-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; transition: color var(--dur); }
.icono-btn:hover { color: var(--accent-on-band); }
.icono-btn svg { width: 22px; height: 22px; }
.contador { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.contador[data-n="0"] { display: none; }
.btn-wa { background: var(--accent); color: var(--on-accent); min-height: 40px; padding: 0 var(--s4); display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 500; transition: background var(--dur); }
.btn-wa:hover { background: var(--accent-hover); }
.btn-wa svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .acciones { margin-left: auto; }
  .btn-wa span { display: none; }
  .btn-wa { padding: 0 10px; }
  .nav.abierto { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--band); padding: var(--s3) var(--s5) var(--s5); gap: 0; border-top: 1px solid var(--band-raised); }
  .nav.abierto a { padding: var(--s3) 0; font-size: var(--t-body); border-bottom: 1px solid var(--band-raised); }
}
@media (max-width: 420px) { .logo svg { height: 26px; } .header .contenedor { gap: var(--s2); } .acciones { gap: 0; } }

.buscador { background: var(--band-raised); overflow: hidden; max-height: 0; transition: max-height var(--dur); }
.buscador.abierto { max-height: 400px; }
.buscador form { display: flex; gap: var(--s2); padding: var(--s4) 0; }
.buscador input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--text-on-band-2); background: transparent; color: var(--text-on-band); border-radius: 2px; }
.buscador input::placeholder { color: var(--text-on-band-2); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--text-on-band); background: var(--band); min-height: clamp(520px, 72vh, 680px); display: flex; align-items: center; overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img.fondo { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.05) 75%); z-index: 1; }
.hero .contenedor { position: relative; z-index: 2; width: 100%; }
.hero-texto { max-width: 520px; }
.hero .display { margin-bottom: var(--s5); }
.hero .bajada { font-size: var(--t-sub); margin: 0 0 var(--s3); }
.hero .apoyo { color: var(--text-on-band-2); margin: 0 0 var(--s6); max-width: 400px; }
.hero .ctas { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero .vertical { position: absolute; right: var(--s5); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; z-index: 2; color: var(--text-on-band-2); }
@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: var(--s7); }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.1) 100%); }
  .hero .vertical { display: none; }
}

/* ---------- secciones ---------- */
.seccion { padding: var(--s8) 0; }
.seccion-corta { padding: var(--s7) 0 var(--s4); }
.banda { background: var(--band); color: var(--text-on-band); }
.crema { background: var(--surface); }

.categorias { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.categoria { text-align: center; }
.categoria .foto { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.categoria img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur); }
.categoria:hover img { opacity: .85; }
.categoria span { display: block; margin-top: var(--s3); }
.categoria:hover span { color: var(--accent); }
@media (max-width: 480px) { .categorias { gap: var(--s3); } }

/* ---------- tarjeta de producto ---------- */
.grilla { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s5) var(--s4); }
.grilla-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grilla { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grilla, .grilla-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); } }
.producto { position: relative; display: flex; flex-direction: column; }
.producto .foto { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.producto .foto img { width: 100%; height: 100%; object-fit: cover; }
.producto .foto img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms; }
.producto:hover .foto img.alt { opacity: 1; }
.producto .info { padding-top: var(--s3); text-align: center; }
.producto .nombre { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin: 0; }
.producto a:hover .nombre { color: var(--accent); }
.producto .precio { font-weight: 500; margin: 2px 0 0; }
.producto .talles { font-size: var(--t-eyebrow); color: var(--text-3); margin: 2px 0 6px; }
.puntos { display: flex; gap: 6px; justify-content: center; }
.punto { width: 12px; height: 12px; border-radius: 9999px; border: 1px solid var(--border); }
.fav { position: absolute; top: var(--s2); right: var(--s2); width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent); background: rgba(255,255,255,.85); border-radius: 9999px; z-index: 2; transition: background var(--dur); }
.fav:hover { background: var(--bg); }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] svg { fill: var(--accent); }
.badge { position: absolute; top: var(--s2); left: var(--s2); background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; padding: 2px 8px; z-index: 2; }
.badge-agotado { background: var(--text); }
.producto.agotado .foto img { filter: grayscale(.7); opacity: .7; }

/* placeholder cuando falta la foto */
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: var(--s4); background: var(--surface-sunken); color: var(--text-3); font-family: var(--f-display); font-size: var(--t-small); }

/* ---------- outfits ---------- */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.look { display: grid; grid-template-columns: 1fr 1fr; background: var(--band-raised); min-height: 300px; }
.look .txt { padding: var(--s5); display: flex; flex-direction: column; }
.look h3 { margin: 0 0 var(--s3); font-weight: 600; font-size: var(--t-small); letter-spacing: 1.6px; }
.look ul { list-style: none; margin: 0; padding: 0; color: var(--text-on-band-2); font-size: var(--t-small); }
.look .total { font-family: var(--f-display); font-size: var(--t-sub); margin: auto 0 var(--s4); padding-top: var(--s4); }
.look .total small { display: block; font-family: var(--f-body); font-size: var(--t-eyebrow); color: var(--text-on-band-2); }
.look img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1080px) { .looks { grid-template-columns: 1fr; } .look { min-height: 260px; } }

/* ---------- carrusel ---------- */
.carrusel { position: relative; }
.pista { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * var(--s4)) / 6); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--s2); }
.pista::-webkit-scrollbar { display: none; }
.pista > * { scroll-snap-align: start; }
@media (max-width: 1080px) { .pista { grid-auto-columns: 30%; } }
@media (max-width: 640px) { .pista { grid-auto-columns: 46%; gap: var(--s3); } }
.flecha { position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: border-color var(--dur); }
.flecha:hover { border-color: var(--text); }
.flecha.izq { left: -18px; } .flecha.der { right: -18px; }
@media (max-width: 640px) { .flecha { display: none; } }

/* ---------- beneficios ---------- */
.beneficios { background: var(--accent); color: var(--on-accent); }
.beneficios ul { list-style: none; margin: 0; padding: var(--s6) 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.beneficios li { text-align: center; padding: 0 var(--s4); border-left: 1px solid rgba(255,255,255,.25); }
.beneficios li:first-child { border-left: 0; }
.beneficios svg { width: 34px; height: 34px; margin: 0 auto var(--s3); stroke: currentColor; fill: none; stroke-width: 1.4; }
.beneficios strong { display: block; font-size: var(--t-eyebrow); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 4px; }
.beneficios p { margin: 0; font-size: var(--t-small); opacity: .9; }
@media (max-width: 900px) { .beneficios ul { grid-template-columns: repeat(2, 1fr); gap: var(--s5) 0; } .beneficios li:nth-child(odd) { border-left: 0; } .beneficios li:last-child { grid-column: 1 / -1; } }

/* ---------- testimonios ---------- */
.testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.testimonio { border: 1px solid var(--band-raised); background: var(--band-raised); padding: var(--s6) var(--s5); text-align: center; display: flex; flex-direction: column; gap: var(--s4); }
.estrellas { color: var(--accent-on-band); letter-spacing: 4px; }
.testimonio p { margin: 0; font-family: var(--f-display); font-size: 1.1rem; font-style: italic; }
.testimonio cite { font-style: normal; color: var(--text-on-band-2); font-size: var(--t-small); margin-top: auto; }
.nota-demo { text-align: center; color: var(--text-on-band-2); font-size: var(--t-eyebrow); margin-top: var(--s4); }
@media (max-width: 900px) { .testimonios { grid-template-columns: 1fr; } }

/* ---------- instagram ---------- */
.insta-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); }
.insta-cab .eyebrow { color: var(--accent); }
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.insta a { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur); }
.insta a:hover img { opacity: .8; }
@media (max-width: 640px) { .insta { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.footer { background: var(--band); color: var(--text-on-band); padding: var(--s8) 0 var(--s5); font-size: var(--t-small); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr; gap: var(--s6); }
.footer h4 { font-size: var(--t-eyebrow); letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 var(--s4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); color: var(--text-on-band-2); }
.footer a:hover { color: var(--text-on-band); }
.footer .marca p { color: var(--text-on-band-2); max-width: 240px; }
.pagos { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pago { background: var(--bg); color: var(--text); font-size: 11px; font-weight: 700; padding: 6px 10px; letter-spacing: .5px; }
.legal { border-top: 1px solid var(--band-raised); margin-top: var(--s7); padding-top: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; color: var(--text-on-band-2); font-size: var(--t-eyebrow); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .marca { grid-column: 1 / -1; } }

.wa-flotante { position: fixed; right: var(--s5); bottom: var(--s5); width: 56px; height: 56px; border-radius: 9999px; background: #1F8F4E; color: #fff; display: grid; place-items: center; z-index: 30; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: background var(--dur); }
.wa-flotante:hover { background: #17733e; }
.wa-flotante svg { width: 28px; height: 28px; }

/* ---------- vistas internas ---------- */
.migas { font-size: var(--t-small); color: var(--text-3); padding: var(--s5) 0; }
.migas a:hover { color: var(--accent); }
.listado { display: grid; grid-template-columns: 240px 1fr; gap: var(--s6); padding-bottom: var(--s8); }
.filtros { display: grid; gap: var(--s5); align-content: start; }
.filtros fieldset { border: 0; padding: 0; margin: 0; }
.filtros legend { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-width: 44px; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--border); background: var(--bg); font-size: var(--t-small); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: border-color var(--dur), background var(--dur), color var(--dur); }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.tachado, .chip:disabled { background: var(--surface-sunken); color: var(--text-3); text-decoration: line-through; border-color: var(--surface-sunken); cursor: not-allowed; }
.chip-color .punto { width: 14px; height: 14px; }
.listado-cab { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.listado-cab select { min-height: 44px; border: 1px solid var(--border); padding: 0 var(--s3); background: var(--bg); border-radius: 2px; }
.btn-filtros { display: none; }
@media (max-width: 860px) {
  .listado { grid-template-columns: 1fr; }
  .filtros { display: none; padding: var(--s4); background: var(--surface); }
  .filtros.abierto { display: grid; }
  .btn-filtros { display: inline-flex; }
}
.vacio { text-align: center; padding: var(--s8) var(--s4); background: var(--surface); }
.vacio p { margin: var(--s2) 0 var(--s5); color: var(--text-2); }

.ficha { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); padding-bottom: var(--s8); }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.galeria .foto { aspect-ratio: 3/4; background: var(--surface); overflow: hidden; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info { position: sticky; top: 96px; align-self: start; display: grid; gap: var(--s5); }
.ficha-info .precio { font-size: var(--t-sub); font-weight: 500; margin: var(--s2) 0 0; }
.ficha-info .cuotas { color: var(--text-3); font-size: var(--t-small); margin: 2px 0 0; }
.ficha-info .desc { color: var(--text-2); margin: 0; }
.stock-msg { font-size: var(--t-small); min-height: 1.4em; margin: 0; }
.stock-msg.pocas { color: var(--warn); }
.stock-msg.sin { color: var(--error); }
.stock-msg.ok { color: var(--ok); }
.cantidad { display: inline-flex; border: 1px solid var(--border); }
.cantidad button { width: 44px; height: 46px; font-size: 1.2rem; }
.cantidad button:hover { background: var(--surface); }
.cantidad output { width: 40px; display: grid; place-items: center; }
.compra { display: flex; gap: var(--s3); }
.compra .btn { flex: 1; }
.compra .cantidad { flex: none; }
@media (max-width: 520px) { .compra { flex-wrap: wrap; } .compra .cantidad { flex: 1 0 100%; justify-content: center; } }
.bloque { display: grid; gap: var(--s4); }
.bloque > h2.eyebrow { margin: 0; color: var(--text-2); }
.bloque.mp { border: 1px solid var(--border); gap: 0; max-width: none; }
.garantias { list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px solid var(--border); display: grid; gap: var(--s2); font-size: var(--t-small); color: var(--text-2); }
@media (max-width: 860px) {
  .ficha { grid-template-columns: 1fr; gap: var(--s5); }
  .galeria { grid-template-columns: 1fr 1fr; }
  .ficha-info { position: static; }
}

/* ---------- carrito lateral ---------- */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.velo.visible { opacity: 1; pointer-events: auto; }
.cajon { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 61; transform: translateX(100%); transition: transform 260ms cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; }
.cajon.abierto { transform: none; }
.cajon-cab { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.cajon-cuerpo { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); }
.cajon-pie { border-top: 1px solid var(--border); padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s3); background: var(--surface); }
.linea { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.linea img, .linea .ph { width: 72px; height: 96px; object-fit: cover; }
.linea h4 { margin: 0; font-size: var(--t-small); font-weight: 600; }
.linea .var { color: var(--text-3); font-size: var(--t-eyebrow); margin: 2px 0 var(--s2); }
.linea .quitar { font-size: var(--t-eyebrow); color: var(--text-3); text-decoration: underline; }
.linea .quitar:hover { color: var(--error); }
.linea .monto { font-weight: 500; white-space: nowrap; }
.fila { display: flex; justify-content: space-between; gap: var(--s4); }
.fila.total { font-size: var(--t-sub); font-weight: 500; }
.envio-gratis { font-size: var(--t-small); color: var(--text-2); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7); padding-bottom: var(--s8); }
.pasos { display: flex; gap: var(--s4); margin-bottom: var(--s5); font-size: var(--t-eyebrow); letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); flex-wrap: wrap; }
.pasos .activo { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.form { display: grid; gap: var(--s4); }
.form .doble { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.campo { display: grid; gap: 6px; }
.campo label { font-size: var(--t-small); font-weight: 500; }
.campo input, .campo select { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg); }
.campo input:hover, .campo select:hover { border-color: var(--text-3); }
.campo input[aria-invalid="true"] { border-color: var(--error); }
.campo .err { color: var(--error); font-size: var(--t-eyebrow); min-height: 1em; }
.opciones { display: grid; gap: var(--s2); }
.opcion { display: flex; align-items: center; gap: var(--s3); border: 1px solid var(--border); padding: var(--s4); cursor: pointer; transition: border-color var(--dur); }
.opcion:hover { border-color: var(--text-3); }
.opcion:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opcion input { accent-color: var(--accent); width: 18px; height: 18px; }
.opcion .det { margin-left: auto; font-size: var(--t-small); color: var(--text-2); }
.resumen { background: var(--surface); padding: var(--s5); align-self: start; position: sticky; top: 96px; display: grid; gap: var(--s3); }
.aviso { padding: var(--s4); font-size: var(--t-small); display: flex; gap: var(--s3); align-items: flex-start; }
.aviso-error { background: var(--error-bg); color: var(--error); border-left: 3px solid var(--error); }
.aviso-info { background: var(--surface); color: var(--text-2); border-left: 3px solid var(--text-3); }
.aviso-warn { background: var(--warn-bg); color: var(--warn); border-left: 3px solid var(--warn); }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .resumen { position: static; order: -1; } .form .doble { grid-template-columns: 1fr; } }

/* pasarela simulada */
.mp { max-width: 480px; margin: 0; border: 1px solid var(--border); }
.mp-cab { background: #009EE3; color: #fff; padding: var(--s4) var(--s5); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.mp-cuerpo { padding: var(--s5); display: grid; gap: var(--s4); }
.mp .btn-mp { background: #009EE3; color: #fff; }
.mp .btn-mp:hover { background: #0078b0; }
.marca-demo { font-size: var(--t-eyebrow); background: rgba(255,255,255,.2); padding: 2px 8px; }

.gracias { text-align: center; max-width: 560px; margin: var(--s8) auto; display: grid; gap: var(--s4); justify-items: center; }
.gracias .check { width: 64px; height: 64px; border-radius: 9999px; background: var(--ok); color: var(--on-accent); display: grid; place-items: center; font-size: 2rem; }

.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translate(-50%, 140%); background: var(--text); color: var(--bg); padding: var(--s3) var(--s5); z-index: 80; transition: transform 260ms cubic-bezier(.16,1,.3,1); font-size: var(--t-small); max-width: calc(100% - 32px); visibility: hidden; }
.toast.visible { transform: translate(-50%, 0); visibility: visible; }

.esqueleto { background: var(--surface-sunken); animation: latir 1.2s ease-in-out infinite; }
@keyframes latir { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
