/* ============================================================
   Área de clientes v2 — chrome PROPIO (portal), tokens de app.css.
   Topbar minimal + mini footer (sin header/footer del sitio).
   Solo se carga en /cuenta y /en/account (hook $extraCss en head).
   ============================================================ */

.acc-body { background: var(--bg-0); min-height: 100dvh; display: flex; flex-direction: column; }
.acc-main-wrap { flex: 1; padding-block: clamp(1.25rem, 3vw, 2.5rem) var(--section); }

/* ---------- Topbar propia ---------- */
.acc-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-3);
}
.acc-topbar__inner {
  max-width: var(--max-wide); margin-inline: auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-topbar__brand {
  display: flex; align-items: center; gap: 0.55rem; text-decoration: none;
  flex: 1; min-width: 0; overflow: hidden;
  color: var(--ink-0); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.acc-topbar__brand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-topbar__brand img { border-radius: 8px; }
/* Chip cuadrado — mismo ADN que .app-card__chip del sitio (radius-sm, mono, tracking) */
.acc-topbar__tag {
  font: 700 0.6rem/1 var(--font-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-0); background: linear-gradient(135deg, var(--orange-400), var(--orange-300));
  padding: 0.32rem 0.5rem; border-radius: var(--radius-sm); white-space: nowrap;
  box-shadow: 0 2px 8px -2px rgba(229,9,20,0.5);
}
.acc-topbar__actions { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.acc-topbar__lang, .acc-topbar__site {
  display: inline-flex; align-items: center; gap: 0.32rem; line-height: 1;
  color: var(--ink-200); text-decoration: none; font-size: 0.82rem; white-space: nowrap;
}
/* dentro de inline-flex el SVG ya queda centrado: anula el nudge inline */
.acc-topbar__lang .acc-i, .acc-topbar__site .acc-i, .acc-topbar__site .acc-i--sm { vertical-align: 0; }
.acc-topbar__lang:hover, .acc-topbar__site:hover { color: var(--orange-300); }
/* separador sutil que agrupa la identidad del usuario aparte de los enlaces */
.acc-topbar__user {
  display: flex; align-items: center; gap: 0.5rem; min-width: 0;
  padding-left: 0.85rem; border-left: 1px solid var(--bg-4);
}
.acc-topbar__avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font: 700 0.85rem var(--font-display);
  background: var(--orange-400); color: var(--ink-0);
}
.acc-topbar__name { font-size: 0.82rem; color: var(--ink-100); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-topbar__logout { display: flex; align-items: center; }
.acc-topbar__logout button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--bg-4); color: var(--ink-200);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; line-height: 1; padding: 0;
  transition: color .15s ease, border-color .15s ease;
}
/* SVG centrado en el botón (sin el nudge de baseline inline) */
.acc-topbar__logout .acc-i, .acc-topbar__logout .acc-i--sm { vertical-align: 0; }
.acc-topbar__logout button:hover { color: var(--orange-300); border-color: var(--orange-400); }

/* ---------- Mini footer propio ---------- */
.acc-footer { border-top: 1px solid var(--bg-3); background: var(--bg-1); }
.acc-footer__inner {
  max-width: var(--max-wide); margin-inline: auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ink-400);
}
.acc-footer__links { display: flex; gap: 1.1rem; }
.acc-footer__links a { color: var(--ink-300); text-decoration: none; }
.acc-footer__links a:hover { color: var(--orange-300); }

/* ---------- Alerts / flashes ---------- */
.acc-alert {
  padding: 0.8rem 1rem; border-radius: var(--radius-md); font-size: 0.9rem;
  margin-bottom: 1rem; border: 1px solid transparent;
}
.acc-alert--success { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.35);  color: #7EE2A8; }
.acc-alert--error   { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.35);  color: #FCA5A5; }
.acc-alert--warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); color: #FCD34D; }

/* ---------- Cards base ---------- */
.acc-card {
  background: var(--bg-1); border: 1px solid var(--bg-3);
  border-radius: var(--radius-xl); overflow: hidden;
}
.acc-card--pad  { padding: 1.4rem; }
.acc-card--list { display: flex; flex-direction: column; }
.acc-card__title {
  font-family: var(--font-display); font-size: 1rem; margin: 0 0 1rem; color: var(--ink-50);
  display: flex; align-items: center; gap: 0.4rem;
}

/* ---------- Auth (login/registro/…) — panel doble premium ---------- */
.acc-auth { display: grid; place-items: start center; padding: clamp(1rem, 4vw, 3rem) 1.25rem 0; }
.acc-auth__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  width: 100%; max-width: 920px;
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: 0 30px 80px -35px rgba(229,9,20,.35);
}
.acc-auth__brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
  padding: 2.75rem 2.5rem;
  background: linear-gradient(150deg, rgba(229,9,20,.22), rgba(229,9,20,.05) 55%), var(--bg-2);
  border-right: 1px solid var(--bg-3);
}
.acc-auth__brand img { border-radius: 12px; }
.acc-auth__brand h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0; color: var(--ink-0); letter-spacing: -0.02em; line-height: 1.15;
  text-wrap: balance;
}
.acc-auth__brand p { margin: 0; color: var(--ink-200); font-size: 0.95rem; line-height: 1.55; }
.acc-auth__feats { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.acc-auth__feats li {
  position: relative; padding-left: 1.5rem; font-size: 0.88rem; color: var(--ink-100); line-height: 1.4;
}
.acc-auth__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--signal-live); font-weight: 800; }
.acc-auth__glow {
  position: absolute; inset: auto -30% -45% auto; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(229,9,20,.35), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.acc-auth__card { padding: 2.25rem 2rem; min-width: 0; }
.acc-auth__logo { border-radius: 12px; margin: 0 auto 0.9rem; display: none; }
.acc-auth__title {
  font-family: var(--font-display); font-size: 1.55rem; margin: 0 0 1.2rem; text-align: center;
  color: var(--ink-0); letter-spacing: -0.02em;
}
.acc-intro { margin: -0.5rem 0 1.1rem; font-size: 0.9rem; text-align: center; }
.acc-or { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0; color: var(--ink-400); font-size: 0.8rem; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--bg-3); }
.acc-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.acc-links { margin: 1rem 0 0; font-size: 0.9rem; text-align: center; }
.acc-links a { color: var(--orange-300); text-decoration: none; }
.acc-links a:hover { text-decoration: underline; }
.acc-fineprint { margin: 1rem 0 0; font-size: 0.75rem; color: var(--ink-400); text-align: center; }
.acc-fineprint a { color: var(--ink-300); }
.acc-verify { text-align: center; padding: 0.5rem 0 0.75rem; color: var(--ink-100); }
.acc-verify__icon { font-size: 2.5rem; margin: 0 0 0.5rem; }
.acc-resend { margin-top: 1rem; border-top: 1px solid var(--bg-3); padding-top: 1rem; }
.acc-resend summary { cursor: pointer; color: var(--ink-200); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* ---------- Formularios ---------- */
.acc-form { display: flex; flex-direction: column; gap: 1rem; }
.acc-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.acc-field-row { display: flex; gap: 0.9rem; }
/* WhatsApp: selector de código + número. El código se queda angosto; el número manda. */
.acc-phone { display: flex; gap: 0.5rem; }
.acc-phone select { flex: 0 1 11.5rem; min-width: 0; }
.acc-phone input  { flex: 1 1 auto;    min-width: 0; }
.acc-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-200); }
.acc-field input, .acc-field select, .acc-field textarea {
  width: 100%; background: var(--bg-2); color: var(--ink-50);
  border: 1px solid var(--bg-4); border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem; font: inherit; font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.acc-field input:focus-visible, .acc-field select:focus-visible, .acc-field textarea:focus-visible {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(229,9,20,.22);
}
.acc-field input[disabled] { opacity: 0.55; cursor: not-allowed; }
.acc-field input[type="file"] { padding: 0.5rem; font-size: 0.85rem; }
.acc-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-200); cursor: pointer; }
.acc-check input { margin-top: 0.2rem; accent-color: var(--orange-400); flex-shrink: 0; }
.acc-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Toggle switch (perfil) */
.acc-switch { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.acc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.acc-switch__track {
  flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px;
  background: var(--bg-4); position: relative; transition: background .2s ease;
}
.acc-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--ink-100); transition: transform .2s ease, background .2s ease;
}
.acc-switch input:checked + .acc-switch__track { background: var(--orange-400); }
.acc-switch input:checked + .acc-switch__track::after { transform: translateX(20px); background: #fff; }
.acc-switch input:focus-visible + .acc-switch__track { outline: 2px solid var(--orange-400); outline-offset: 2px; }
.acc-switch__label { font-size: 0.88rem; color: var(--ink-100); }

/* Honeypot: fuera de pantalla (jamás display:none — algunos bots lo detectan) */
.acc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.cf-turnstile { min-height: 65px; }

/* ---------- Shell: nav lateral / pills móvil ---------- */
.acc-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.acc-nav {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-xl); padding: 0.6rem;
}
.acc-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: var(--radius-md);
  color: var(--ink-200); text-decoration: none; font-size: 0.9rem;
  transition: background .15s ease, color .15s ease;
}
.acc-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.acc-nav a:hover { background: var(--bg-2); color: var(--ink-50); }
.acc-nav a.is-active { background: rgba(229,9,20,.14); color: var(--orange-200); font-weight: 600; }
.acc-main { min-width: 0; display: flex; flex-direction: column; gap: 1.9rem; }

