/* ==========================================================================
   Animexis · diseño nuevo de la tienda
   Fondo oscuro, fichas de producto blancas, Unbounded para títulos e Inter
   para texto. Rojo de la marca para acciones y ámbar para preventas.
   ========================================================================== */

:root {
  --ax-bg: #121112;
  --ax-surface: #1C1A1B;
  --ax-header: #211F20;
  --ax-footer: #0C0B0C;
  --ax-line: #2E2B2C;
  --ax-line-strong: #3A3637;
  --ax-text: #F5F3F2;
  --ax-text-soft: #D9D3D0;
  --ax-muted: #A8A29F;
  --ax-faint: #8E8885;
  --ax-red: #DE261E;
  --ax-red-hover: #C41E17;
  --ax-red-text: #FF5A4F;
  --ax-amber: #F2B33D;
  --ax-ink: #211F20;
  --ax-white: #FFFFFF;

  --ax-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ax-display: 'Unbounded', 'Inter', system-ui, sans-serif;

  --ax-wrap: 1320px;
  --ax-gutter: 24px;
  --ax-radius: 20px;
  --ax-radius-sm: 12px;
  --ax-bottomnav: 0px;
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* "hidden" siempre oculta, aunque la clase del elemento defina display */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.ax {
  margin: 0;
  min-height: 100vh;
  background: var(--ax-bg);
  color: var(--ax-text);
  font-family: var(--ax-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--ax-bottomnav);
}

.ax img { max-width: 100%; }
.ax a { color: var(--ax-text); }
.ax a:hover { color: var(--ax-red-text); }
.ax h1, .ax h2, .ax h3 { margin: 0; font-weight: 600; }
.ax p { margin: 0; }
.ax button { font: inherit; }

.ax :focus-visible {
  outline: 2px solid var(--ax-amber);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ax-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--ax-radius-sm);
  background: var(--ax-amber);
  color: var(--ax-ink) !important;
  font-weight: 700;
  text-decoration: none;
}
.ax-skip:focus { top: 12px; }

.ax-wrap {
  max-width: var(--ax-wrap);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-display { font-family: var(--ax-display); }

/* --- Botones ------------------------------------------------------------- */

.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--ax-radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ax .ax-btn--primary, .ax .ax-btn--primary:hover { color: var(--ax-white); }
.ax-btn--primary { background: var(--ax-red); }
.ax-btn--primary:hover { background: var(--ax-red-hover); }
.ax .ax-btn--dark, .ax .ax-btn--dark:hover { color: var(--ax-white); }
.ax-btn--dark { background: var(--ax-bg); }
.ax-btn--dark:hover { background: #000; }
.ax-btn--ghost { background: transparent; border-color: var(--ax-line-strong); color: var(--ax-text); }
.ax-btn--ghost:hover { border-color: var(--ax-text); }
.ax-btn--block { width: 100%; }

.ax-iconbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--ax-radius-sm);
  background: transparent;
  color: var(--ax-text);
  cursor: pointer;
}
.ax-iconbtn:hover { background: var(--ax-line); color: var(--ax-text); }

.ax-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ax-text);
  color: var(--ax-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* --- Barra superior ------------------------------------------------------ */

.ax-topbar {
  background: var(--ax-red);
  color: var(--ax-white);
  font-size: 13px;
  font-weight: 500;
}
.ax-topbar .ax-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
}
.ax .ax-topbar a { color: var(--ax-white); text-decoration: none; }
.ax .ax-topbar a:hover { text-decoration: underline; }

/* --- Encabezado ---------------------------------------------------------- */

.ax-header {
  background: var(--ax-header);
  border-bottom: 1px solid var(--ax-line);
}

.ax-header__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo search account";
  align-items: center;
  gap: 16px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.ax-header__menu { grid-area: menu; display: none; }

.ax-logo { grid-area: logo; display: block; line-height: 0; }
.ax-logo img { display: block; height: 58px; width: auto; }

.ax-search {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ax-bg);
  border: 1px solid var(--ax-line-strong);
  border-radius: 14px;
  padding: 4px 4px 4px 16px;
}
.ax-search:focus-within { border-color: var(--ax-muted); }
.ax-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ax-text);
  font: inherit;
  font-size: 15px;
  padding: 10px 0;
}
.ax-search input::placeholder { color: var(--ax-faint); }
.ax-search input::-webkit-search-cancel-button { filter: invert(1); }
.ax-search button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--ax-line);
  color: var(--ax-text);
  cursor: pointer;
}
.ax-search button:hover { background: var(--ax-line-strong); }

.ax-account {
  grid-area: account;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ax-account__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--ax-radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ax .ax-account__link { color: var(--ax-text); }
.ax .ax-account__link:hover { background: var(--ax-line); color: var(--ax-text); }
.ax-account__link--icon { width: 44px; padding: 0; justify-content: center; }

/* Menú desplegable de "Mi cuenta" */
.ax-usermenu { position: relative; }
.ax-usermenu > summary { list-style: none; cursor: pointer; }
.ax-usermenu > summary::-webkit-details-marker { display: none; }
.ax-usermenu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 14px;
  background: var(--ax-surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
}
.ax-usermenu__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}
.ax .ax-usermenu__panel a:hover { background: var(--ax-line); color: var(--ax-text); }
.ax-usermenu__panel hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--ax-line); }

.ax-cartbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: var(--ax-radius-sm);
  background: var(--ax-red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ax .ax-cartbtn, .ax .ax-cartbtn:hover { color: var(--ax-white); }
.ax-cartbtn:hover { background: var(--ax-red-hover); }
.ax-cartbtn .ax-badge { display: none; }

/* Categorías */
.ax-cats { border-top: 1px solid var(--ax-line); }
.ax-cats__list {
  max-width: var(--ax-wrap);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  font-size: 14px;
  font-weight: 500;
}
.ax-cats__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}
.ax .ax-cats__list a { color: var(--ax-text); }
.ax .ax-cats__list a:hover { color: var(--ax-red-text); }
.ax .ax-cats__list a.is-pre { color: var(--ax-amber); font-weight: 600; }
.ax-cats__list a.is-pre::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--ax-amber);
}
.ax .ax-cats__list a.is-sale { color: var(--ax-red-text); font-weight: 600; }
.ax-cats__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ax-red-text); }
.ax-cats__list a.is-pre[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ax-amber); }

/* --- Menú del celular ---------------------------------------------------- */

