/* ============================================================
   TARJETA DE JUEGO — la misma en toda la tienda (octubre 2026)
   La arma js/tarjeta-juego.js y la usan: Catálogo (incl. PS Plus), Ofertas, Home (rieles) y "Juegos relacionados" de la ficha.
   Cargar DESPUÉS de styles.css (y antes de catalogo.css, que solo agrega la vista lista).
   Portada: etiquetas de oferta arriba a la izquierda, % de descuento abajo a la izquierda, favorito arriba a la derecha y,
   el botón de carrito rápido (abre la ventanita de js/elegir-cuenta.js) abajo a la derecha.
   Cuerpo, siempre en este orden: plataforma · nombre · caja de precios · disponibilidad · extras (Coins, transferencia, PS Plus) · cierre.
   Lo que cambia de un juego a otro va DEBAJO de los precios y cada fila de precio tiene alto fijo (cabe el precio tachado
   encima del vigente), así las cajas de precio de una misma fila quedan alineadas.
   Reglas de accesibilidad: texto >= 12 px y >= 4.5:1; controles táctiles >= 44 px; foco visible.
   ============================================================ */

/* ── Contenedor ─────────────────────────────────────────────── */
body.has-header-px .gc-card {
  --gc-surface: #0d1428;
  --gc-border: rgba(139, 92, 246, 0.24);
  --gc-border-strong: rgba(167, 139, 250, 0.55);
  --gc-muted: #aab8dc;
  --gc-ok: #6ee7b7;
  --gc-warn: #fcd34d;
  --gc-sale: #be123c;
  --gc-violet: #7c3aed;
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  container-type: inline-size; /* el botón de carrito se ubica con cqw (alto de la portada = proporción del ancho) */
  border-radius: 16px; background: var(--gc-surface); border: 1px solid var(--gc-border); box-shadow: none; transform: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
body.has-header-px .gc-card:hover {
  border-color: var(--gc-border-strong); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
body.has-header-px .gc-card .psc-card-link {
  display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none;
}
body.has-header-px .gc-card .psc-card-link:focus-visible { outline: 2px solid #c4b5fd; outline-offset: -2px; border-radius: 16px; }
body.has-header-px .gc-card .psc-card-link:disabled { cursor: not-allowed; opacity: 0.7; }

/* ── Portada ────────────────────────────────────────────────── */
body.has-header-px .gc-card .psc-card-thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #121a30; }
body.has-header-px .gc-card.is-nostock .psc-card-img,
body.has-header-px .gc-card.is-nostock .psc-card-bg { filter: grayscale(0.4) brightness(0.8); }
body.has-header-px .gc-tags { position: absolute; top: 10px; left: 10px; right: 60px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
body.has-header-px .gc-tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px;
  background: rgba(6, 10, 24, 0.88); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
  font: 700 0.76rem "Oxanium", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
body.has-header-px .gc-tag--base { background: var(--gc-sale); border-color: rgba(255, 255, 255, 0.25); }
body.has-header-px .gc-pct {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--gc-sale); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); font: 700 0.98rem "Oxanium", sans-serif;
}

/* Favorito (arriba a la derecha) y carrito rápido (abajo a la derecha de la portada; abre la ventanita "Elegí tu cuenta") */
body.has-header-px .gc-card .psc-card-fav {
  position: absolute; top: 6px; right: 6px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; background: rgba(6, 10, 24, 0.78); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 1.25rem; line-height: 1; padding: 0;
}
body.has-header-px .gc-card .psc-card-fav:hover { border-color: var(--gc-border-strong); }
body.has-header-px .gc-card .psc-card-fav.is-active { color: #ff7a9c; border-color: rgba(255, 122, 156, 0.7); }
body.has-header-px .gc-card .gc-buy {
  position: absolute; right: 10px; top: 54%; top: calc(133.333cqw - 54px); z-index: 4; /* 54 % = respaldo para navegadores sin cqw */ width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--gc-violet), #6d28d9);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4); transition: transform 0.09s, box-shadow 0.09s;
}
body.has-header-px .gc-card .gc-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.55); }
body.has-header-px .gc-card .gc-buy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.has-header-px .gc-card .gc-buy svg { position: relative; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cuerpo ─────────────────────────────────────────────────── */
body.has-header-px .gc-card .psc-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 14px 16px; background: none; }
body.has-header-px .gc-card .psc-card-platform {
  margin: 0; color: var(--gc-muted); font: 700 0.84rem "Oxanium", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
/* «Solo PS4»: versión de PS4 de un juego que Sony vende aparte para PS5. Ámbar (≈ 12:1 sobre la tarjeta) para que no pase por «PS4 · PS5». */
body.has-header-px .gc-card .psc-card-platform.is-solo { color: var(--gc-warn); }
body.has-header-px .gc-card .psc-card-name {
  margin: 0; color: #fff; font: 700 1.08rem/1.25 "Oxanium", sans-serif; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Caja de precios: dos filas (Primaria / Secundaria; PS Plus: "Precio"), con el precio de lista tachado sobre el vigente */
body.has-header-px .gc-prices { display: grid; gap: 6px; margin: 4px 0 0; }
body.has-header-px .gc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(139, 92, 246, 0.16);
}
body.has-header-px .gc-label { min-width: 0; color: var(--gc-muted); font: 700 0.76rem "Oxanium", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
body.has-header-px .gc-val { display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 0; line-height: 1.1; }
body.has-header-px .gc-old { color: var(--gc-muted); font: 500 0.88rem/1.1 "Rajdhani", sans-serif; text-decoration: line-through; }
body.has-header-px .gc-amount { color: #fff; font: 700 1.14rem/1.15 "Oxanium", sans-serif; white-space: nowrap; }
body.has-header-px .gc-amount.is-out { color: var(--gc-muted); font: 600 0.8rem/1.2 "Rajdhani", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }

/* Disponibilidad, extras (Coins, transferencia, tiempo de PS Plus) y cierre de la oferta */
body.has-header-px .gc-avail {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 3px 10px; border-radius: 999px;
  font: 700 0.86rem/1.2 "Rajdhani", sans-serif; letter-spacing: 0.02em;
}
body.has-header-px .gc-avail::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.has-header-px .gc-avail.is-ok { color: var(--gc-ok); background: rgba(74, 222, 128, 0.11); border: 1px solid rgba(74, 222, 128, 0.35); }
body.has-header-px .gc-avail.is-off { color: var(--gc-warn); background: rgba(252, 211, 77, 0.08); border: 1px solid rgba(252, 211, 77, 0.4); }
/* «Entrega al instante» (ENTREGA_REAL_ACTIVO): en escritorio el texto entero; en celular «Al instante» (la plataforma comparte la línea, ver abajo) */
body.has-header-px .gc-avail-corto { display: none; }
body.has-header-px .gc-card .psc-card-coins, body.has-header-px .gc-card .psc-card-transf { margin: 0; align-self: flex-start; }
body.has-header-px .gc-ends { margin: 0; color: #fda4af; font: 700 0.86rem/1.25 "Oxanium", sans-serif; } /* cierre real de la oferta ("Termina el 21/10") */
/* «3 cuotas sin interés» (CUOTAS_ACTIVO, solo en juegos desde el mínimo): píldora celeste, sin monto (el monto va en la ficha) */
body.has-header-px .gc-card .gc-cuotas {
  margin: 0; align-self: flex-start; display: inline-flex; align-items: center; max-width: 100%; box-sizing: border-box;
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(125, 211, 252, 0.45); background: rgba(56, 189, 248, 0.12);
  color: #bae6fd; font: 700 0.86rem/1.2 "Rajdhani", sans-serif;
}

/* Regla única de precios: «$X con Mercado Pago» bajo la caja de precios (los precios de las filas son los de transferencia) */
body.has-header-px .gc-card .gc-mp { margin: 5px 0 0; color: var(--gc-muted); font: 600 0.84rem/1.25 "Rajdhani", sans-serif; }
body.has-header-px .gc-card .gc-mp strong { color: #7dd3fc; font: 700 0.9rem/1.25 "Oxanium", sans-serif; white-space: nowrap; }
/* «por transferencia»: etiqueta chica del precio grande, pegada a la caja de precios y encima de la línea de Mercado Pago (js/tarjeta-juego.js → c.etiquetaTransf) */
body.has-header-px .gc-card .gc-por { margin: 5px 0 0; color: #5eead4; font: 700 0.78rem/1.2 "Rajdhani", sans-serif; letter-spacing: 0.03em; }
body.has-header-px .gc-card .gc-por + .gc-mp { margin-top: 1px; }
body.has-header-px .gc-card .gc-mp-l { white-space: nowrap; } /* «con Mercado Pago» nunca se parte: si no entra, baja entera */

/* ── Rieles (Home y relacionados de la ficha): la tarjeta necesita ~200 px para que entren las dos filas de precio ───── */
body.has-header-px .hm-rail > .gc-card, body.has-header-px .px-rail > .gc-card { flex: 0 0 auto; width: clamp(204px, 15.2vw, 226px); scroll-snap-align: start; }
@media (max-width: 1023.98px) {
  body.has-header-px .hm-rail > .gc-card, body.has-header-px .px-rail > .gc-card { width: clamp(200px, 30vw, 226px); }
}

/* ── Celular: tarjeta compacta ──────────────────────────────────
   2 columnas a 360–430 px sin perder información: portada baja, plataforma + disponibilidad en una
   sola línea, título a 2 líneas y una única caja de precios con filas Primaria / Secundaria
   (precio de referencia tachado debajo de la etiqueta). Escritorio no cambia. */
@media (max-width: 640px) {
  body.has-header-px .gc-card { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32); }
  body.has-header-px .hm-rail > .gc-card, body.has-header-px .px-rail > .gc-card { width: clamp(172px, 46vw, 196px); }

  /* Portada más baja, con el foco arriba (ahí suele estar el logo del juego) */
  body.has-header-px .gc-card .psc-card-thumb { aspect-ratio: 4 / 3; }
  body.has-header-px .gc-card .psc-card-bg { background-position: 50% 10%; }
  body.has-header-px .gc-card .psc-card-img { object-position: 50% 10%; }

  /* Cuerpo: línea meta (plataforma · disponibilidad), título, precios */
  body.has-header-px .gc-card .psc-card-body {
    display: flex; flex-flow: row wrap; align-content: flex-start; align-items: center; gap: 0 6px; padding: 7px 9px 9px;
  }
  body.has-header-px .gc-card .psc-card-platform {
    order: 1; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font: 700 0.75rem/1.3 "Oxanium", sans-serif; letter-spacing: 0.05em;
  }
  /* «Solo PS4» nunca se corta: no se achica ni lleva puntos suspensivos (si no entra junto a «Disponible», la disponibilidad baja a la línea siguiente) */
  body.has-header-px .gc-card .psc-card-platform.is-solo { flex: 0 0 auto; overflow: visible; text-overflow: clip; letter-spacing: 0.03em; }
  body.has-header-px .gc-card .gc-avail {
    order: 2; flex: none; align-self: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
    letter-spacing: 0.02em; font: 700 0.75rem/1.3 "Oxanium", sans-serif;
  }
  body.has-header-px .gc-card .gc-avail::before { transform: translateY(-1px); }
  body.has-header-px .gc-card .gc-avail-extra { display: none; }
  body.has-header-px .gc-card .gc-avail-largo { display: none; }
  body.has-header-px .gc-card .gc-avail-corto { display: inline; white-space: nowrap; }
  body.has-header-px .gc-card .psc-card-name {
    order: 3; flex: 0 0 100%; margin: 4px 0 0; min-height: 2.44em; font: 700 0.92rem/1.22 "Oxanium", sans-serif;
  }

  /* Una sola caja de precios: etiqueta (y precio de referencia debajo) a la izquierda, precio a la derecha */
  body.has-header-px .gc-card .gc-prices {
    order: 5; flex: 0 0 100%; display: grid; gap: 0; margin: 6px 0 0; padding: 0 9px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(139, 92, 246, 0.2);
  }
  body.has-header-px .gc-card .gc-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label amount" "old amount";
    gap: 0 6px; align-items: center; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: none;
  }
  body.has-header-px .gc-card .gc-row + .gc-row { border-top: 1px solid rgba(139, 92, 246, 0.2); }
  body.has-header-px .gc-card .gc-val { display: contents; }
  body.has-header-px .gc-card .gc-label {
    grid-area: label; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font: 700 0.82rem/1.2 "Rajdhani", sans-serif; letter-spacing: 0.02em; text-transform: none;
  }
  body.has-header-px .gc-card .gc-amount { grid-area: amount; justify-self: end; font: 700 1.05rem/1.1 "Oxanium", sans-serif; }
  body.has-header-px .gc-card .gc-amount.is-out { font: 600 0.75rem/1.2 "Rajdhani", sans-serif; }
  body.has-header-px .gc-card .gc-old { grid-area: old; justify-self: start; font: 500 0.75rem/1.2 "Rajdhani", sans-serif; }

  /* Con la regla única de precios, «$X con Mercado Pago» queda pegado a la caja de precios (mismo orden: va después de ella en el DOM) */
  body.has-header-px .gc-card .gc-mp { order: 5; flex: 0 0 100%; margin: 5px 0 0; padding: 0 2px; font-size: 0.8rem; }
  body.has-header-px .gc-card .gc-mp strong { font-size: 0.86rem; }
  body.has-header-px .gc-card .gc-por { order: 5; flex: 0 0 100%; margin: 4px 0 0; padding: 0 2px; }
  body.has-header-px .gc-card .gc-por + .gc-mp { margin-top: 1px; }

  /* Debajo de los precios: Coins / transferencia / PS Plus y cierre de la oferta */
  body.has-header-px .gc-card .psc-card-coins { order: 6; margin: 6px 0 0; padding: 2px 8px; font-size: 0.8rem; }
  /* Píldora "−N % por transferencia": mismo lugar y tamaño que la de Coins (va antes de ella en el DOM) */
  body.has-header-px .gc-card .psc-card-transf { order: 6; margin: 6px 0 0; padding: 2px 8px; font-size: 0.8rem; }
  body.has-header-px .gc-card .psc-card-transf + .psc-card-coins { margin-top: 4px; }
  body.has-header-px .gc-card .gc-cuotas { order: 6; margin: 6px 0 0; padding: 2px 8px; font-size: 0.8rem; white-space: nowrap; }
  body.has-header-px .gc-card .psc-card-transf + .gc-cuotas, body.has-header-px .gc-card .psc-card-coins + .gc-cuotas { margin-top: 4px; }
  body.has-header-px .gc-card .psc-card-time { order: 6; flex: 0 0 100%; margin-top: 6px; }
  body.has-header-px .gc-card .gc-ends {
    order: 7; flex: 0 0 100%; margin: 5px 0 0; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* Insignias chicas sobre la portada: descuento arriba a la izquierda; HOT / FLASH / BUNDLE abajo.
     "OFERTA" sobra cuando ya está el -XX %. Sin descuento visible, las etiquetas van arriba (dejando lugar al favorito). */
  body.has-header-px .gc-card .gc-pct {
    top: 7px; left: 7px; right: auto; bottom: auto; min-height: 22px; padding: 0 8px; font: 700 0.8rem/1 "Oxanium", sans-serif;
  }
  body.has-header-px .gc-card .gc-tags { top: auto; bottom: 7px; left: 7px; right: 7px; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
  body.has-header-px .gc-card .psc-card-thumb:not(:has(.gc-pct)) .gc-tags { top: 7px; bottom: auto; right: 50px; }
  body.has-header-px .gc-card .psc-card-thumb:has(.gc-pct) .gc-tag--base { display: none; }
  body.has-header-px .gc-card .gc-tag { min-height: 20px; padding: 0 7px; font-size: 0.75rem; letter-spacing: 0.04em; white-space: nowrap; }
  body.has-header-px .gc-card.gc-card--buy .gc-tags { right: 52px; } /* deja lugar al carrito de la esquina */

  @media (max-width: 380px) {
    body.has-header-px .gc-card .psc-card-body { padding-left: 7px; padding-right: 7px; }
    body.has-header-px .gc-card .gc-prices { padding: 0 7px; }
    body.has-header-px .gc-card .gc-amount { font-size: 0.95rem; }
    body.has-header-px .gc-card .gc-row { column-gap: 4px; }
    body.has-header-px .gc-card .gc-cuotas { padding: 2px 6px; font-size: 0.78rem; }
  }

  /* Favorito y carrito: zona táctil de 44 x 44, círculo visible de 30 / 36 */
  body.has-header-px .gc-card .psc-card-fav {
    top: 0; right: 0; width: 44px; height: 44px; background: none; border: 0; font-size: 1rem; isolation: isolate;
  }
  body.has-header-px .gc-card .psc-card-fav::before {
    content: ""; position: absolute; inset: 7px; z-index: -1; border-radius: 50%;
    background: rgba(6, 10, 24, 0.72); border: 1px solid rgba(255, 255, 255, 0.22);
  }
  body.has-header-px .gc-card .psc-card-fav.is-active::before { border-color: rgba(255, 122, 156, 0.7); }
  body.has-header-px .gc-card .gc-buy {
    right: 3px; top: 25%; top: calc(75cqw - 47px); background: none; box-shadow: none; isolation: isolate;
  }
  body.has-header-px .gc-card .gc-buy::before {
    content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%;
    background: linear-gradient(135deg, var(--gc-violet), #6d28d9); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
  }
  body.has-header-px .gc-card .gc-buy:hover { transform: none; box-shadow: none; }
  body.has-header-px .gc-card .gc-buy svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.has-header-px .gc-card, body.has-header-px .gc-card .gc-buy { transition: none; }
  body.has-header-px .gc-card:hover { transform: none; }
}

/* ============================================================
   VENTANITA "ELEGÍ TU CUENTA" — carrito rápido de la tarjeta (js/elegir-cuenta.js)
   Celular: hoja que sube desde abajo; escritorio: ventana centrada. Controles >= 44 px, texto >= 12 px.
   Colores por variables (--ec-*) para que el tema Halloween los cambie sin tocar nada más (css/halloween.css).
   ============================================================ */
body.ec-abierto { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.ec-fondo {
  --ec-surface: #0d1428; --ec-border: rgba(139, 92, 246, 0.3); --ec-muted: #aab8dc; --ec-ok: #6ee7b7; --ec-warn: #fcd34d;
  --ec-btn: linear-gradient(135deg, #7c3aed, #6d28d9); --ec-btn-ink: #fff; --ec-sel: rgba(124, 58, 237, 0.22); --ec-sel-borde: #a78bfa;
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 6, 16, 0.74); opacity: 0; transition: opacity 0.16s; font-family: "Oxanium", sans-serif;
}
.ec-fondo[hidden] { display: none; }
.ec-fondo.is-on { opacity: 1; }
.ec-hoja {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff;
  background: var(--ec-surface); border: 1px solid var(--ec-border); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5); transform: translateY(24px); transition: transform 0.18s ease-out;
}
.ec-fondo.is-on .ec-hoja { transform: none; }
@media (min-width: 641px) {
  .ec-fondo { align-items: center; }
  .ec-hoja { border-bottom: 1px solid var(--ec-border); border-radius: 20px; padding: 22px 22px 22px; }
}
.ec-cerrar {
  position: absolute; top: 4px; right: 4px; z-index: 1; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #dbe4ff; font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.ec-cerrar:hover { color: #fff; }
.ec-hoja :is(button, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Cabecera: portada + plataforma + nombre */
.ec-cab { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.ec-img { flex: none; width: 52px; height: 68px; object-fit: cover; border-radius: 10px; background: #1a2238; }
.ec-cab-texto { min-width: 0; }
.ec-plat { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: var(--ec-muted); font: 700 0.84rem "Oxanium", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.ec-nombre {
  margin: 0; color: #fff; font: 700 1.15rem/1.25 "Oxanium", sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Grupos: consola y tipo de cuenta */
.ec-grupo { margin-top: 16px; }
.ec-leyenda { margin: 0 0 8px; color: var(--ec-muted); font: 700 0.86rem "Oxanium", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.ec-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ec-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: #fff;
  font: 700 1.08rem "Oxanium", sans-serif; cursor: pointer;
}
.ec-chip-fila { display: inline-flex; align-items: center; gap: 8px; }
.ec-ps { flex: none; }
.ec-ps--chip { width: 22px; height: 22px; color: var(--ec-muted); }
.ec-ps--plat { width: 16px; height: 16px; }
.ec-chip.is-on .ec-ps--chip { color: var(--ec-sel-borde); }
.ec-chip small { color: var(--ec-muted); font: 600 0.8rem "Oxanium", sans-serif; }
.ec-chip.is-on { border-color: var(--ec-sel-borde); background: var(--ec-sel); }
.ec-chip:disabled { opacity: 0.55; cursor: not-allowed; }
.ec-cuentas { display: flex; flex-direction: column; gap: 10px; }
.ec-cuenta {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: #fff;
  text-align: left; font-family: "Oxanium", sans-serif; cursor: pointer;
}
.ec-cuenta::before { content: ""; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 50%; }
.ec-cuenta.is-on { border-color: var(--ec-sel-borde); background: var(--ec-sel); }
.ec-cuenta.is-on::before { border-color: var(--ec-sel-borde); background: radial-gradient(circle, var(--ec-sel-borde) 0 45%, transparent 50%); }
.ec-cuenta:disabled { opacity: 0.55; cursor: not-allowed; }
.ec-cuenta-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-cuenta-nombre { font-weight: 700; font-size: 1.08rem; }
.ec-cuenta-desc { color: var(--ec-muted); font-size: 0.86rem; line-height: 1.3; }
/* «En PS5: $12.990»: la Primaria PS5 con precio propio, a la vista antes de elegir la consola */
.ec-cuenta-ps5 { color: #bae6fd; font: 600 0.9rem/1.3 "Oxanium", sans-serif; }
.ec-cuenta-ps5 strong { color: #7dd3fc; font-weight: 700; }
.ec-cuenta-precio { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ec-cuenta-precio strong { font-size: 1.2rem; }
.ec-cuenta-precio del { color: var(--ec-muted); font-size: 0.84rem; }
.ec-cuenta-precio .ec-agotada { color: var(--ec-muted); font-size: 0.9rem; font-weight: 600; text-align: right; }
/* Regla única de precios: el precio de la opción es el de transferencia («por transferencia» debajo) y lo que sale con Mercado Pago va bajo la descripción */
.ec-cuenta-por { color: #5eead4; font: 600 0.8rem/1.2 "Oxanium", sans-serif; }
.ec-cuenta-mp { color: #bae6fd; font: 600 0.88rem/1.3 "Oxanium", sans-serif; }
.ec-cuenta-mp strong { color: #7dd3fc; font-weight: 700; }
.ec-cuenta-mp-l { white-space: nowrap; } /* «con Mercado Pago» nunca se parte: si no entra, baja entero */

/* Botón principal, "ver detalles" y estado "agregado" */
.ec-confirmar {
  display: grid; place-items: center; width: 100%; min-height: 52px; margin-top: 18px; padding: 0 16px; box-sizing: border-box;
  border: 0; border-radius: 14px; background: var(--ec-btn); color: var(--ec-btn-ink);
  font: 700 1.08rem "Oxanium", sans-serif; text-decoration: none; cursor: pointer;
}
.ec-confirmar:disabled { background: rgba(255, 255, 255, 0.1); color: #b4c0e0; cursor: not-allowed; }
.ec-ficha { display: block; margin-top: 6px; min-height: 44px; line-height: 44px; text-align: center; color: var(--ec-muted); font: 600 0.92rem/44px "Oxanium", sans-serif; text-decoration: underline; }
.ec-seguir {
  width: 100%; min-height: 48px; margin-top: 10px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 14px;
  background: none; color: #fff; font: 700 1rem "Oxanium", sans-serif; cursor: pointer;
}
.ec-listo { margin-top: 14px; padding: 14px 0 2px; text-align: center; }
.ec-listo-ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(110, 231, 183, 0.16);
  color: var(--ec-ok); font: 700 1.9rem "Oxanium", sans-serif;
}
.ec-listo--ya .ec-listo-ico { background: rgba(252, 211, 77, 0.16); color: var(--ec-warn); }
.ec-listo-titulo { margin: 10px 0 2px; font: 700 1.2rem "Oxanium", sans-serif; }
.ec-listo-detalle { margin: 0; color: var(--ec-muted); font: 600 0.95rem "Oxanium", sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .ec-fondo, .ec-hoja { transition: none; }
}