/* ---------- Iconos SVG (línea) ---------- */
.acc-i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -0.18em; }
.acc-i--sm { width: 15px; height: 15px; vertical-align: -0.15em; }
.btn .acc-i, .btn .acc-i--sm { vertical-align: -0.18em; }

/* ---------- Hero del dashboard (compacto) ---------- */
.acc-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.4rem; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(229,9,20,.16), rgba(229,9,20,.03) 55%), var(--bg-1);
  border: 1px solid rgba(229,9,20,.25);
}
.acc-hero__txt { min-width: 0; }
.acc-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin: 0 0 0.15rem; color: var(--ink-0); letter-spacing: -0.02em;
}
.acc-hero p { margin: 0; color: var(--ink-200); font-size: 0.88rem; }
.acc-hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Bento (resumen, no feed) ---------- */
.acc-bento { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.acc-bento__main, .acc-bento__side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* Panel = caja de sección con cabecera */
.acc-panel {
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-xl);
  padding: 1.1rem 1.2rem;
}
.acc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.acc-panel__head h2 {
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  font-family: var(--font-display); font-size: 1rem; color: var(--ink-50);
}
.acc-panel__head h2 .acc-i { color: var(--orange-300); }
.acc-panel__sub { margin: 0 0 0.8rem; color: var(--ink-300); font-size: 0.85rem; line-height: 1.5; }
.acc-panel--promo { background: linear-gradient(150deg, rgba(229,9,20,.12), transparent 60%), var(--bg-1); border-color: rgba(229,9,20,.3); }

/* Lista compacta de pedidos (resumen) */
.acc-order-list { display: flex; flex-direction: column; gap: 0.5rem; }
.acc-order-item {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.7rem; border-radius: var(--radius-md); text-decoration: none;
  background: var(--bg-2); border: 1px solid transparent; transition: border-color .15s ease, background .15s ease;
}
.acc-order-item:hover { border-color: var(--orange-400); background: var(--bg-3); }
.acc-order-item__thumb { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.acc-order-item__thumb--ph { display: grid; place-items: center; background: var(--bg-3); color: var(--ink-400); }
.acc-order-item__thumb--ph .acc-i { width: 22px; height: 22px; }
.acc-order-item__info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.acc-order-item__name { color: var(--ink-50); font-weight: 500; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-order-item__meta { color: var(--ink-400); font-size: 0.76rem; display: flex; align-items: center; gap: 0.3rem; }

/* Mini-lista (soporte en el lateral) */
.acc-mini-list { display: flex; flex-direction: column; gap: 0.4rem; }
.acc-mini { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: var(--radius-md); background: var(--bg-2); text-decoration: none; }
.acc-mini:hover { background: var(--bg-3); }
.acc-mini__txt { color: var(--ink-100); font-size: 0.83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Promo mini (lateral) */
.acc-promo-mini { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.acc-promo-mini__val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--orange-300); line-height: 1; }

/* ---------- Encabezados / secciones ---------- */
.acc-page-head h1 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem; color: var(--ink-0); letter-spacing: -0.02em;
}
.acc-page-head p { margin: 0; }
.acc-section { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.acc-section__title { font-family: var(--font-display); font-size: 1.12rem; margin: 0; color: var(--ink-50); }
.acc-section__sub { margin: -0.4rem 0 0; }
.acc-section__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.acc-see-all { color: var(--orange-300); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.acc-see-all:hover { text-decoration: underline; }
.acc-muted { color: var(--ink-300); font-size: 0.9rem; }
.acc-breadcrumb { margin: 0 0 0.75rem; font-size: 0.85rem; }
.acc-breadcrumb a { color: var(--ink-300); text-decoration: none; }
.acc-breadcrumb a:hover { color: var(--orange-300); }
.acc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }

/* ---------- Stats ---------- */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.acc-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico num" "ico lbl";
  column-gap: 0.9rem; align-items: center;
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-lg);
  padding: 1rem 1.15rem; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.acc-stat:hover { border-color: var(--orange-400); transform: translateY(-2px); }
.acc-stat svg { grid-area: ico; width: 34px; height: 34px; color: var(--orange-300); background: rgba(229,9,20,.12); border-radius: 10px; padding: 7px; }
.acc-stat strong { grid-area: num; font-family: var(--font-display); font-size: 1.45rem; color: var(--ink-0); line-height: 1.1; }
.acc-stat span { grid-area: lbl; font-size: 0.76rem; color: var(--ink-300); }

/* ---------- Card de REBRAND (pedido con sus entregables adentro) ---------- */
.acc-rebrand { background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-xl); overflow: hidden; }
.acc-rebrand + .acc-rebrand { margin-top: 1rem; }
.acc-rebrand__head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--bg-2);
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.acc-rebrand__thumb {
  width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0;
  border: 1px solid var(--bg-4);
}
.acc-rebrand__thumb--ph { display: grid; place-items: center; font-size: 1.4rem; background: var(--bg-3); }
.acc-rebrand__info { min-width: 0; flex: 1; }
.acc-rebrand__info h3 {
  margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink-0);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-rebrand__meta { margin: 0; font-size: 0.78rem; color: var(--ink-400); }