.ax-drawer[hidden] { display: none; }
.ax-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.ax-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 9, .78);
}
.ax-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--ax-surface);
  border-right: 1px solid var(--ax-line);
  animation: ax-slide-in .2s ease-out;
}
@keyframes ax-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.ax-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
  background: var(--ax-header);
  border-bottom: 1px solid var(--ax-line);
}
.ax-drawer__top img { display: block; height: 40px; width: auto; }
.ax-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ax-drawer__link,
.ax-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--ax-radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ax .ax-drawer__link { color: var(--ax-text); }
.ax .ax-drawer__link.is-sale { color: var(--ax-red-text); }
.ax-drawer__group > summary { list-style: none; }
.ax-drawer__group > summary::-webkit-details-marker { display: none; }
.ax-drawer__group > summary svg { transition: transform .15s ease; }
.ax-drawer__group[open] > summary { background: var(--ax-line); }
.ax-drawer__group[open] > summary svg { transform: rotate(180deg); }
.ax-drawer__group.is-pre > summary { color: var(--ax-amber); }
.ax-drawer__subs {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px 12px;
}
.ax-drawer__subs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-left: 2px solid var(--ax-line-strong);
  font-size: 14px;
  text-decoration: none;
}
.ax .ax-drawer__subs a { color: var(--ax-text-soft); }
.ax .ax-drawer__subs a:first-child { color: var(--ax-text); }
.ax-drawer__foot {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--ax-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.ax-drawer__foot > a:not(.ax-btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.ax-drawer__foot .ax-btn { margin-top: 8px; }

body.ax-locked { overflow: hidden; }

/* --- Barra inferior (celular) -------------------------------------------- */

.ax-bottomnav { display: none; }

/* --- Contenido ----------------------------------------------------------- */

.ax-main { display: block; }

.ax-section {
  max-width: var(--ax-wrap);
  margin: 0 auto;
  padding: 72px var(--ax-gutter) 0;
}
.ax-section--first { padding-top: 24px; }

.ax-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.ax-section__titles { display: flex; flex-direction: column; gap: 8px; }
.ax-section__title {
  font-family: var(--ax-display);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ax-section__lead { font-size: 15px; color: var(--ax-muted); }
.ax-section__more {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ax-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ax-amber);
}
.ax-kicker--red { color: var(--ax-red-text); }

.ax-empty {
  padding: 28px;
  border: 1px dashed var(--ax-line-strong);
  border-radius: var(--ax-radius);
  color: var(--ax-muted);
  text-align: center;
}

/* --- Carrusel principal -------------------------------------------------- */

.ax-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ax-surface);
  aspect-ratio: 1600 / 583;
}
.ax-hero__slide { position: absolute; inset: 0; }
.ax-hero__slide[hidden] { display: none; }
.ax-hero__slide a, .ax-hero__slide img { display: block; width: 100%; height: 100%; }
.ax-hero__slide img { object-fit: cover; }
.ax-hero__controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ax-hero__dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 10px;
  border-radius: 22px;
  background: var(--ax-bg);
}
.ax-hero__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ax-hero__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--ax-faint);
  transition: width .2s ease, background-color .2s ease;
}
.ax-hero__dot[aria-current="true"]::after { width: 18px; background: var(--ax-white); }
.ax-hero__arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--ax-bg);
  color: var(--ax-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ax-hero__arrow:hover { background: #000; }

/* --- Promociones (tarjetas grandes) -------------------------------------- */

.ax-promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.ax-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  text-decoration: none;
  transition: border-color .15s ease;
}
.ax .ax-promo, .ax .ax-promo:hover { color: var(--ax-text); }
.ax-promo:hover { border-color: var(--ax-muted); }
.ax-promo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ax-promo__title { font-family: var(--ax-display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.ax-promo__detail { font-size: 13px; color: var(--ax-muted); }
.ax-promo__price { margin-top: 6px; font-size: 16px; font-weight: 700; }
.ax-promo__price small { font-size: 12px; font-weight: 500; color: var(--ax-muted); }

.ax-tile {
  flex: none;
  width: 124px;
  height: 124px;
  border-radius: 14px;
  background: var(--ax-white);
  padding: 10px;
  transform: rotate(3deg);
}
.ax-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* --- Franja de confianza ------------------------------------------------- */

.ax-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--ax-line);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  overflow: hidden;
}
.ax-trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  background: var(--ax-bg);
}
.ax-trust__item svg { flex: none; color: var(--ax-red-text); }
.ax-trust__item div { display: flex; flex-direction: column; gap: 4px; }
.ax-trust__item strong { font-size: 15px; }
.ax-trust__item span { font-size: 13px; line-height: 1.45; color: var(--ax-muted); }

/* --- Tarjetas de categoría ----------------------------------------------- */

.ax-catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.ax-catcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  padding: 22px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s ease;
}
.ax .ax-catcard, .ax .ax-catcard:hover { color: var(--ax-text); }
.ax-catcard:hover { border-color: var(--ax-muted); }
.ax-catcard__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ax-catcard__name { font-family: var(--ax-display); font-size: 21px; font-weight: 600; line-height: 1.2; max-width: 60%; }
.ax-catcard__count { font-size: 13px; color: var(--ax-muted); }
.ax-catcard__go {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--ax-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ax-catcard:hover .ax-catcard__go { background: var(--ax-red); color: var(--ax-white); }
.ax-catcard__img {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 150px;
  height: 150px;
  border-radius: 16px;
  background: var(--ax-white);
  padding: 12px;
  transform: rotate(-8deg);
}
.ax-catcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ax-alsolinks { margin-top: 18px; font-size: 14px; color: var(--ax-muted); }

/* --- Tarjeta de producto ------------------------------------------------- */

.ax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
@media (min-width: 960px) {
  .ax-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ax-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 18px;
  overflow: hidden;
}
.ax-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: var(--ax-white);
}
.ax-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}
.ax-card__media:hover img { transform: scale(1.04); }
.ax-card.is-soldout .ax-card__media img { opacity: .5; }

.ax-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.ax-tag--pre { background: var(--ax-amber); color: var(--ax-ink); }
.ax-tag--sale { background: var(--ax-red); color: var(--ax-white); font-size: 12px; letter-spacing: 0; }
.ax-tag--new { background: var(--ax-ink); color: var(--ax-white); }
.ax-tag--out { background: var(--ax-ink); color: var(--ax-white); }

