/* Tokens. Cada mundo sobrescribe las mismas variables. */
:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --ios-bg: #f3f5fb;
  --ios-ink: #0d1530;
  --ios-accent: #2f6bff;
  --ios-accent-2: #8ab4ff;

  --and-bg: #0c0f0d;
  --and-ink: #eef7ea;
  --and-accent: #b6ff3b;
  --and-accent-2: #ff3d7f;

  --hot: #ff4d2e;
  --ok: #1fbf75;
  --warn: #ffb020;

  --bg: #0e1016;
  --ink: #f4f5f8;
  --accent: var(--hot);
  --accent-2: #ffd23f;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-world="iphone"] {
  --bg: var(--ios-bg); --ink: var(--ios-ink);
  --accent: var(--ios-accent); --accent-2: var(--ios-accent-2);
}
body[data-world="android"] {
  --bg: var(--and-bg); --ink: var(--and-ink);
  --accent: var(--and-accent); --accent-2: var(--and-accent-2);
}

/* Derivados: se declaran en body para que se recalculen con el --ink de cada mundo. */
body {
  --muted: color-mix(in oklab, var(--ink) 60%, transparent);
  --surface: color-mix(in oklab, var(--ink) 6%, transparent);
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font-body);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body::before { /* grano sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 700 22px var(--font-display); text-decoration: none; letter-spacing: -0.03em; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { height: 46px; width: auto; transform: rotate(-8deg); transition: transform 0.4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(0deg); }
.logo span { color: var(--accent); margin-inline: -8px; }
.logo small { font: 500 10px var(--font-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.nav a:hover { background: var(--surface); }
.nav a.on { background: var(--ink); color: var(--bg); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-ios { background: var(--ios-accent); }
.dot-and { background: var(--and-accent); box-shadow: 0 0 0 2px #0c0f0d; }
.cart-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
}
.cart-btn b { background: var(--accent); color: var(--bg); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
body[data-world="iphone"] .cart-btn b { color: #fff; }
.aviso { text-align: center; font-size: 12px; padding: 6px; background: var(--accent-2); color: #111; }

main { min-height: 70vh; outline: none; }
.wrap { padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }

/* Inicio: pantalla partida iPhone | Android */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; position: relative; }
.half {
  position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(24px, 5vw, 64px); transition: flex 0.6s var(--ease), filter 0.4s;
}
.half-ios { background: radial-gradient(120% 90% at 20% 10%, #ffffff 0%, #dfe7ff 45%, #a9c0ff 100%); color: var(--ios-ink); }
.half-and { background: radial-gradient(120% 90% at 80% 10%, #1c2a12 0%, #0c0f0d 55%), #0c0f0d; color: var(--and-ink); }
.half-and::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; top: -10%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--and-accent-2) 55%, transparent), transparent 70%);
  filter: blur(30px);
}
.split:hover .half { filter: saturate(0.7) brightness(0.92); }
.split .half:hover { filter: none; }
.half .kicker { font: 600 13px var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.half h1 { font-size: clamp(56px, 9vw, 132px); margin: 8px 0 14px; position: relative; z-index: 1; }
.half-ios h1 em { font-style: normal; color: var(--ios-accent); }
.half-and h1 em { font-style: normal; color: var(--and-accent); }
.half p { max-width: 34ch; font-size: 18px; position: relative; z-index: 1; margin: 0 0 22px; }
.half .go {
  align-self: flex-start; position: relative; z-index: 1; padding: 14px 22px; border-radius: 999px; font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.half-ios .go { background: var(--ios-ink); color: #fff; }
.half-and .go { background: var(--and-accent); color: #0c0f0d; }
.half:hover .go { transform: translateX(8px); }
.half > :not(.mock) { position: relative; z-index: 1; }
.half .mock { position: absolute; top: 7%; width: clamp(90px, 11vw, 160px); transition: transform 0.7s var(--ease); }
.half-ios .mock { right: 10%; transform: rotate(-8deg); }
.half-and .mock { right: 10%; transform: rotate(8deg); }
.half-ios:hover .mock { transform: rotate(-2deg) translateY(-10px); }
.half-and:hover .mock { transform: rotate(2deg) translateY(-10px); }
.vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot); color: #fff; font: 700 20px var(--font-display);
  box-shadow: 0 0 0 8px var(--bg); pointer-events: none;
}

/* Teléfono dibujado en CSS (en la tienda real va la foto) */
.phone {
  aspect-ratio: 9 / 19; border-radius: 22% / 10%; position: relative;
  background: linear-gradient(150deg, color-mix(in oklab, var(--c) 92%, #fff), var(--c) 55%, color-mix(in oklab, var(--c) 70%, #000));
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--c) 60%, #000), 0 30px 60px -20px rgb(0 0 0 / 0.45);
}
.phone::before { /* módulo de cámara */
  content: ""; position: absolute; top: 5%; left: 8%; width: 42%; aspect-ratio: 1; border-radius: 28%;
  background: color-mix(in oklab, var(--c) 75%, #000);
  box-shadow: inset 6px 6px 0 -2px #111, inset -6px -6px 0 -2px #222;
}
.phone.and::before { width: 80%; left: 10%; aspect-ratio: 3.2; border-radius: 999px; }

/* Franja de confianza */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.trust div { padding: 22px clamp(16px, 3vw, 36px); border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font: 600 17px var(--font-display); }
.trust span { color: var(--muted); font-size: 14px; }

.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-title h2 { font-size: clamp(32px, 4vw, 52px); }
.sec-title a { font-weight: 700; }

/* Bloque de grados */
.grades { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 14px; }
.grades .intro { padding-right: 20px; }
.grades .intro p { color: var(--muted); }
.grade { border-radius: var(--r-lg); padding: 26px; background: var(--surface); border: 1px solid var(--line); }
.grade .g { font: 700 54px var(--font-display); }
.grade:nth-child(2) .g { color: var(--ok); }
.grade:nth-child(3) .g { color: #3aa0ff; }
.grade:nth-child(4) .g { color: var(--warn); }

/* Mundo: catálogo */
.world-hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 24px; margin-bottom: 26px; }
.world-hero h1 { font-size: clamp(52px, 8vw, 110px); }
.world-hero h1 em { font-style: normal; color: var(--accent); }
body[data-world="iphone"] .world-hero h1 em { -webkit-text-stroke: 0; }
.world-hero p { color: var(--muted); font-size: 18px; margin: 0; }
.switch-world { font-size: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 16px;
  border-radius: 999px; font-weight: 500; transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
body[data-world="iphone"] .chip[aria-pressed="true"] { color: #fff; }

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: 22px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.filters input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.filters input[type="range"] { accent-color: var(--accent); width: 100%; }
.count { color: var(--muted); margin: 0 0 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; text-decoration: none; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.2s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -28px var(--accent); }
.card .stage { display: grid; place-items: center; padding: 22px 0 10px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%); }
.card .phone { width: 92px; }
.card h3 { font-size: 20px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.tag { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.tag.new { background: var(--ok); border-color: var(--ok); color: #fff; }
.tag.used { background: var(--accent-2); border-color: var(--accent-2); color: #111; }
.price { font: 700 24px var(--font-display); }
.price small { display: block; font: 500 13px var(--font-body); color: var(--muted); }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--muted); }

/* Ficha de producto */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.pdp-stage {
  position: sticky; top: 92px; border-radius: var(--r-lg); min-height: 560px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 65%), var(--surface);
  border: 1px solid var(--line);
}
.pdp-stage .phone { width: 190px; transition: background 0.4s; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pdp h1 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 14px; }
.opt { margin: 22px 0; }
.opt h4 { margin: 0 0 10px; font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.swatches { display: flex; gap: 10px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin: 24px 0; }
.specs > div { background: var(--bg); padding: 14px 16px; }
.specs dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.specs > div:last-child { grid-column: 1 / -1; }
.bat { height: 8px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bat i { display: block; height: 100%; background: var(--ok); }
.grade-note { padding: 14px 16px; border-left: 4px solid var(--accent-2); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { border: 0; padding: 16px 26px; border-radius: 999px; font-weight: 700; transition: transform 0.2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--accent); color: var(--bg); }
body[data-world="iphone"] .btn-main { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cuotas { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Páginas de texto */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }

/* Carrito */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 50; background: var(--bg); color: var(--ink);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 0.45s var(--ease), visibility 0.45s; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 60px rgb(0 0 0 / 0.3); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head button { background: none; border: 0; color: inherit; font-size: 20px; }
#cartList { list-style: none; margin: 0; padding: 12px 20px; flex: 1; overflow: auto; }
#cartList li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#cartList button { background: none; border: 0; color: var(--hot); }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font-size: 20px; margin: 0; }
.pay-note { color: var(--muted); font-size: 13px; }

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; background: #25d366; color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 20px; border-radius: 999px; box-shadow: 0 12px 30px -10px #25d366;
}

.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px clamp(16px, 4vw, 48px) 90px; border-top: 1px solid var(--line); }
.foot p { color: var(--muted); font-size: 14px; }

/* Entrada escalonada */
.rise { animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Piezas que solo existen en celular: ocultas en escritorio */
.tabbar, .filtros-btn, .sheet-head, .ver-res, .buy-price { display: none; }
.sheet-foot { display: grid; }
.wa { display: inline-flex; align-items: center; gap: 8px; }
.wa svg { width: 22px; height: 22px; }
html { -webkit-tap-highlight-color: transparent; }

/* ================= CELULAR (la mayoría de clientes) ================= */
@media (max-width: 900px) {
  :root { --tabbar: 64px; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }

  /* Cabecera compacta: logo + carrito. La navegación baja a la barra inferior. */
  .top { padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); gap: 10px; }
  .nav { display: none; }
  .logo { font-size: 19px; }
  .logo-mark { height: 36px; }
  .cart-btn { margin-left: auto; min-height: 44px; padding: 8px 14px; }
  .aviso { font-size: 11px; padding: 4px; }

  /* Barra inferior tipo app */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); min-height: 44px;
  }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
  .tabbar a { position: relative; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .dot { width: 14px; height: 14px; margin: 4px 0; }

  /* WhatsApp: círculo chico sobre la barra, sin tapar botones */
  .wa { right: 14px; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 14px); width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa span { display: none; }
  .wa svg { width: 28px; height: 28px; }
  body[data-ruta="p"] .wa { display: none; } /* en la ficha ya hay botón de WhatsApp */

  .wrap { padding: 22px 14px; }

  /* Portada: los dos mundos lado a lado, la elección queda a la vista sin bajar */
  .split { grid-template-columns: 1fr 1fr; min-height: 0; }
  .half { min-height: 58vh; min-height: 58svh; padding: 18px 14px 22px; }
  .half .kicker, .half p, .solo-pc { display: none; }
  .half h1 { font-size: clamp(30px, 10vw, 44px); margin: 0 0 14px; }
  .half .go { padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .half .mock { width: 64%; top: 8%; left: 18%; right: auto; }
  .vs { width: 52px; height: 52px; font-size: 15px; box-shadow: 0 0 0 5px var(--bg); top: 42%; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div { padding: 14px; border-bottom: 1px solid var(--line); }
  .trust b { font-size: 15px; }
  .trust span { font-size: 13px; }
  .grades { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grades .intro { grid-column: 1 / -1; padding: 0; }
  .grade { padding: 16px; border-radius: 18px; }
  .grade .g { font-size: 38px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
  .sec-title { margin-bottom: 16px; }
  .switch-world a, .crumbs a { display: inline-block; padding: 10px 0; }

  /* Catálogo: 2 por fila + filtros en panel inferior */
  .world-hero { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .world-hero h1 { font-size: 44px; }
  .world-hero p { font-size: 15px; }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .filtros-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-bottom: 14px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; font-weight: 700;
  }
  .filtros-btn::before { content: "☰"; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 82vh; max-height: 82svh; overflow-y: auto;
    background: var(--bg); color: var(--ink); border-radius: 22px 22px 0 0; padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    gap: 16px; transform: translateY(105%); visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0);
  }
  body.filtros-abiertos .filters { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55); }
  body.filtros-abiertos { overflow: hidden; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg); padding: 16px 0 8px; z-index: 1; }
  .sheet-head b { font: 700 20px var(--font-display); }
  .x { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--ink); border-radius: 50%; font-size: 18px; }
  .filters label { min-height: 44px; }
  .filters input[type="range"] { height: 32px; }
  .sheet-foot { grid-template-columns: 1fr 2fr; gap: 10px; position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); background: var(--bg); padding: 12px 0; }
  .ver-res { display: block; }

  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 10px; border-radius: 18px; gap: 8px; }
  .card:hover { transform: none; }
  .card .stage { padding: 14px 0 8px; }
  .card .phone { width: 58px; }
  .card h3 { font-size: 16px; }
  .meta { font-size: 11px; gap: 4px; }
  .tag { padding: 2px 7px; }
  .price { font-size: 18px; }
  .price small { font-size: 11px; }

  /* Ficha: imagen más baja y botón de compra siempre visible */
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .pdp-stage { position: static; min-height: 0; height: 300px; }
  .pdp-stage .phone { width: 116px; }
  .pdp h1 { font-size: 38px; }
  .sw { width: 44px; height: 44px; }
  .opt .chip { min-height: 44px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div { padding: 12px; }
  .buy {
    position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 5; margin: 18px -14px 0;
    padding: 10px 14px; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px;
  }
  .buy .btn { padding: 14px 16px; min-height: 48px; text-align: center; }
  .buy .btn-wa { width: 48px; padding: 0; }
  .buy .btn-wa span { display: none; }
  .buy .btn-wa svg { width: 26px; height: 26px; }
  .buy-price { display: inline; }

  .prose h1 { font-size: 42px; }
  .foot { grid-template-columns: 1fr; padding-bottom: 30px; }
  .drawer-head button { width: 44px; height: 44px; }
  #cartList button { min-height: 44px; padding: 0 8px; }
}

@media (max-width: 380px) {
  .half h1 { font-size: 28px; }
  .half .go { font-size: 13px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Botón de WhatsApp en la ficha */
.btn-wa { background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wa svg { width: 22px; height: 22px; flex: none; }

/* ---------- v0.2: fotos reales de cada equipo ---------- */
/* --c = color del equipo sacado de su foto (o el del mundo). Tiñe el halo detrás de la foto. */
.card .stage, .pdp-stage { --c: var(--accent); }
.card .stage { padding: 10px; aspect-ratio: 1; background: radial-gradient(circle at 50% 55%, color-mix(in oklab, var(--c) 38%, transparent), transparent 70%), #fff; }
.card .stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-stage { background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--c) 40%, transparent), transparent 66%), #fff; padding: 18px; overflow: hidden; }
.pdp-stage img { width: 100%; height: 100%; max-height: 520px; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.pdp-stage { grid-template-rows: minmax(0, 1fr); }
.pdp-minis { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.mini { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: contain; }
.mini[aria-pressed="true"] { border-color: var(--c, var(--accent)); }
.consultar { font: 600 16px var(--font-body); color: var(--muted); }
.desc { font-size: 17px; line-height: 1.55; margin: 6px 0 18px; }
.wa-header { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 700; text-decoration: none; }
.wa-header svg { width: 20px; height: 20px; }
.buy .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; }
.buy .btn-main svg { width: 22px; height: 22px; }
.pdp-galeria { position: sticky; top: 92px; }
@media (max-width: 760px) {
  .pdp-galeria { position: static; }
  .pdp-stage { height: 320px; }
  .wa-header span { display: none; }
  .wa-header { padding: 8px 12px; }
}
/* Que la foto nunca ensanche la tarjeta (dos por fila a 360 px) */
.grid > .card { min-width: 0; }
.card .stage { overflow: hidden; min-width: 0; }
.card .stage img { max-width: 100%; height: auto; aspect-ratio: 1; }
.card .consultar { font-size: 14px; }
.pdp-stage { overflow: hidden; }