.acc-rebrand__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; flex-shrink: 0; }
.acc-rebrand__deliv { display: flex; flex-direction: column; }
.acc-rebrand__progress { margin: 0; padding: 1rem 1.25rem; font-size: 0.88rem; color: var(--signal-warning); }

/* ---------- Filas de lista (pedidos / tickets) ---------- */
.acc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title badge" "meta badge";
  gap: 0.1rem 1rem; align-items: center;
  padding: 0.9rem 1.2rem; text-decoration: none;
  border-bottom: 1px solid var(--bg-2); transition: background .15s ease;
}
.acc-card--list .acc-row:last-child { border-bottom: 0; }
.acc-row:hover { background: var(--bg-2); }
.acc-row__title { grid-area: title; color: var(--ink-50); font-weight: 500; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row__meta  { grid-area: meta; color: var(--ink-400); font-size: 0.78rem; }
.acc-row .acc-badge { grid-area: badge; }

/* ---------- Badges de estado — chips cuadrados estilo app-card (nada de cápsulas) ---------- */
.acc-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.acc-badge--en_proceso        { background: rgba(245,158,11,.14); color: #FCD34D; }
.acc-badge--entregado         { background: rgba(34,197,94,.14);  color: #7EE2A8; }
.acc-badge--cancelado         { background: rgba(132,132,139,.14); color: var(--ink-300); }
.acc-badge--abierto           { background: rgba(96,165,250,.14); color: #93C5FD; }
.acc-badge--respondido        { background: rgba(34,197,94,.14);  color: #7EE2A8; }
.acc-badge--esperando_cliente { background: rgba(245,158,11,.14); color: #FCD34D; }
.acc-badge--cerrado           { background: rgba(132,132,139,.14); color: var(--ink-300); }

/* ---------- Entregables ---------- */
.acc-deliv {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--bg-2);
}
.acc-deliv:last-child { border-bottom: 0; }
.acc-deliv__info { display: flex; flex-direction: column; min-width: 0; }
.acc-deliv__label { color: var(--ink-50); font-weight: 500; font-size: 0.92rem; display: flex; align-items: center; gap: 0.45rem; }
.acc-deliv__ico { font-size: 0.95rem; }
.acc-deliv__order { color: var(--ink-400); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-deliv__action { flex-shrink: 0; max-width: 62%; }
.acc-deliv__text { color: var(--ink-200); font-size: 0.85rem; white-space: pre-line; }

/* Código copiable */
.acc-code {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--bg-2); border: 1px dashed var(--orange-500);
  border-radius: var(--radius-sm); padding: 0.4rem 0.6rem;
}
.acc-code code { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-0); letter-spacing: 0.06em; }
.acc-code--lg code { font-size: 1.25rem; letter-spacing: 0.12em; }
.acc-copy {
  background: var(--bg-4); color: var(--ink-100); border: 0; cursor: pointer;
  border-radius: var(--radius-sm); padding: 0.25rem 0.55rem; font-size: 0.72rem; font-family: inherit;
  transition: background .15s ease;
}
.acc-copy:hover { background: var(--orange-400); color: var(--ink-0); }
.acc-copy.is-done { background: var(--signal-live); color: var(--bg-0); }

/* ---------- Empty states ---------- */
.acc-empty { text-align: center; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.acc-empty__icon { color: var(--ink-400); margin-bottom: 0.25rem; }
.acc-empty__icon .acc-i { width: 40px; height: 40px; }
.acc-verify__icon { color: var(--orange-300); margin-bottom: 0.5rem; }
.acc-verify__icon .acc-i { width: 42px; height: 42px; }
.acc-empty h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; color: var(--ink-50); }
.acc-empty .btn { margin-top: 0.75rem; }

/* ---------- Shelf horizontal (recomendaciones / novedades) ---------- */
.acc-shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px;
  gap: 1rem; overflow-x: auto; padding: 0.25rem 0.25rem 0.9rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}
.acc-shelf::-webkit-scrollbar { height: 8px; }
.acc-shelf::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 999px; }
.acc-shelf > * { scroll-snap-align: start; }

/* ---------- Promos ---------- */
.acc-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.acc-promo {
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start;
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-xl);
}
.acc-promo--wide { flex-direction: row; align-items: center; gap: 1.1rem; }
.acc-promo__body { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; min-width: 0; }
.acc-promo__value {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--orange-300);
  line-height: 1; flex-shrink: 0;
}
.acc-promo__exp { margin: 0; font-size: 0.75rem; color: var(--signal-warning); }
.acc-promo__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* Hero del detalle de promo */
.acc-promo-hero {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: 1.5rem; margin-bottom: 1.75rem; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(229,9,20,.18), rgba(229,9,20,.04) 60%), var(--bg-1);
  border: 1px solid rgba(229,9,20,.3);
}
.acc-promo-hero__value {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700;
  color: var(--orange-300); line-height: 1; flex-shrink: 0;
}
.acc-promo-hero__body { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.acc-promo-hero__body p { margin: 0; color: var(--ink-100); }

/* Grid de apps con precio antes/después */
.acc-deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.acc-deal {
  display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none;
  background: var(--bg-1); border: 1px solid var(--bg-3); border-radius: var(--radius-lg);
  padding: 0.7rem; transition: border-color .15s ease, transform .15s ease;
}
.acc-deal:hover { border-color: var(--orange-400); transform: translateY(-3px); }
.acc-deal__media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-3); }
.acc-deal__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-deal__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; }
.acc-deal__chip { z-index: 2; }
.acc-deal__chip {
  position: absolute; top: 8px; right: 8px;
  background: rgba(229,9,20,.92); color: #fff;
  font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.06em;
  padding: 0.3rem 0.45rem; border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px -2px rgba(229,9,20,.5);
}
.acc-deal__name { color: var(--ink-50); font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.acc-price s { color: var(--ink-400); font-size: 0.82rem; }
.acc-price strong { color: var(--orange-300); font-family: var(--font-display); font-size: 1.05rem; }
.acc-price__chip {
  font: 600 0.6rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--orange-200);
  background: rgba(229,9,20,.14); padding: 0.22rem 0.4rem; border-radius: var(--radius-sm);
}
.acc-price__from { font-size: 0.72rem; color: var(--ink-300); }