.ax-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
}
.ax-card__game {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.ax-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax .ax-card__name { color: var(--ax-text); }
.ax .ax-card__name:hover { color: var(--ax-red-text); }
.ax-card__stock { font-size: 12px; font-weight: 600; color: var(--ax-red-text); }
.ax-card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.ax-card__prices { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ax-card__price { font-family: var(--ax-display); font-size: 19px; font-weight: 600; color: var(--ax-white); }
.ax-card__before { font-size: 13px; color: var(--ax-faint); text-decoration: line-through; }
.ax-card__deposit { font-size: 12px; color: var(--ax-amber); }

.ax-addbtn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--ax-radius-sm);
  background: var(--ax-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.ax .ax-addbtn, .ax .ax-addbtn:hover { color: var(--ax-white); }
.ax-addbtn:hover { background: var(--ax-red-hover); }
.ax-addbtn[disabled] { background: var(--ax-line); color: var(--ax-faint); cursor: not-allowed; }
.ax-addbtn.is-busy { opacity: .6; pointer-events: none; }

/* --- Bloque "Cómo apartar" ----------------------------------------------- */

.ax-howto {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: var(--ax-red);
  color: var(--ax-white);
}
.ax-howto__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.ax-howto__intro h2 { font-family: var(--ax-display); font-size: 34px; line-height: 1.15; }
.ax-howto__intro p { font-size: 16px; line-height: 1.55; max-width: 460px; }
.ax-howto__intro .ax-btn { align-self: flex-start; margin-top: 8px; }
.ax-howto__steps {
  flex: 1 1 420px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.ax-howto__steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: var(--ax-bg);
}
.ax-howto__num { font-family: var(--ax-display); font-size: 28px; font-weight: 700; color: var(--ax-red-text); line-height: 1; }
.ax-howto__steps strong { font-size: 15px; }
.ax-howto__steps span:last-child { font-size: 13px; line-height: 1.45; color: #B8B2AF; }

/* --- Pie de página ------------------------------------------------------- */

.ax-footer {
  margin-top: 88px;
  background: var(--ax-footer);
  border-top: 1px solid var(--ax-line);
}
.ax-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 32px;
}
.ax-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.ax-footer__brand img { display: block; width: 170px; height: auto; }
.ax-footer__brand p { font-size: 14px; line-height: 1.55; color: var(--ax-muted); }
.ax-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ax-footer__col h2 {
  margin: 0 0 2px;
  font-family: var(--ax-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.ax-footer__col a { text-decoration: none; }
.ax-footer__col a:hover { text-decoration: underline; }
.ax-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--ax-line);
  font-size: 13px;
  color: var(--ax-faint);
}

/* --- Aviso flotante ------------------------------------------------------ */

.ax-toast {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--ax-bottomnav));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 14px;
  background: var(--ax-surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: 14px;
  font-weight: 500;
  animation: ax-toast-in .2s ease-out;
}
.ax-toast[hidden] { display: none; }
.ax-toast.is-error { border-color: var(--ax-red); }
.ax-toast a { font-weight: 600; white-space: nowrap; }
@keyframes ax-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Celular y tableta --------------------------------------------------- */

@media (max-width: 959px) {
  :root { --ax-gutter: 16px; --ax-bottomnav: 68px; }

  .ax-topbar { display: none; }

  .ax-header__main {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "menu logo account"
      "search search search";
    gap: 10px 8px;
    padding-top: 8px;
    padding-bottom: 14px;
  }
  .ax-header__menu { display: inline-flex; }
  .ax-logo { justify-self: center; }
  .ax-logo img { height: 44px; }
  .ax-search { padding: 0 4px 0 14px; border-radius: var(--ax-radius-sm); }
  .ax-search button { width: 38px; height: 38px; background: transparent; }

  .ax-account .ax-only-desktop { display: none; }
  .ax-cartbtn { width: 44px; padding: 0; justify-content: center; }
  .ax-cartbtn .ax-badge { display: block; top: -4px; right: -4px; }

  .ax-cats { border-top: 0; background: var(--ax-bg); }
  .ax-cats__list {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 16px 4px;
    scrollbar-width: none;
  }
  .ax-cats__list::-webkit-scrollbar { display: none; }
  .ax-cats__list a {
    flex: none;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ax-line-strong);
    border-radius: 999px;
  }
  .ax-cats__list a.is-pre { background: var(--ax-amber); border-color: var(--ax-amber); font-weight: 700; }
  .ax .ax-cats__list a.is-pre, .ax .ax-cats__list a.is-pre:hover { color: var(--ax-ink); }
  .ax-cats__list a.is-pre::before { display: none; }
  .ax-cats__list a[aria-current="page"],
  .ax-cats__list a.is-pre[aria-current="page"] { box-shadow: none; border-color: var(--ax-text); }

  .ax-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ax-header);
    border-top: 1px solid var(--ax-line);
  }
  .ax-bottomnav a, .ax-bottomnav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
  }
  .ax .ax-bottomnav a, .ax .ax-bottomnav button { color: var(--ax-text); }
  .ax .ax-bottomnav [aria-current="page"] { color: var(--ax-red-text); font-weight: 600; }
  .ax-bottomnav .ax-badge { top: 2px; right: calc(50% - 22px); }

  .ax-section { padding-top: 40px; }
  .ax-section--first { padding-top: 14px; }
  .ax-section__title { font-size: 24px; }
  .ax-section__head { margin-bottom: 16px; }

  .ax-hero { border-radius: var(--ax-radius); }
  .ax-hero__controls { right: 12px; bottom: 12px; }
  .ax-hero__arrow { display: none; }
  .ax-hero__dots { height: 32px; padding: 0 6px; }

  .ax-promos { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .ax-tile { width: 96px; height: 96px; }

  .ax-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ax-catcard { height: 140px; padding: 14px; border-radius: 16px; }
  .ax-catcard__name { font-size: 15px; max-width: 70%; }
  .ax-catcard__count { font-size: 12px; }
  .ax-catcard__go { display: none; }
  .ax-catcard__img { width: 84px; height: 84px; right: -10px; bottom: -14px; padding: 8px; border-radius: 12px; }

  .ax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ax-card { border-radius: 16px; }
  .ax-card__media { padding: 12px; }
  .ax-tag { top: 8px; left: 8px; padding: 4px 7px; font-size: 10px; }
  .ax-card__body { padding: 12px; gap: 4px; }
  .ax-card__game { font-size: 11px; }
  .ax-card__name { font-size: 14px; }
  .ax-card__price { font-size: 16px; }
  .ax-card__foot { flex-wrap: wrap; }
  .ax-addbtn { width: 40px; height: 40px; }

  .ax-howto { padding: 22px; border-radius: var(--ax-radius); gap: 20px; }
  .ax-howto__intro h2 { font-size: 21px; }
  .ax-howto__intro p { font-size: 15px; }
  .ax-howto__steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ax-howto__steps li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px; }
  .ax-howto__steps span:last-child { flex-basis: 100%; }
  .ax-howto__num { font-size: 20px; }

  .ax-footer { margin-top: 56px; }
  .ax-footer__cols { gap: 28px; padding-top: 40px; }
}

@media (max-width: 380px) {
  .ax-cartbtn { width: 40px; }
  .ax-logo img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Etapa 2: catálogo, ficha de producto y carrito
   ========================================================================== */

/* --- Página: migas y título --------------------------------------------- */

.ax-page {
  max-width: var(--ax-wrap);
  margin: 0 auto;
  padding: 28px var(--ax-gutter) 0;
}
.ax-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ax-muted);
}
.ax-crumbs li { display: flex; align-items: center; gap: 8px; }
.ax-crumbs li + li::before { content: "/"; color: var(--ax-faint); }
.ax .ax-crumbs a { color: var(--ax-muted); text-decoration: none; }
.ax .ax-crumbs a:hover { color: var(--ax-text); text-decoration: underline; }
.ax-crumbs [aria-current] { color: var(--ax-text); }