/* ---------- Tienda especial ---------- */
/* La card sigue siendo un <a>; el botón de lista de deseos (form POST) no puede
   ir dentro del <a>, así que envolvemos y lo posicionamos sobre la media. */
.acc-deal-wrap { position: relative; }
.acc-wish { position: absolute; top: 0.95rem; left: 0.95rem; z-index: 4; margin: 0; }
.acc-wish__btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(10,10,11,.6); border: 1px solid var(--bg-4); color: var(--ink-100);
  cursor: pointer; padding: 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.acc-wish__btn:hover { color: var(--orange-300); border-color: var(--orange-400); }
.acc-wish__btn.is-on { color: var(--orange-300); border-color: var(--orange-400); }
.acc-wish__btn.is-on .acc-i, .acc-wish__btn.is-on .acc-i--sm { fill: currentColor; }
.acc-deal__owned {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font: 700 0.58rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.45rem; border-radius: var(--radius-sm);
  background: rgba(14,18,14,.85); color: var(--ink-50); border: 1px solid rgba(120,200,140,.32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Packs — hero de covers de las apps incluidas + detalle */
.acc-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.acc-pack {
  background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.acc-pack:hover { border-color: var(--orange-400); transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(229,9,20,.55); }
.acc-pack__cover { position: relative; aspect-ratio: 16 / 9; display: grid; gap: 2px; background: var(--bg-3); }
.acc-pack__cover--1 { grid-template-columns: 1fr; }
.acc-pack__cover--2 { grid-template-columns: 1fr 1fr; }
.acc-pack__cover--3 { grid-template-columns: 1.5fr 1fr 1fr; }   /* la primera app, más grande */
.acc-pack__tile { position: relative; overflow: hidden; background: var(--bg-3); }
.acc-pack__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-pack__tile-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-400); }
.acc-pack__tile-ph .acc-i { width: 32px; height: 32px; }
.acc-pack__grad { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,8,10,.95) 5%, rgba(8,8,10,.25) 46%, rgba(8,8,10,.02) 100%); }
.acc-pack__save {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(229,9,20,.94); color: #fff; font: 700 0.7rem/1 var(--font-mono);
  letter-spacing: .03em; padding: 0.36rem 0.52rem; border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px -2px rgba(229,9,20,.6);
}
.acc-pack__badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font: 700 0.58rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-0); background: linear-gradient(135deg, var(--orange-400), var(--orange-300));
  padding: 0.36rem 0.52rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.acc-pack__title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.acc-pack__name { margin: 0; font-family: var(--font-display); font-size: 1.22rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.acc-pack__count { font: 700 0.62rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange-200); }
.acc-pack__body { padding: 0.9rem 1.1rem 1.05rem; display: flex; flex-direction: column; gap: 0.7rem; }
.acc-pack__desc { margin: 0; font-size: 0.85rem; }
.acc-pack__apps { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.acc-pack__app {
  font: 600 0.72rem/1 var(--font-mono); text-decoration: none; color: var(--ink-100);
  background: var(--bg-3); border: 1px solid var(--bg-4); border-radius: var(--radius-sm); padding: 0.38rem 0.52rem;
}
.acc-pack__app:hover { color: var(--orange-300); border-color: var(--orange-400); }
.acc-pack__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.15rem; }
.acc-pack__price { display: flex; align-items: baseline; gap: 0.45rem; }
.acc-pack__price s { color: var(--ink-300); font-size: 0.9rem; }
.acc-pack__price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-0); }

/* ===== Tienda v2 — reusa store-card del sitio + hero de packs ===== */

/* Grid: dentro del área la columna es más angosta → 2 (no 4 como a viewport completo). */
.acc-main .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (min-width: 1300px) { .acc-main .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .acc-main .apps-grid { grid-template-columns: 1fr; } }

/* Hero de la sección Tienda */
.acc-store-hero {
  position: relative; margin-bottom: 1.5rem; padding: 1.6rem 1.5rem;
  border: 1px solid var(--bg-4); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(229,9,20,.20), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
}
.acc-store-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font: 700 0.66rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--orange-200); background: rgba(229,9,20,.14); padding: 0.4rem 0.55rem; border-radius: var(--radius-sm);
}
.acc-store-hero h1 { margin: 0.7rem 0 0.3rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink-0); }
.acc-store-hero p { margin: 0; color: var(--ink-200); max-width: 62ch; }

/* Archivos para rebranders (scaffold) */
.acc-files-soon {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem; padding: 1rem 1.15rem;
  border: 1px dashed var(--bg-4); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(229,9,20,.08), var(--bg-2));
}
.acc-files-soon__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(229,9,20,.14); color: var(--orange-300); flex-shrink: 0; }
.acc-files-soon strong { display: block; color: var(--ink-0); }
.acc-files-soon p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--ink-200); }
.acc-files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.acc-files-card { background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.acc-files-card:hover { border-color: var(--orange-400); transform: translateY(-3px); }
.acc-files-card__media { position: relative; aspect-ratio: 16/9; background: var(--bg-3); }
.acc-files-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-files-card__tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 0.25rem; font: 700 0.58rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-0); background: rgba(10,10,11,.7); border: 1px solid var(--bg-4); padding: 0.3rem 0.45rem; border-radius: var(--radius-sm); backdrop-filter: blur(6px); }
.acc-files-card__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.acc-files-card__body h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink-0); }
.acc-files-card__body p { font-size: 0.83rem; }
.acc-files-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; }
.acc-files-card__price { display: flex; align-items: baseline; gap: 0.3rem; }
.acc-files-card__price strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-0); }
.acc-files-card__price span { font-size: 0.72rem; color: var(--ink-300); }

/* Landing "Comprar archivos" — cómo funciona + qué recibes + precios en privado */
.acc-files-hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.acc-files-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .acc-files-steps { grid-template-columns: repeat(3, 1fr); } }
.acc-files-step {
  position: relative; background: var(--bg-2); border: 1px solid var(--bg-4);
  border-radius: var(--radius-lg); padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.acc-files-step__n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-300)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 14px -4px rgba(229,9,20,.55);
}
.acc-files-step h3 { margin: 0.5rem 0 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-0); }
.acc-files-step p { margin: 0; font-size: 0.88rem; color: var(--ink-200); line-height: 1.5; }
.acc-files-what { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .acc-files-what { grid-template-columns: 1.35fr 1fr; } }
.acc-files-what__list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.acc-files-what__list li { display: flex; align-items: center; gap: 0.55rem; color: var(--ink-100); font-size: 0.95rem; }
.acc-files-what__list .acc-i, .acc-files-what__list .acc-i--sm { color: var(--signal-live); flex-shrink: 0; }
.acc-files-note-card {
  background: linear-gradient(180deg, rgba(229,9,20,.12), var(--bg-2) 65%);
  border: 1px solid var(--bg-4); border-radius: var(--radius-lg); padding: 1.3rem; display: flex; flex-direction: column; gap: 0.55rem;
}
.acc-files-note-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(229,9,20,.15); color: var(--orange-300); }
.acc-files-note-card strong { color: var(--ink-0); font-size: 1.02rem; }
.acc-files-note-card p { margin: 0; font-size: 0.88rem; color: var(--ink-200); line-height: 1.5; }
.acc-files-note-card > .btn { margin-top: 0.4rem; }