.ax-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 28px;
}
.ax-pagehead__titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ax-pagehead h1 {
  font-family: var(--ax-display);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ax-pagehead p { font-size: 15px; color: var(--ax-muted); }

/* --- Formularios -------------------------------------------------------- */

.ax-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.ax-field--full { grid-column: 1 / -1; }
.ax-input, .ax-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ax-line-strong);
  border-radius: var(--ax-radius-sm);
  background: var(--ax-bg);
  color: var(--ax-text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.ax-input::placeholder { color: var(--ax-faint); }
.ax-input:focus, .ax-select:focus { outline: none; border-color: var(--ax-text-soft); }
.ax-input[aria-invalid="true"] { border-color: var(--ax-red-text); }
.ax-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A29F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ax-field__error { font-size: 13px; font-weight: 500; color: var(--ax-red-text); }
.ax-field__error:empty { display: none; }
.ax-formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.ax-label-caps {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

/* --- Catálogo ------------------------------------------------------------ */

.ax-sort { display: flex; align-items: center; gap: 10px; }
.ax-sort label { font-size: 14px; color: var(--ax-muted); white-space: nowrap; }
.ax-sort .ax-select { min-height: 44px; width: auto; font-size: 14px; background-color: var(--ax-surface); }

.ax-catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }

.ax-filters {
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
}
.ax-filters > summary { display: none; }
.ax-filters__body { display: flex; flex-direction: column; gap: 24px; padding: 22px; }
.ax-filters__group { display: flex; flex-direction: column; gap: 10px; }
.ax-filters__cats { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ax-filters__cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
}
.ax .ax-filters__cats a:hover { background: var(--ax-line); color: var(--ax-text); }
.ax-filters__cats a span { color: var(--ax-muted); font-weight: 500; }
.ax-filters__cats a[aria-current="page"] { background: var(--ax-line); font-weight: 600; }
.ax .ax-filters__cats a.is-sub { padding-left: 28px; color: var(--ax-text-soft); }
.ax-filters__price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ax-filters__price .ax-field { font-size: 12px; color: var(--ax-muted); gap: 6px; }
.ax-filters__price .ax-input { min-height: 44px; padding: 0 12px; font-size: 14px; }
.ax-filters__help {
  padding: 16px;
  border-radius: 14px;
  background: var(--ax-bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ax-muted);
}
.ax-filters__help strong { font-size: 14px; color: var(--ax-text); }
.ax-filters__clear { font-size: 14px; text-align: center; }

.ax-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-tags a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.ax-tags a[aria-current="true"] { background: var(--ax-text); border-color: var(--ax-text); }
.ax .ax-tags a[aria-current="true"] { color: var(--ax-ink); }

.ax-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ax-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ax .ax-chip { color: var(--ax-text); }
.ax .ax-chip:hover { border-color: var(--ax-text); color: var(--ax-text); }
.ax-chip[aria-current="page"] { background: var(--ax-text); border-color: var(--ax-text); font-weight: 600; }
.ax .ax-chip[aria-current="page"] { color: var(--ax-bg); }
.ax-chips__count { margin-left: auto; font-size: 14px; color: var(--ax-muted); }
.ax-more { display: flex; justify-content: center; padding-top: 12px; }

.ax-noresults {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  border: 1px dashed var(--ax-line-strong);
  border-radius: 18px;
  background: var(--ax-surface);
}
.ax-noresults strong { font-size: 18px; }
.ax-noresults span { font-size: 14px; color: var(--ax-muted); }

/* --- Ficha de producto --------------------------------------------------- */

.ax-product { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; align-items: flex-start; }
.ax-gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ax-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 40px;
  border-radius: 24px;
  background: var(--ax-white);
}
.ax-gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ax-gallery__main .ax-tag { top: 20px; left: 20px; font-size: 12px; padding: 6px 11px; }
.ax-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ax-gallery__thumbs button {
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 3px solid var(--ax-line);
  border-radius: 16px;
  background: var(--ax-white);
  cursor: pointer;
}
.ax-gallery__thumbs button[aria-pressed="true"] { border-color: var(--ax-red); }
.ax-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