/* Aviso: precios de cliente bloqueados hasta la primera compra */
.acc-store-lock {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem; padding: 1rem 1.15rem;
  border: 1px solid rgba(245,158,11,.35); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(245,158,11,.10), var(--bg-2));
}
.acc-store-lock__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(245,158,11,.15); color: var(--signal-warning); flex-shrink: 0; }
.acc-store-lock__body { flex: 1; min-width: 220px; }
.acc-store-lock__body strong { display: block; color: var(--ink-0); }
.acc-store-lock__body p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--ink-200); }

/* Packs — hero rotativo (carrusel) */
.packhero { position: relative; }
.packhero__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; border-radius: var(--radius-lg);
}
.packhero__track::-webkit-scrollbar { display: none; }
.packhero__slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  min-height: 330px; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--bg-4); background: var(--bg-3);
}
.packhero__bg { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.packhero__tile { overflow: hidden; background: var(--bg-3); }
.packhero__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.packhero__grad { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,8,10,.97) 26%, rgba(8,8,10,.6) 58%, rgba(8,8,10,.12) 100%),
              linear-gradient(to top, rgba(8,8,10,.75), transparent 45%); }
.packhero__content { position: relative; z-index: 2; padding: clamp(1.4rem, 3vw, 2.3rem); max-width: 600px; display: flex; flex-direction: column; gap: 0.6rem; }
.packhero__badge {
  align-self: flex-start; font: 700 0.62rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-0); background: linear-gradient(135deg, var(--orange-400), var(--orange-300));
  padding: 0.4rem 0.55rem; border-radius: var(--radius-sm); box-shadow: 0 2px 10px -2px rgba(229,9,20,.6);
}
.packhero__name { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.packhero__desc { margin: 0; color: var(--ink-100); }
.packhero__perks { list-style: none; margin: 0.2rem 0; padding: 0; display: grid; gap: 0.3rem; }
.packhero__perks li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--ink-50); }
.packhero__perks .acc-i, .packhero__perks .acc-i--sm { color: var(--signal-live); flex-shrink: 0; }
.packhero__apps { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.packhero__app {
  font: 600 0.72rem/1 var(--font-mono); text-decoration: none; color: var(--ink-100);
  background: rgba(20,20,24,.7); border: 1px solid var(--bg-4); border-radius: var(--radius-sm); padding: 0.36rem 0.5rem;
}
.packhero__app:hover { color: var(--orange-300); border-color: var(--orange-400); }
.packhero__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.packhero__price { display: flex; align-items: baseline; gap: 0.5rem; }
.packhero__price s { color: var(--ink-300); font-size: 1rem; }
.packhero__price strong { font-family: var(--font-display); font-size: 2rem; color: #fff; }
.packhero__save { font: 700 0.66rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: rgba(229,9,20,.9); padding: 0.34rem 0.5rem; border-radius: var(--radius-sm); font-style: normal; }
.packhero__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.packhero__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--bg-4); transition: background .15s ease, width .15s ease; }
.packhero__dot.is-active { background: var(--orange-400); width: 22px; border-radius: 5px; }
/* Mobile: el degradado lateral no funciona sin ancho; pasa a vertical (texto legible
   sobre el fondo a lo ancho) y el contenido ocupa todo el ancho. */
@media (max-width: 560px) {
  .packhero__slide { min-height: 340px; }
  .packhero__content { max-width: 100%; padding: 1.2rem 1.15rem 1.35rem; gap: 0.5rem; }
  .packhero__grad { background:
      linear-gradient(to top, rgba(8,8,10,.98) 48%, rgba(8,8,10,.78) 74%, rgba(8,8,10,.3) 100%); }
  .packhero__name { font-size: 1.5rem; line-height: 1.1; }
  .packhero__foot { gap: 0.55rem 0.8rem; }
  .packhero__foot .btn { flex: 1 1 140px; justify-content: center; }
}

/* Precio con descuento de un cupón: tachado + final + chip. */
.store-card__price--deal { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.store-card__price--deal s { color: var(--ink-400); font-size: 0.82rem; font-weight: 400; }

/* Overlays sobre el store-card reusado (lista de deseos + ya la tienes) */
.store-card--client { position: relative; }
.store-card__wish { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 5; margin: 0; }
.store-card__owned {
  position: absolute; left: 0.55rem; top: 0.55rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font: 700 0.58rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.45rem; border-radius: var(--radius-sm);
  background: rgba(14,18,14,.85); color: var(--ink-50); border: 1px solid rgba(120,200,140,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.store-card__pricetag { font: 700 0.56rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange-200); background: rgba(229,9,20,.14); padding: 0.24rem 0.38rem; border-radius: var(--radius-sm); }

/* Detalle interno de app */
.acc-appd__hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-4); background: var(--bg-3); min-height: 220px; display: flex; align-items: flex-end; margin-bottom: 1.4rem; }
.acc-appd__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-appd__grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,.95), rgba(8,8,10,.3) 55%, transparent); }
.acc-appd__herobody { position: relative; z-index: 2; padding: 1.3rem 1.4rem; }
.acc-appd__herobody h1 { margin: 0.2rem 0 0.15rem; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.acc-appd__herobody p { margin: 0; color: var(--ink-100); }
.acc-appd__owned { display: inline-flex; align-items: center; gap: 0.3rem; font: 700 0.6rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-50); background: rgba(14,18,14,.8); border: 1px solid rgba(120,200,140,.35); padding: 0.3rem 0.45rem; border-radius: var(--radius-sm); }
.acc-appd__grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 900px) { .acc-appd__grid { grid-template-columns: 1fr 300px; align-items: start; } }
.acc-appd__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.acc-appd__shot { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--bg-4); aspect-ratio: 16/9; background: var(--bg-3); }
.acc-appd__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-appd__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.acc-appd__feats li { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-100); }
.acc-appd__feats .acc-i, .acc-appd__feats .acc-i--sm { color: var(--signal-live); flex-shrink: 0; }
.acc-appd__specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.acc-appd__specs div { background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-md); padding: 0.6rem 0.75rem; }
.acc-appd__specs dt { font-size: 0.7rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.04em; }
.acc-appd__specs dd { margin: 0.2rem 0 0; color: var(--ink-50); font-size: 0.9rem; }
.acc-appd__buy { position: sticky; top: 80px; background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.85rem; }
.acc-appd__pricetag { align-self: flex-start; font: 700 0.6rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange-200); background: rgba(229,9,20,.14); padding: 0.3rem 0.45rem; border-radius: var(--radius-sm); }
.acc-appd__price { display: flex; align-items: baseline; gap: 0.5rem; }
.acc-appd__price s { color: var(--ink-400); font-size: 1rem; }
.acc-appd__price strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink-0); }
.acc-appd__note { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-100); background: rgba(229,9,20,.08); border: 1px solid rgba(229,9,20,.2); border-radius: var(--radius-md); padding: 0.7rem 0.8rem; }
.acc-appd__note .acc-i, .acc-appd__note .acc-i--sm { color: var(--orange-300); flex-shrink: 0; margin-top: 2px; }
.acc-appd__wish.is-on { color: var(--orange-300); border-color: var(--orange-400); }
.acc-appd__wish.is-on .acc-i { fill: currentColor; }