.ax-buybox { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ax-buybox__head { display: flex; flex-direction: column; gap: 12px; }
.ax-buybox h1 {
  font-family: var(--ax-display);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ax-buybox__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.ax-buybox__price { font-family: var(--ax-display); font-size: 36px; font-weight: 700; color: var(--ax-white); }
.ax-buybox__price small { font-family: var(--ax-font); font-size: 15px; font-weight: 500; color: var(--ax-muted); }
.ax-buybox__before { font-size: 18px; color: var(--ax-faint); text-decoration: line-through; }
.ax-buybox__off {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ax-red);
  color: var(--ax-white);
  font-size: 13px;
  font-weight: 700;
}
.ax-buybox__deposit { font-size: 14px; font-weight: 600; color: var(--ax-amber); }
.ax-buybox__stock { font-size: 14px; color: var(--ax-muted); }
.ax-buybox__stock.is-low { color: var(--ax-red-text); font-weight: 600; }
.ax-buybox__actions { display: flex; gap: 12px; align-items: stretch; }
.ax-buybox__actions .ax-btn { flex: 1; min-height: 56px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.ax-btn--light { background: var(--ax-text); }
.ax .ax-btn--light, .ax .ax-btn--light:hover { color: var(--ax-bg); }
.ax-btn--light:hover { background: var(--ax-white); }
.ax-wishbtn {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 14px;
  background: var(--ax-surface);
  color: var(--ax-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ax-wishbtn[aria-pressed="true"] { border-color: var(--ax-red); background: #2A1615; color: var(--ax-red-text); }
.ax-wishbtn[aria-pressed="true"] svg { fill: currentColor; }

.ax-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ax-line-strong);
  border-radius: var(--ax-radius-sm);
}
.ax-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ax-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ax-stepper button:disabled { color: var(--ax-line-strong); cursor: not-allowed; }
.ax-stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--ax-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}
.ax-stepper input::-webkit-inner-spin-button,
.ax-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ax-qtyrow { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }

.ax-notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.ax-notice svg { flex: none; margin-top: 1px; }
.ax-notice--warn { background: #2A1615; border: 1px solid #5A2420; }
.ax-notice--warn svg { color: var(--ax-red-text); }
.ax-notice--info { background: var(--ax-bg); color: var(--ax-text-soft); }
.ax-notice--info svg { color: var(--ax-amber); }

.ax-perks {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--ax-line);
  border-radius: 18px;
  background: var(--ax-surface);
  font-size: 14px;
  line-height: 1.45;
}
.ax-perks li { display: flex; gap: 12px; align-items: flex-start; }
.ax-perks svg { flex: none; color: var(--ax-red-text); }
.ax-perks span span { color: var(--ax-muted); }

.ax-prose { font-size: 15px; line-height: 1.6; color: var(--ax-text-soft); overflow-wrap: anywhere; }
.ax-prose > * + * { margin-top: 10px; }
.ax-prose p { margin: 0; }
.ax-prose strong { color: var(--ax-text); }
.ax-prose ul, .ax-prose ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ax-prose li { position: relative; padding-left: 30px; }
.ax-prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF5A4F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}
.ax-prose ol { counter-reset: ax; }
.ax-prose ol li::before { counter-increment: ax; content: counter(ax) "."; position: absolute; left: 4px; color: var(--ax-red-text); font-weight: 700; }
.ax-prose img { height: auto; border-radius: 12px; }
.ax-prose a { color: var(--ax-red-text); }

.ax-details {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 40px;
  border-radius: 24px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
}
.ax-details__facts { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.ax-details__facts h2 { font-family: var(--ax-display); font-size: 26px; }
.ax-details__facts dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.ax-details__facts dt { color: var(--ax-muted); }
.ax-details__facts dd { margin: 0; }
.ax-details__body { flex: 2 1 480px; min-width: 0; }

/* --- Carrito ------------------------------------------------------------- */

.ax-cart { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ax-cart__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ax-lines { display: flex; flex-direction: column; gap: 12px; }
.ax-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 16px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 18px;
}
.ax-line.is-busy { opacity: .6; pointer-events: none; }
.ax-line__img {
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: 14px;
  background: var(--ax-white);
}
.ax-line__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ax-line__info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ax-line__name { font-size: 16px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ax-line__meta { font-size: 13px; color: var(--ax-muted); }
.ax-line__warn { font-size: 13px; font-weight: 600; color: var(--ax-red-text); }
.ax-line__total { min-width: 96px; text-align: right; font-family: var(--ax-display); font-size: 18px; font-weight: 600; }
.ax-line__remove {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--ax-radius-sm);
  background: var(--ax-line);
  color: var(--ax-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ax-line__remove:hover { background: var(--ax-red); color: var(--ax-white); }

.ax-box {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  background: var(--ax-surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ax-box > legend, .ax-box__title {
  padding: 0 8px;
  font-family: var(--ax-display);
  font-size: 20px;
  font-weight: 600;
}
.ax-box__title { padding: 0; }
/* La leyenda del fieldset va dentro de la caja, igual que los títulos h2 */
.ax-box > legend { float: left; width: 100%; padding: 0; margin: 0; }
.ax-box > legend + * { clear: both; }
.ax-box__lead { font-size: 14px; color: var(--ax-muted); }

.ax-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ax-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ax-line-strong);
  border-radius: 14px;
  background: var(--ax-bg);
  cursor: pointer;
}
.ax-option:has(input:checked) { border-color: var(--ax-red); background: #2A1615; }
.ax-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ax-red); flex: none; }
.ax-option span { display: flex; flex-direction: column; gap: 4px; }
.ax-option strong { font-size: 15px; }
.ax-option small { font-size: 13px; color: var(--ax-muted); }
.ax-option b { font-size: 15px; }

.ax-summary {
  flex: 1 1 340px;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
}
.ax-summary h2 { font-family: var(--ax-display); font-size: 20px; }
.ax-summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 15px; }
.ax-summary dt { color: var(--ax-muted); }
.ax-summary dd { margin: 0; text-align: right; }
.ax-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--ax-line);
}
.ax-summary__total span:first-child { font-size: 15px; font-weight: 600; }
.ax-summary__total strong { font-family: var(--ax-display); font-size: 28px; }
.ax-summary__total small { font-size: 13px; font-weight: 500; color: var(--ax-muted); }
.ax-summary .ax-btn { min-height: 56px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.ax-summary p { font-size: 13px; line-height: 1.5; color: var(--ax-muted); }
.ax-btn[disabled] { opacity: .6; cursor: progress; }

.ax-result {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--ax-line-strong);
  background: var(--ax-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.ax-result strong { font-size: 16px; }
.ax-result.is-error { border-color: var(--ax-red); }

/* --- Barra de acción fija (celular) -------------------------------------- */

.ax-actionbar { display: none; }

@media (max-width: 959px) {
  .ax-page { padding-top: 16px; }
  .ax-pagehead { margin: 12px 0 18px; }
  .ax-pagehead h1 { font-size: 28px; }

  .ax-catalog { gap: 16px; }
  .ax-filters { flex-basis: 100%; max-width: none; }
  .ax-filters > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }
  .ax-filters > summary::-webkit-details-marker { display: none; }
  .ax-filters[open] > summary { border-bottom: 1px solid var(--ax-line); }
  .ax-filters[open] > summary svg { transform: rotate(180deg); }
  .ax-filters__body { padding: 18px; }
  .ax-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--ax-gutter)); padding: 0 var(--ax-gutter); }
  .ax-chips::-webkit-scrollbar { display: none; }
  .ax-chip { min-height: 40px; padding: 0 14px; }
  .ax-chips__count { flex: none; padding-left: 4px; }

  .ax-product { gap: 20px; margin-top: 12px; }
  .ax-gallery__main { padding: 20px; border-radius: var(--ax-radius); }
  .ax-gallery__thumbs { gap: 8px; }
  .ax-gallery__thumbs button { padding: 6px; border-radius: 12px; }
  .ax-buybox { gap: 18px; }
  .ax-buybox h1 { font-size: 24px; }
  .ax-buybox__price { font-size: 28px; }
  .ax-details { margin-top: 36px; padding: 22px; border-radius: var(--ax-radius); }
  .ax-details__facts h2 { font-size: 20px; }

  .ax-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 10px 12px; padding: 12px; }
  .ax-line__img { width: 72px; height: 72px; padding: 6px; grid-row: span 2; }
  .ax-line__info { grid-column: 2; }
  .ax-line__remove { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
  .ax-line .ax-stepper { grid-column: 2; justify-self: start; }
  .ax-line__total { grid-column: 3; text-align: right; min-width: 0; font-size: 15px; white-space: nowrap; justify-self: end; }
  .ax-line .ax-stepper button { width: 40px; height: 40px; }
  .ax-box { padding: 18px; }
  .ax-box > legend, .ax-box__title { font-size: 18px; }
  .ax-summary { position: static; flex-basis: 100%; padding: 18px; }

  body.ax-has-actionbar { --ax-bottomnav: 84px; }
  body.ax-has-actionbar .ax-bottomnav { display: none; }
  .ax-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ax-header);
    border-top: 1px solid var(--ax-line);
  }
  .ax-actionbar__price { display: flex; flex-direction: column; min-width: 0; }
  .ax-actionbar__price small { font-size: 12px; color: var(--ax-muted); }
  .ax-actionbar__price strong { font-family: var(--ax-display); font-size: 18px; white-space: nowrap; }
  .ax-actionbar .ax-btn { flex: 1; min-height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; padding: 0 14px; }
}

/* ==========================================================================
   Etapa 3: cuenta, pedidos, lista de deseos, contacto, políticas y 404
   ========================================================================== */

/* --- Pantallas de acceso (iniciar sesión, registro, recuperar) ------------ */