/* Pasos de "cómo funciona" (referidos) */
.acc-refer__head { display: flex; align-items: center; gap: 0.8rem; }
.acc-refer__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(229,9,20,.16); color: var(--orange-300); flex-shrink: 0; }
.acc-refer__icon .acc-i { width: 24px; height: 24px; }
.acc-refer-steps { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .acc-refer-steps { grid-template-columns: repeat(3, 1fr); } }
.acc-refer-step { display: flex; align-items: flex-start; gap: 0.7rem; background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); padding: 1rem; }
.acc-refer-step__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-400); color: #fff; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.acc-refer-step p { margin: 0; color: var(--ink-100); font-size: 0.9rem; }

/* Invita y gana (referidos) */
.acc-refer {
  background: linear-gradient(135deg, rgba(229,9,20,.16), var(--bg-2) 60%);
  border: 1px solid var(--bg-4); border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.acc-refer h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-0); }
.acc-refer h2 .acc-i { color: var(--orange-300); }
.acc-refer__intro p { margin: 0.35rem 0 0; }
.acc-refer__link { width: 100%; flex-wrap: wrap; row-gap: 0.5rem; }
.acc-refer__link code { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-size: 0.95rem; letter-spacing: 0.02em; }
.acc-refer__link .acc-copy { flex: 0 0 auto; margin-left: auto; }
.acc-refer__stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.acc-refer__stat { display: flex; flex-direction: column; gap: 0.1rem; }
.acc-refer__stat strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-0); line-height: 1; }
.acc-refer__stat span { font-size: 0.74rem; color: var(--ink-300); }
.acc-refer__coupons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Hacer un pedido: tarjeta de la app elegida */
.acc-order-app { display: flex; align-items: center; gap: 0.8rem; background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); padding: 0.7rem 0.9rem; }
.acc-order-app__img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.acc-order-app__label { display: block; font-size: 0.72rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.04em; }
.acc-order-app__name { color: var(--ink-0); font-size: 1.05rem; }
.acc-order-app__change { margin-left: auto; color: var(--orange-300); font-size: 0.85rem; flex-shrink: 0; }
.acc-order-coupon { display: flex; align-items: center; gap: 0.8rem; background: rgba(229,9,20,.1); border: 1px dashed var(--orange-400); border-radius: var(--radius-lg); padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; }
.acc-order-coupon__badge { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-weight: 700; color: var(--orange-300); flex-shrink: 0; }
.acc-order-coupon__body strong { display: block; color: var(--ink-0); font-size: 0.95rem; }
.acc-order-coupon__price s { color: var(--ink-400); }
.acc-order-coupon__price strong { display: inline; color: var(--signal-live, #29c46a); font-size: 1.1rem; }

/* Detalle de pedido: tarjeta "finaliza tu pedido" + datos del rebrand */
.acc-order-finish { background: linear-gradient(135deg, rgba(229,9,20,.14), var(--bg-2)); border: 1px solid var(--orange-500); border-radius: var(--radius-lg); padding: 1.1rem; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.acc-order-finish__body { display: flex; align-items: flex-start; gap: 0.7rem; }
.acc-order-finish__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--signal-live, #29c46a); color: #fff; flex-shrink: 0; }
.acc-order-finish strong { display: block; color: var(--ink-0); font-size: 1.05rem; }
.acc-order-finish p { margin: 0.2rem 0 0; }
.acc-order-finish__cta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acc-order-finish__cta .btn { flex: 1 1 180px; justify-content: center; }
.acc-brandreq { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.acc-brandreq__logo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(#2a2a2e 0% 25%, #232327 0% 50%) 50% / 16px 16px; }
.acc-brandreq__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.acc-brandreq__list { flex: 1 1 240px; min-width: 0; margin: 0; display: grid; gap: 0.6rem; }
.acc-brandreq__list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-300); }
.acc-brandreq__list dd { margin: 0.1rem 0 0; color: var(--ink-50); overflow-wrap: anywhere; }
.acc-brandreq__list code { font-family: var(--font-mono); font-size: 0.9rem; }

/* Encuestas */
.acc-survey-card { display: flex; align-items: center; gap: 1rem; background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin-bottom: 0.8rem; }
.acc-survey-card.is-done { opacity: 0.72; }
.acc-survey-card__body { flex: 1 1 auto; min-width: 0; }
.acc-survey-card__body h3 { margin: 0 0 0.2rem; color: var(--ink-0); font-size: 1.05rem; }
.acc-survey-card__body p { margin: 0 0 0.4rem; }
.acc-survey-card__meta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--ink-300); }
.acc-survey-card .btn, .acc-survey-card__done { flex-shrink: 0; }
.acc-survey-card__done { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--signal-live, #29c46a); font-size: 0.85rem; font-weight: 600; }
.acc-survey-form { gap: 1.4rem; }
.acc-survey-q { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-width: 0; }
.acc-survey-q legend { padding: 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink-0); }
.acc-rating { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.acc-rating__opt { cursor: pointer; }
.acc-rating__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.acc-rating__opt span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--bg-4); background: var(--bg-3); color: var(--ink-100); font-family: var(--font-display); font-size: 1.1rem; transition: border-color .15s, background .15s, color .15s; }
.acc-rating__opt input:checked + span { border-color: var(--orange-400); background: rgba(229,9,20,.16); color: #fff; }
.acc-rating__opt input:focus-visible + span { outline: 2px solid var(--orange-300); outline-offset: 2px; }
.acc-rating__hint { font-size: 0.75rem; color: var(--ink-300); }
.acc-choices { display: grid; gap: 0.5rem; }
.acc-choice { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--bg-4); border-radius: var(--radius-sm); background: var(--bg-3); cursor: pointer; transition: border-color .15s, background .15s; }
.acc-choice:has(input:checked) { border-color: var(--orange-400); background: rgba(229,9,20,.1); }
.acc-choice input { accent-color: var(--orange-400); flex-shrink: 0; }
.acc-choice span { color: var(--ink-50); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Detalle de pedido ---------- */
.acc-order-head { display: flex; gap: 1.25rem; padding: 1.5rem; align-items: flex-start; }
.acc-order-head__img { width: 180px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); flex-shrink: 0; }
.acc-order-head__info { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.acc-order-head__info h1 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; color: var(--ink-0); }
.acc-order-help { margin-top: 0.5rem; }
.acc-order-help a { color: var(--orange-300); }

/* ---------- Tickets: hilo ---------- */
.acc-ticket-title { max-width: 60ch; }
.acc-thread { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.acc-msg { max-width: 78%; padding: 0.9rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--bg-3); background: var(--bg-1); }
.acc-msg--cliente { align-self: flex-end; background: rgba(229,9,20,.10); border-color: rgba(229,9,20,.30); }
.acc-msg--admin   { align-self: flex-start; }
.acc-msg__head { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.35rem; }
.acc-msg__head strong { font-size: 0.82rem; color: var(--ink-100); }
.acc-msg__head time { font-size: 0.7rem; color: var(--ink-400); }
.acc-msg__body { font-size: 0.92rem; color: var(--ink-100); line-height: 1.55; overflow-wrap: anywhere; }
.acc-msg__files { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.acc-attach {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem; font-size: 0.78rem; color: var(--ink-200); text-decoration: none;
}
.acc-attach:hover { color: var(--orange-300); }

/* ---------- Perfil ---------- */
.acc-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin-top: 1.25rem; }
.acc-profile-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.acc-danger { border-color: rgba(239,68,68,.35); }
.acc-danger__summary { cursor: pointer; color: var(--signal-alert); font-size: 0.9rem; margin-bottom: 0.9rem; }
.acc-danger__btn { background: var(--signal-alert); color: #fff; }
.acc-danger__btn:hover { background: #DC2626; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .acc-two-col { grid-template-columns: 1fr; }
  .acc-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .acc-shell { grid-template-columns: 1fr; gap: 1.25rem; }
  .acc-nav {
    position: sticky; top: 58px; z-index: 40;
    flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0.45rem; border-radius: var(--radius-lg);
  }
  .acc-nav a { white-space: nowrap; padding: 0.5rem 0.8rem; }
  .acc-nav a span { font-size: 0.85rem; }
  .acc-topbar__name, .acc-topbar__site { display: none; }
  .acc-topbar__actions { gap: 0.55rem; }
}
@media (max-width: 700px) {
  .acc-topbar__tag { display: none; } /* el chip choca con las acciones cuando hay sesión */
}
@media (max-width: 940px) {
  .acc-auth__panel { grid-template-columns: 1fr; max-width: 460px; }
  .acc-auth__brand { display: none; } /* móvil: solo el form, con logo chico arriba */
  .acc-auth__logo { display: block; }
}
/* ---------- Ficha de ENTREGA (nombre + hero + apk + código + panel + credenciales) ---------- */
/* align-items:start → cada ficha toma su altura natural (nada de estirar la
   corta para igualar a la alta y dejar un hueco negro). */
.acc-delivery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; align-items: start;
}
.acc-rebrand__deliv.acc-delivery-grid { padding: 1rem 1.25rem; }
.acc-delivery {
  background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
/* Fotos de entrega: todas horizontales de proporción variable. height:auto las
   muestra completas (sin recorte); max-height + contain sólo protege una foto
   atípica alta (la mete con barras en vez de recortarla). */
.acc-delivery__hero { background: var(--bg-3); flex-shrink: 0; }
.acc-delivery__hero img { width: 100%; height: auto; max-height: 340px; object-fit: contain; display: block; }
.acc-delivery__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.7rem; }
.acc-delivery__name { margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-0); }
.acc-delivery__open { justify-content: center; }
/* Entrega: los datos agrupados por para-qué-sirven (tu app / tu panel), no en una lista suelta. */
.acc-cf-group { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.85rem; }
.acc-cf-group + .acc-cf-group { border-top: 1px solid var(--bg-3); }
.acc-cf-group__t {
  margin: 0; display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-300);
}
.acc-creds > summary { cursor: pointer; font-size: 0.82rem; color: var(--orange-300); padding: 0.2rem 0; }
.acc-creds__note { font-size: 0.8rem; margin: 0.4rem 0 0.7rem; }
.acc-cf-grid { display: flex; flex-direction: column; gap: 0.55rem; }
@media (min-width: 620px) {
  .acc-cf-grid--2 { display: grid; grid-template-columns: 1fr 1fr; }
}
.acc-cf { display: flex; flex-direction: column; gap: 0.25rem; }
.acc-cf__label { font-size: 0.72rem; color: var(--ink-300); font-weight: 600; letter-spacing: 0.02em; }
.acc-cf .acc-code { width: 100%; justify-content: space-between; }
.acc-cf .acc-code code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acc-code--secret code { letter-spacing: 0.18em; }