.ax-auth {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--ax-gutter) 0;
}
.ax-auth--narrow { max-width: 560px; }
.ax-auth__card {
  display: flex;
  flex-wrap: wrap;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  background: var(--ax-surface);
}
.ax-auth__brand {
  flex: 1 1 400px;
  position: relative;
  min-height: 520px;
  padding: 48px;
  background: var(--ax-red);
  color: var(--ax-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ax-auth__brand h2 { font-family: var(--ax-display); font-size: 32px; line-height: 1.15; max-width: 380px; }
.ax-auth__brand .ax-kicker { color: var(--ax-white); }
.ax-auth__brand ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.ax-auth__brand li { display: flex; flex-direction: column; gap: 2px; padding-left: 30px; position: relative; font-size: 15px; line-height: 1.45; }
.ax-auth__brand li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}
.ax-auth__brand li strong { font-size: 16px; }
.ax-auth__tiles { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none; }
.ax-auth__tiles .ax-tile { position: absolute; width: 170px; height: 170px; padding: 14px; border-radius: 18px; }
.ax-auth__tiles .ax-tile:nth-child(1) { left: 48px; bottom: -36px; transform: rotate(-10deg); }
.ax-auth__tiles .ax-tile:nth-child(2) { left: 190px; bottom: 24px; transform: rotate(4deg); }
.ax-auth__tiles .ax-tile:nth-child(3) { right: -30px; bottom: -20px; transform: rotate(12deg); }
.ax-auth__form {
  flex: 1 1 420px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}
.ax-auth__panel {
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--ax-line);
  background: var(--ax-surface);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ax-auth h1 { font-family: var(--ax-display); font-size: 32px; line-height: 1.15; }
.ax-auth__panel h1 { font-size: 28px; }
.ax-auth__lead { font-size: 15px; line-height: 1.5; color: var(--ax-muted); }
.ax-auth__fields { display: flex; flex-direction: column; gap: 18px; }
.ax-auth .ax-input { min-height: 52px; padding: 0 16px; }
.ax-auth .ax-btn--primary { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.ax-auth__foot { padding-top: 20px; border-top: 1px solid var(--ax-line); font-size: 15px; color: var(--ax-muted); }
.ax-auth__foot a { font-weight: 600; }
.ax-auth__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #2A1615;
  color: var(--ax-red-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ax-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ax-field__row a { font-size: 13px; font-weight: 500; color: var(--ax-red-text); }

.ax-password {
  display: flex;
  align-items: center;
  border: 1px solid var(--ax-line-strong);
  border-radius: var(--ax-radius-sm);
  background: var(--ax-bg);
  padding-right: 4px;
}
.ax-password:focus-within { border-color: var(--ax-text-soft); }
.ax-password .ax-input { border: 0; background: transparent; }
.ax-password .ax-input:focus { border: 0; }
.ax-password button {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ax-text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ax-password[aria-invalid="true"] { border-color: var(--ax-red-text); }

.ax-captcha { display: flex; gap: 12px; align-items: stretch; }
.ax-captcha__img {
  flex: none;
  position: relative;
  width: 140px;
  border-radius: var(--ax-radius-sm);
  background: var(--ax-text);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ax-captcha__img img { display: block; width: 100%; height: 52px; object-fit: contain; }
.ax-captcha__new { font-size: 13px; font-weight: 500; background: none; border: 0; padding: 0; color: var(--ax-red-text); cursor: pointer; text-decoration: underline; }
.ax-captcha .ax-input { flex: 1; min-width: 0; }

.ax-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ax-text-soft); }
.ax-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ax-red); }

.ax-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--ax-line-strong);
  background: var(--ax-surface);
  font-size: 14px;
  line-height: 1.5;
}
.ax-flash svg { flex: none; margin-top: 1px; }
.ax-flash--ok { border-color: #1E5A3A; background: #12301F; }
.ax-flash--ok svg { color: #6FE0A0; }
.ax-flash--warn { border-color: #6B5016; background: #3A2C0E; }
.ax-flash--warn svg { color: var(--ax-amber); }
.ax-flash--error { border-color: #5A2420; background: #2A1615; }
.ax-flash--error svg { color: var(--ax-red-text); }
.ax-flash > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ax-flash strong { font-size: 15px; }

/* --- Mi cuenta ------------------------------------------------------------ */

.ax-tiles4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ax-acctile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--ax-radius);
  border: 1px solid var(--ax-line);
  background: var(--ax-surface);
  text-decoration: none;
  transition: border-color .15s ease;
}
.ax .ax-acctile, .ax .ax-acctile:hover { color: var(--ax-text); }
.ax-acctile:hover { border-color: var(--ax-muted); }
.ax-acctile__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ax-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-red-text);
}
.ax-acctile strong { font-family: var(--ax-display); font-size: 18px; font-weight: 600; }
.ax-acctile span { font-size: 14px; color: var(--ax-muted); }
.ax-acctile--admin { border-style: dashed; }

.ax-access { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.ax-access__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ax-access dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.ax-access dt { color: var(--ax-muted); }
.ax-access dd { margin: 0; }

/* --- Mis pedidos ---------------------------------------------------------- */

.ax-orders { display: flex; flex-direction: column; gap: 12px; }
.ax-order { border: 1px solid var(--ax-line); border-radius: var(--ax-radius); background: var(--ax-surface); overflow: hidden; }
.ax-order > summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 190px 130px 24px;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
}
.ax-order > summary::-webkit-details-marker { display: none; }
.ax-order > summary:hover { background: #211F20; }
.ax-order[open] > summary { border-bottom: 1px solid var(--ax-line); }
.ax-order[open] > summary > svg { transform: rotate(180deg); }
.ax-order__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-order__meta small { font-size: 12px; color: var(--ax-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ax-order__meta span { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ax-order__total { font-family: var(--ax-display); font-size: 18px; font-weight: 600; white-space: nowrap; }
.ax-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--ax-line);
  color: var(--ax-text-soft);
}
.ax-pill--ok { background: #12301F; color: #6FE0A0; }
.ax-pill--wait { background: #3A2C0E; color: var(--ax-amber); }
.ax-pill--bad { background: #2A1615; color: var(--ax-red-text); }
.ax-order__body { padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.ax-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ax-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ax-faint); }
.ax-steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--ax-line); }
.ax-steps li.is-done { color: var(--ax-text); }
.ax-steps li.is-done::before { background: var(--ax-red); }
.ax-order__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ax-order__cols h3 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-muted); }
.ax-order__items { display: flex; flex-direction: column; gap: 12px; }
.ax-order__item { display: flex; gap: 12px; align-items: center; }
.ax-order__item img { flex: none; width: 56px; height: 56px; padding: 4px; border-radius: 10px; background: var(--ax-white); object-fit: contain; }
.ax-order__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.ax-order__item small { font-size: 12px; color: var(--ax-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ax-order__item span:last-child { color: var(--ax-muted); }
.ax-order__ship { font-size: 14px; line-height: 1.6; color: var(--ax-text-soft); }
.ax-order__ship strong { color: var(--ax-text); }
.ax-order__sum dl { margin: 0 0 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.ax-order__sum dt { color: var(--ax-muted); }
.ax-order__sum dd { margin: 0; text-align: right; }
.ax-order__sum dd:last-of-type { font-weight: 700; }

/* --- Lista de deseos ------------------------------------------------------ */

.ax-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--ax-bg);
  color: var(--ax-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ax-card__remove:hover { background: var(--ax-red); }
.ax-card__wide { margin-top: 12px; }
.ax-card__wide .ax-btn { width: 100%; min-height: 44px; font-size: 14px; }

/* --- Contacto ------------------------------------------------------------- */

.ax-contact { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ax-contact__form { flex: 999 1 520px; min-width: 0; }
.ax-contact__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.ax-contact textarea.ax-input { min-height: 160px; padding: 14px; line-height: 1.5; resize: vertical; }
.ax-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--ax-radius);
  background: var(--ax-red);
  text-decoration: none;
}
.ax .ax-channel, .ax .ax-channel:hover { color: var(--ax-white); }
.ax-channel strong { font-family: var(--ax-display); font-size: 20px; }
.ax-channels { margin: 0; padding: 22px; border-radius: var(--ax-radius); border: 1px solid var(--ax-line); background: var(--ax-surface); display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; }
.ax-channels dt { color: var(--ax-muted); }
.ax-channels dd { margin: 0; overflow-wrap: anywhere; }

/* --- Políticas ------------------------------------------------------------ */

.ax-legal { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ax-legal__nav { flex: 1 1 240px; max-width: 280px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.ax-legal__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--ax-radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.ax .ax-legal__nav a:hover { background: var(--ax-surface); color: var(--ax-text); }
.ax-legal__nav a[aria-current="page"] { background: var(--ax-surface); font-weight: 700; box-shadow: inset 3px 0 0 var(--ax-red); }
.ax-legal__help { margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--ax-surface); font-size: 13px; line-height: 1.6; color: var(--ax-muted); }
.ax-legal__help strong { display: block; color: var(--ax-text); font-size: 14px; }
.ax-legal__doc { flex: 999 1 560px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.ax-legal__doc > header { display: flex; flex-direction: column; gap: 14px; }
.ax-legal__doc h1 { font-family: var(--ax-display); font-size: 38px; line-height: 1.15; }
.ax-legal__doc > header p { font-size: 16px; line-height: 1.6; color: var(--ax-text-soft); }
.ax-legal__sec { display: flex; gap: 18px; padding-top: 24px; border-top: 1px solid var(--ax-line); }
.ax-legal__num { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--ax-line); color: var(--ax-red-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ax-legal__sec > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ax-legal__sec h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.ax-legal__sec p, .ax-legal__sec li { font-size: 15px; line-height: 1.65; color: var(--ax-text-soft); }
.ax-legal__sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* --- 404 ------------------------------------------------------------------ */

.ax-404 {
  position: relative;
  max-width: var(--ax-wrap);
  margin: 0 auto;
  padding: 80px var(--ax-gutter) 0;
  overflow: hidden;
}
.ax-404__box { position: relative; z-index: 1; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.ax-404__box h1 { font-family: var(--ax-display); font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; }
.ax-404__box p { font-size: 17px; line-height: 1.55; color: var(--ax-text-soft); }
.ax-404__box .ax-search { max-width: 520px; }
.ax-404__links { display: flex; flex-wrap: wrap; gap: 12px; }
.ax-404__num {
  position: absolute;
  right: 0;
  top: 40px;
  font-family: var(--ax-display);
  font-size: 280px;
  font-weight: 700;
  line-height: 1;
  color: var(--ax-surface);
  -webkit-text-stroke: 2px var(--ax-line);
  pointer-events: none;
}

@media (max-width: 959px) {
  .ax-auth { padding-top: 20px; }
  .ax-auth__brand { min-height: 0; padding: 28px 24px 24px; }
  .ax-auth__brand h2 { font-size: 22px; }
  .ax-auth__tiles { display: none; }
  .ax-auth__form, .ax-auth__panel { padding: 24px; }
  .ax-auth h1 { font-size: 26px; }
  .ax-auth__card { border-radius: var(--ax-radius); }
  .ax-captcha__img { width: 120px; }

  .ax-order > summary { grid-template-columns: minmax(0, 1fr) auto 20px; padding: 16px; }
  .ax-order > summary .ax-order__meta--date { display: none; }
  .ax-order > summary .ax-pill { grid-column: 1; justify-self: start; grid-row: 2; }
  .ax-order__total { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; }
  .ax-order > summary > svg { grid-column: 3; grid-row: 1 / span 2; }
  .ax-order__body { padding: 16px; }
  .ax-order__cols { grid-template-columns: minmax(0, 1fr); }

  .ax-legal__nav { position: static; max-width: none; flex-basis: 100%; flex-direction: row; overflow-x: auto; }
  .ax-legal__nav a { flex: none; border: 1px solid var(--ax-line-strong); border-radius: 999px; min-height: 40px; }
  .ax-legal__nav a[aria-current="page"] { box-shadow: none; border-color: var(--ax-text); }
  .ax-legal__help { display: none; }
  .ax-legal__doc h1 { font-size: 28px; }
  .ax-legal__sec { gap: 12px; }
  .ax-legal__num { width: 30px; height: 30px; font-size: 14px; }

  .ax-404 { padding-top: 40px; }
  .ax-404__box h1 { font-size: 30px; }
  .ax-404__num { font-size: 140px; top: auto; bottom: -20px; right: -10px; }
}
@media (min-width: 960px) {
  .ax-order > summary .ax-pill { justify-self: end; }
  .ax-order > summary .ax-order__total { text-align: right; }
}

/* ==========================================================================
   Modo mantenimiento
   - .ax-adminbar: aviso para el administrador dentro de la tienda
   - .ax-mant-*: página "En mantenimiento" (layout frontend/mantenimiento)
   ========================================================================== */

.ax-adminbar { background: var(--ax-amber); color: var(--ax-ink); font-size: 14px; }
.ax-adminbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.ax .ax-adminbar a { color: var(--ax-ink); font-weight: 700; text-decoration: underline; }
.ax .ax-adminbar a:hover { color: #000; }

.ax-mant-body { display: flex; flex-direction: column; }
.ax-mant-top { background: var(--ax-header); border-bottom: 1px solid var(--ax-line); }
.ax-mant-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.ax .ax-mant-top__login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ax-line-strong); border-radius: var(--ax-radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; }
.ax .ax-mant-top__login:hover { border-color: var(--ax-text); color: var(--ax-text); }
.ax-mant-main { flex: 1; padding-bottom: 72px; }
.ax-mant-foot { padding: 24px 0; border-top: 1px solid var(--ax-line); background: var(--ax-footer); color: var(--ax-faint); font-size: 13px; }

.ax-mant-preview { background: var(--ax-amber); color: var(--ax-ink); font-size: 14px; }
.ax-mant-preview .ax-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
.ax .ax-mant-preview a { color: var(--ax-ink); font-weight: 700; }

/* Portada */
.ax-mant-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 64px; padding-bottom: 56px; }
.ax-mant-hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ax-mant-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; border: 1px solid #5A2420; border-radius: 999px; background: #2A1615; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ax-red-text); }
.ax-mant-badge span { width: 8px; height: 8px; border-radius: 4px; background: var(--ax-red-text); animation: ax-mant-pulso 1.8s ease-in-out infinite; }
.ax-mant-hero h1 { font-family: var(--ax-display); font-size: clamp(34px, 5.4vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; max-width: 620px; }
.ax-mant-hero h1 em { font-style: normal; color: var(--ax-red-text); }
.ax-mant-lead { font-size: 18px; line-height: 1.6; color: var(--ax-text-soft); max-width: 540px; }
.ax-mant-msg { display: flex; gap: 12px; align-items: flex-start; max-width: 540px; padding: 14px 18px; border-radius: 14px; background: #3A2C0E; border: 1px solid #6B5016; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ax-mant-msg svg { flex: none; margin-top: 2px; color: var(--ax-amber); }
.ax-mant-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.ax-mant-hero__actions > span { font-size: 14px; color: var(--ax-muted); }

/* Mazo de cartas (decorativo) */
.ax-mant-deck { flex: 1 1 340px; position: relative; height: 380px; max-width: 460px; }
.ax-mant-card { position: absolute; top: 40px; left: 50%; width: 200px; height: 280px; margin-left: -100px; border-radius: 18px; }
.ax-mant-card--back { background: var(--ax-surface); border: 2px dashed var(--ax-line-strong); transform: translateX(-90px) rotate(-14deg); }
.ax-mant-card--mid { background: var(--ax-red); transform: translateX(80px) translateY(-14px) rotate(9deg); animation: ax-mant-baraja 5s ease-in-out infinite; }
.ax-mant-card--front { display: flex; align-items: center; justify-content: center; background: var(--ax-white); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transform: rotate(-2deg); animation: ax-mant-flota 5s ease-in-out infinite; }
.ax-mant-card--front img { width: 132px; height: 132px; }

@keyframes ax-mant-pulso { 50% { opacity: .35; } }
@keyframes ax-mant-flota { 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes ax-mant-baraja { 50% { transform: translateX(96px) translateY(-22px) rotate(13deg); } }

/* Horario y redes */
.ax-mant-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ax-mant-panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--ax-line); border-radius: var(--ax-radius); background: var(--ax-surface); }
.ax-mant-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ax-mant-panel h2 { display: flex; align-items: center; gap: 10px; font-family: var(--ax-display); font-size: 18px; }
.ax-mant-panel h2 svg { color: var(--ax-red-text); }
.ax-mant-panel > p { color: var(--ax-muted); font-size: 14px; }
.ax-mant-open { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ax-muted); white-space: nowrap; }
.ax-mant-open::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.ax-mant-open.is-open { color: #6FE0A0; }

.ax-mant-hours { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ax-mant-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.ax-mant-hours div.is-today { background: #2A1615; }
.ax-mant-hours dt { color: var(--ax-text-soft); }
.ax-mant-hours dt small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ax-red); color: var(--ax-white); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.ax-mant-hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ax-mant-social { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ax .ax-mant-social a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--ax-line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease; }
.ax .ax-mant-social a:hover { border-color: var(--ax-red-text); color: var(--ax-text); }
.ax-mant-social span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ax-mant-social small { color: var(--ax-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-mant-social svg { flex: none; color: var(--ax-faint); }
.ax-mant-social a:hover svg { color: var(--ax-red-text); }

.ax-mant-games { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ax-mant-games li { padding: 8px 14px; border-radius: 999px; background: var(--ax-surface); border: 1px solid var(--ax-line); font-size: 13px; font-weight: 600; color: var(--ax-text-soft); }

/* Acceso para administradores */
.ax-mant-staff { margin-top: 40px; display: flex; justify-content: center; scroll-margin-top: 24px; }
.ax-mant-staff__box { width: 100%; max-width: 680px; border: 1px solid var(--ax-line); border-radius: var(--ax-radius); background: var(--ax-bg); }
.ax-mant-staff__box[open], .ax-mant-staff__box--static { background: var(--ax-surface); }
.ax-mant-staff__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; list-style: none; cursor: pointer; }
.ax-mant-staff__box--static .ax-mant-staff__head { cursor: default; }
.ax-mant-staff__head::-webkit-details-marker { display: none; }
.ax-mant-staff__head > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-mant-staff__head strong { font-size: 15px; }
.ax-mant-staff__head small { font-size: 13px; color: var(--ax-muted); }
.ax-mant-staff__head > svg { flex: none; color: var(--ax-muted); transition: transform .2s ease; }
.ax-mant-staff__box[open] .ax-mant-staff__head > svg { transform: rotate(180deg); }
.ax-mant-staff__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ax-header); color: var(--ax-text-soft); }
.ax-mant-staff summary:focus-visible { outline: 2px solid var(--ax-text); outline-offset: -2px; border-radius: var(--ax-radius); }
.ax-mant-form { display: flex; flex-direction: column; gap: 18px; padding: 4px 20px 20px; }
.ax-mant-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ax-mant-form__foot .ax-btn { min-width: 160px; }

/* Pantallas de cuenta dentro del layout de mantenimiento */
.ax-mant-main > .ax-page, .ax-mant-main > .ax-auth { padding-top: 40px; }

@media (max-width: 959px) {
  .ax-mant-top__in { min-height: 68px; }
  .ax-mant-top .ax-logo img { height: 44px; }
  .ax-mant-hero { padding-top: 36px; gap: 8px; }
  .ax-mant-lead { font-size: 16px; }
  .ax-mant-deck { order: -1; flex-basis: 100%; height: 210px; max-width: none; }
  .ax-mant-card { top: 10px; width: 130px; height: 182px; margin-left: -65px; border-radius: 14px; }
  .ax-mant-card--back { transform: translateX(-70px) rotate(-14deg); }
  .ax-mant-card--mid { transform: translateX(60px) translateY(-8px) rotate(9deg); animation: none; }
  .ax-mant-card--front img { width: 88px; height: 88px; }
  .ax-mant-hero__actions .ax-btn { width: 100%; }
  .ax-mant-panel { padding: 20px; }
  .ax-mant-form__foot .ax-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-mant-badge span, .ax-mant-card--mid, .ax-mant-card--front { animation: none; }
}

/* Mis pedidos: fecha límite de pago */
.ax-order__deadline { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ax-muted); }

/* Preventas con anticipo (ficha, carrito y Mis pedidos) */
.ax-preorder {
  margin-top: -6px;
  padding: 18px 20px;
  border: 1px solid #6B5016;
  border-radius: var(--ax-radius-sm);
  background: #241C0C;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ax-preorder h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ax-amber); }
.ax-preorder ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ax-text-soft); }
.ax-preorder ol strong { color: var(--ax-text); }
.ax-preorder p { font-size: 13px; line-height: 1.5; color: var(--ax-muted); }
.ax-line__pre { color: var(--ax-amber); }
.ax-summary dt.ax-summary__strong, .ax-summary dd.ax-summary__strong { color: var(--ax-amber); font-weight: 700; }
.ax-summary__saldo { padding: 12px 14px; border: 1px solid var(--ax-line-strong); border-radius: var(--ax-radius-sm); }
.ax-summary p.ax-summary__later { margin-top: -6px; font-size: 14px; color: var(--ax-text-soft); }
.ax-summary__later strong { color: var(--ax-text); }
.ax-liquidar { display: flex; flex-direction: column; gap: 12px; }

/* Mi monedero */
.ax-wallet {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  background: var(--ax-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ax-wallet__balance { display: flex; align-items: center; gap: 16px; }
.ax-wallet__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: #2A1615; color: var(--ax-red-text);
}
.ax-wallet h2 { font-size: 14px; font-weight: 600; color: var(--ax-muted); }
.ax-wallet strong { font-family: var(--ax-display); font-size: 34px; line-height: 1.1; }
.ax-wallet small { font-family: var(--ax-font); font-size: 14px; font-weight: 500; color: var(--ax-muted); }
.ax-movs { margin: 8px 0 0; padding: 0; list-style: none; }
.ax-mov { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ax-line); }
.ax-mov:first-child { border-top: 0; }
.ax-mov > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ax-mov strong { font-size: 15px; font-weight: 600; }
.ax-mov small { font-size: 13px; color: var(--ax-muted); }
.ax-mov__amount { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ax-text-soft); }
.ax-mov.is-in .ax-mov__amount { color: #6FE0A0; }