/* ---------- Mis accesos rápidos (links del cliente) ---------- */
.acc-links { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.acc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--bg-2); border: 1px solid var(--bg-4); border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
}
.acc-link a { color: var(--ink-50); text-decoration: none; font-size: 0.92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-link a:hover { color: var(--orange-300); }
.acc-link__del {
  background: none; border: 0; color: var(--ink-400); cursor: pointer;
  font-size: 0.85rem; padding: 0.2rem 0.4rem; border-radius: var(--radius-sm); flex-shrink: 0;
}
.acc-link__del:hover { color: var(--signal-alert); background: var(--bg-3); }
.acc-link-add { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.acc-link-add input {
  flex: 1; min-width: 150px; background: var(--bg-2); color: var(--ink-50);
  border: 1px solid var(--bg-4); border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem; font: inherit; font-size: 0.9rem;
}
.acc-link-add input:focus-visible { outline: none; border-color: var(--orange-400); }

/* ---------- Métodos de pago ---------- */
.acc-pay { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem; flex-wrap: wrap; }
.acc-pay__icons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.acc-pay__icon {
  display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem; height: 40px;
}
.acc-pay__icon img { height: 22px; width: auto; display: block; }
.acc-pay p { margin: 0; flex: 1; min-width: 220px; }

/* ---------- Pasos del pedido (stepper simple, letra clara) ---------- */
.acc-steps { display: flex; gap: 0; margin-bottom: 1.5rem; }
.acc-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; position: relative; }
.acc-step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--bg-4);
}
.acc-step.is-done:not(:last-child)::after { background: var(--signal-live); }
.acc-step__dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); color: var(--ink-300); font-weight: 700; font-size: 0.9rem; z-index: 1;
}
.acc-step.is-done .acc-step__dot    { background: var(--signal-live); color: var(--bg-0); }
.acc-step.is-current .acc-step__dot { background: var(--orange-400); color: #fff; box-shadow: 0 0 0 4px rgba(229,9,20,.25); }
.acc-step__label { font-size: 0.82rem; color: var(--ink-300); text-align: center; }
.acc-step.is-current .acc-step__label { color: var(--ink-0); font-weight: 600; }
.acc-step.is-done .acc-step__label    { color: var(--ink-100); }

.acc-order-eta { margin: 0; font-size: 0.92rem; color: var(--ink-100); }
.acc-notes { font-size: 0.95rem; line-height: 1.6; color: var(--ink-100); }
.acc-waiting { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; font-size: 0.95rem; }
.acc-waiting .btn { flex-shrink: 0; }

/* Imagen adjunta inline en el chat */
.acc-attach-img img {
  max-width: 240px; max-height: 180px; border-radius: var(--radius-md);
  display: block; border: 1px solid var(--bg-4);
}

@media (max-width: 560px) {
  /* Stats: 3 columnas compactas (icono arriba) en vez de apilar cards enormes */
  .acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
  .acc-stat {
    grid-template-columns: 1fr; grid-template-areas: "ico" "num" "lbl";
    justify-items: center; text-align: center; row-gap: 0.2rem; padding: 0.8rem 0.5rem;
  }
  .acc-stat svg { width: 30px; height: 30px; }
  .acc-stat strong { font-size: 1.25rem; }
  .acc-stat span { font-size: 0.68rem; }
  .acc-msg { max-width: 100%; }
  .acc-deliv { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .acc-deliv__action { max-width: 100%; }
  .acc-order-head, .acc-promo-hero { flex-direction: column; }
  .acc-auth__card { padding: 1.7rem 1.25rem; }
  .acc-rebrand__head { flex-wrap: wrap; }
  .acc-rebrand__side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .acc-hero { flex-direction: column; align-items: flex-start; }
  .acc-field-row { flex-direction: column; }
  .acc-shelf { grid-auto-columns: 168px; }
}

/* Bento responsive */
@media (max-width: 980px) {
  .acc-bento { grid-template-columns: 1fr; }
}

/* ===== Animaciones de entrada del área (sutiles, respetan reduced-motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes accRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes accFade { from { opacity: 0; } to { opacity: 1; } }

  /* Bloques principales del panel */
  .acc-main > .acc-page-head,
  .acc-main > .acc-store-hero,
  .acc-main > .acc-store-lock,
  .acc-main > .acc-section,
  .acc-main .acc-panel,
  .acc-auth__panel {
    animation: accRise .55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  /* Stagger de secciones (Tienda, Archivos, Referidos) */
  .acc-main > .acc-section:nth-of-type(2) { animation-delay: .06s; }
  .acc-main > .acc-section:nth-of-type(3) { animation-delay: .12s; }
  .acc-main > .acc-section:nth-of-type(4) { animation-delay: .18s; }
  .acc-main > .acc-section:nth-of-type(5) { animation-delay: .24s; }
  /* Stagger de los paneles del dashboard (bento) */
  .acc-panel:nth-of-type(2) { animation-delay: .05s; }
  .acc-panel:nth-of-type(3) { animation-delay: .10s; }
  .acc-panel:nth-of-type(4) { animation-delay: .15s; }

  /* Cards de grillas: entran escalonadas */
  .apps-grid > *, .acc-deal-grid > *, .acc-files-grid > *, .acc-pack-grid > *, .acc-files-steps > *, .acc-refer-steps > * {
    animation: accRise .5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .apps-grid > *:nth-child(2), .acc-deal-grid > *:nth-child(2), .acc-files-grid > *:nth-child(2), .acc-files-steps > *:nth-child(2), .acc-refer-steps > *:nth-child(2) { animation-delay: .05s; }
  .apps-grid > *:nth-child(3), .acc-deal-grid > *:nth-child(3), .acc-files-grid > *:nth-child(3), .acc-files-steps > *:nth-child(3), .acc-refer-steps > *:nth-child(3) { animation-delay: .10s; }
  .apps-grid > *:nth-child(4), .acc-deal-grid > *:nth-child(4), .acc-files-grid > *:nth-child(4) { animation-delay: .15s; }
  .apps-grid > *:nth-child(5), .acc-files-grid > *:nth-child(5) { animation-delay: .20s; }
  .apps-grid > *:nth-child(6), .acc-files-grid > *:nth-child(6) { animation-delay: .25s; }

  /* Packs hero + carrusel entran con fade */
  .packhero { animation: accFade .6s ease both; }

  /* Flashes (avisos) que aparecen arriba */
  .acc-flash { animation: accRise .4s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* ---------- Instrucciones del pedido (foto + qué hacer, de a una) ---------- */
.acc-inst { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; counter-reset: none; }
.acc-inst__item {
  position: relative; display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.95rem 2.4rem 0.95rem 1rem;
  background: var(--bg-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--bg-3);
}
.acc-inst__n {
  flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: var(--radius-sm); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--bg-3);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-200);
}
.acc-inst__body { min-width: 0; flex: 1; }
.acc-inst__t { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1rem; color: var(--ink-0); }
.acc-inst__body p { margin: 0; line-height: 1.6; color: var(--ink-100); }
/* La imagen se ve entera: son capturas, recortarlas pierde justo lo que se quiere señalar. */
.acc-inst__img {
  display: block; width: 100%; max-width: 420px; height: auto; max-height: 300px; object-fit: contain;
  border-radius: var(--radius-md); background: var(--bg-3); margin-bottom: 0.6rem;
}
.acc-inst__del {
  position: absolute; top: 0.5rem; right: 0.6rem;
  background: none; border: 0; color: var(--ink-400); font-size: 1.2rem; line-height: 1;
  cursor: pointer; padding: 0.2rem 0.35rem; border-radius: var(--radius-sm);
}
.acc-inst__del:hover { color: var(--red-400, #E50914); background: var(--bg-2); }
/* Cerrado = botón principal "Agregar". Abierto = "Cancelar" discreto, porque la acción
   principal pasa a ser el Guardar del formulario. Nunca dos primarios en pantalla. */
.acc-inst-add > summary {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; list-style: none;
  padding: 0.55rem 1rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; line-height: 1;
  background: var(--red-500, #E50914); color: #fff;
  transition: background 0.2s var(--ease, ease), color 0.2s var(--ease, ease);
}
.acc-inst-add > summary::-webkit-details-marker { display: none; }
.acc-inst-add > summary:hover { background: var(--red-400, #f0242e); }
.acc-inst-add > summary .acc-inst-add__on,
.acc-inst-add > summary .acc-inst-add__off { align-items: center; gap: 0.35rem; white-space: nowrap; }
.acc-inst-add > summary .acc-inst-add__on  { display: inline-flex; }
.acc-inst-add > summary .acc-inst-add__off { display: none; }
.acc-inst-add[open] > summary {
  margin-bottom: 0.9rem;
  background: transparent; color: var(--ink-300);
  box-shadow: inset 0 0 0 1px var(--bg-3);
}
.acc-inst-add[open] > summary:hover { background: var(--bg-2); color: var(--ink-100); }
.acc-inst-add[open] > summary .acc-inst-add__on  { display: none; }
.acc-inst-add[open] > summary .acc-inst-add__off { display: inline-flex; }
