/* ==========================================================
   RhinoGlass – estilos compartidos (index, tienda y demás)
   ========================================================== */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5a6068;
  --line: #dfe2e6;
  --red: #d31212;
  --red-text: #c00f0f;
  --red-soft: rgba(211, 18, 18, 0.07);
  --band: #0e0f11;
  --band-ink: #f2f3f5;
  --band-muted: #a3a9b1;
  --band-line: #2b2d31;
  --ok: #0f7a3d;
  --ok-bg: #e4f4ea;
  --wait: #8a5a00;
  --wait-bg: #fdf1d8;
  --phone: #eceef1;
  --screen: #cfd4da;
  --font:
    "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --surface: #17181b;
    --ink: #f2f3f5;
    --muted: #9ba1a9;
    --line: #2b2d31;
    --red: #e0241b;
    --red-text: #ff5a4d;
    --red-soft: rgba(224, 36, 27, 0.14);
    --band: #050506;
    --band-ink: #f2f3f5;
    --band-muted: #9ba1a9;
    --band-line: #26282c;
    --ok: #5fd68f;
    --ok-bg: rgba(95, 214, 143, 0.12);
    --wait: #f0c15a;
    --wait-bg: rgba(240, 193, 90, 0.13);
    --phone: #23252a;
    --screen: #0b0c0e;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f11;
  --surface: #17181b;
  --ink: #f2f3f5;
  --muted: #9ba1a9;
  --line: #2b2d31;
  --red: #e0241b;
  --red-text: #ff5a4d;
  --red-soft: rgba(224, 36, 27, 0.14);
  --band: #050506;
  --band-ink: #f2f3f5;
  --band-muted: #9ba1a9;
  --band-line: #26282c;
  --ok: #5fd68f;
  --ok-bg: rgba(95, 214, 143, 0.12);
  --wait: #f0c15a;
  --wait-bg: rgba(240, 193, 90, 0.13);
  --phone: #23252a;
  --screen: #0b0c0e;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Encabezado (siempre claro: el logo tiene fondo blanco) ---------- */
.site-header {
  background: #fff;
  color: #111318;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.site-header__logo img {
  display: block;
  height: 44px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}
.site-nav a {
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  color: #3b4047;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #111318;
  background: #f1f2f4;
}
.site-nav a[aria-current="page"] {
  color: #111318;
  box-shadow: inset 0 -3px 0 var(--red);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-actions__user {
  font-weight: 600;
  text-decoration: none;
  color: #3b4047;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-actions__user:hover {
  background: #f1f2f4;
  color: #111318;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: #a80e0e;
}
.btn--line {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--line:hover {
  background: var(--red-soft);
}
.btn--small {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}
.btn--big {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-header .btn--line {
  color: #111318;
  border-color: #c8ccd1;
}
.site-header .btn--line:hover {
  border-color: #111318;
  background: #f1f2f4;
}
.btn--ok {
  background: var(--ok) !important;
  color: #fff !important;
}

/* ---------- Hero e buscador ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -8%;
  width: 52%;
  height: 120%;
  background: var(--red);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 78%, 12% 38%);
  opacity: 0.95;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2rem;
  align-items: center;
}
.hero__hola {
  margin: 0 0 0.5rem;
  color: var(--muted);
}
.hero__hola a {
  color: var(--red-text);
  font-weight: 700;
  text-decoration: none;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 52ch;
}

.finder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.35);
}
.finder__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.finder__input {
  width: 100%;
  font: inherit;
  font-size: 1.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.finder__input::placeholder {
  color: var(--muted);
}
.finder__input:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 4px var(--red-soft);
}
.finder__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--red);
  color: var(--red-text);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.result {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.result:empty {
  display: none;
}
.group-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.group-title strong {
  color: var(--ink);
}
.family {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 4px solid var(--red);
}
.family li {
  font-weight: 800;
  font-size: 1.1rem;
}
.family li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--muted);
  font-weight: 400;
}
.family li.is-match {
  color: var(--red-text);
}
.others {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  border-left: 4px solid var(--line);
}
.others li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
}
.others__brand {
  font-weight: 800;
}
.none {
  margin: 0 0 1.1rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.opts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.opt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.opt__name {
  font-weight: 700;
}
.opt__note {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.875rem;
}
.opt__price {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: right;
}
.opt__buy {
  grid-row: 1 / span 2;
  grid-column: 3;
}
.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.1em;
}
.tag--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag--wait {
  background: var(--wait-bg);
  color: var(--wait);
}
.empty {
  margin: 0;
  padding: 0.5rem 0;
  color: var(--muted);
}
.empty a {
  color: var(--red-text);
  font-weight: 700;
}
.loading {
  margin: 0;
  color: var(--muted);
}

.hero__art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.hero__art svg {
  width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.35));
}
.glare {
  animation: glare 1.6s 0.5s ease-out 1 both;
}
@keyframes glare {
  from {
    transform: translateX(-260px);
  }
  to {
    transform: translateX(320px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .glare {
    animation: none;
    opacity: 0;
  }
  html {
    scroll-behavior: auto;
  }
  .drawer,
  .overlay,
  .toast {
    transition: none;
  }
}

/* ---------- Secciones ---------- */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  font-stretch: 108%;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.015em;
}
.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  align-self: end;
}
.kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.kind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 7rem;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.kind:hover {
  background: var(--red-soft);
}
.kind::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.15s;
}
.kind:hover::before {
  transform: scaleY(1);
}
.kind__name {
  font-weight: 800;
  font-size: 1.25rem;
  padding-left: 0.75rem;
}
.kind__desc {
  color: var(--muted);
}
.kind__price {
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}
.kind__price small {
  font-weight: 500;
  color: var(--muted);
}

.band {
  background: var(--band);
  color: var(--band-ink);
}
.band .section__lead {
  color: var(--band-muted);
}
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: paso;
  border-top: 1px solid var(--band-line);
}
.step {
  counter-increment: paso;
  padding: 1.5rem 1.5rem 0 0;
}
.step + .step {
  padding-left: 1.5rem;
  border-left: 1px solid var(--band-line);
}
.step::before {
  content: counter(paso);
  display: block;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: 120%;
  font-variation-settings: "wdth" 120;
  color: var(--red-text);
  margin-bottom: 0.6rem;
}
.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.step p {
  margin: 0;
  color: var(--band-muted);
  max-width: 32ch;
}

/* ---------- Tienda ---------- */
.page-title {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.25rem;
}
.page-title h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 110%;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}
.pcard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  border-top: 4px solid var(--red);
}
.pcard[hidden] {
  display: none;
}
.pcard.is-highlight {
  box-shadow: 0 0 0 3px var(--red);
}
.pcard__cat {
  margin: 0;
  color: var(--red-text);
  font-weight: 700;
  font-size: 0.85rem;
}
.pcard__name {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
}
.pcard__price {
  font-size: 1.5rem;
  font-weight: 800;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}
.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.select {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.select:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-soft);
}
.select:disabled {
  opacity: 0.6;
}
.note {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--red-soft);
  font-size: 0.9rem;
}
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.qty button {
  font: inherit;
  font-weight: 800;
  width: 2.4rem;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.qty button:hover {
  background: var(--red-soft);
}
.qty output {
  min-width: 2.6rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-inline: 2px solid var(--line);
}
.pcard__row {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}
.pcard__row .btn {
  flex: 1;
}
.soldout {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.soldout a {
  color: var(--red-text);
}

/* ---------- Carrito (panel lateral) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 45;
}
.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border-left: 3px solid var(--red);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.2s;
  visibility: hidden;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.drawer__close {
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.drawer__close:hover {
  background: var(--red-soft);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.drawer__foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.drawer__empty {
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
}
.citem {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.citem__name {
  font-weight: 700;
}
.citem__meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.citem__price {
  font-weight: 800;
  margin-top: 0.2rem;
}
.citem__del {
  align-self: center;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--red-text);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
}
.citem__del:hover {
  background: var(--red-soft);
}

/* ---------- Pie, WhatsApp y avisos ---------- */
.site-footer {
  background-color: #19212c;
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 3.5rem;
}
.site-footer__backtop {
  display: block;
  background-color: #263241;
  color: #ffffff;
  text-align: center;
  padding: 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.site-footer__backtop:hover {
  background-color: #324154;
  color: #ffffff;
}
.site-footer__grid {
  padding: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.site-footer__col h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.9rem 0;
}
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__list li {
  margin-bottom: 0.65rem;
  color: #d1d5db;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.site-footer__list a {
  color: #d1d5db;
  text-decoration: none;
}
.site-footer__list a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.site-footer__icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.9;
}
.site-footer__shipping {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--red);
  border-radius: 6px;
}
.site-footer__shipping-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.site-footer__shipping-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}
.site-footer__mid {
  border-top: 1px solid #2d3846;
  padding: 1.4rem 0;
}
.site-footer__mid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.site-footer__brand span {
  color: var(--red);
  font-size: 0.9rem;
  vertical-align: super;
}
.site-footer__country {
  border: 1px solid #4b5563;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  color: #d1d5db;
  font-size: 0.82rem;
}
.site-footer__bottom {
  background-color: #0e131a;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}
.site-footer__copy {
  margin: 0;
}
.wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}
.wa:hover {
  background: #1da851;
  transform: scale(1.07);
}
.wa svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 160%);
  visibility: hidden;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 60;
  transition: transform 0.2s;
  max-width: 90%;
}
.toast.is-on {
  transform: translate(-50%, 0);
  visibility: visible;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero::before {
    width: 90%;
    right: -30%;
    opacity: 0.9;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 85%, 15% 40%);
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__art {
    order: -1;
    margin-bottom: -0.5rem;
  }
  .hero__art svg {
    width: min(230px, 60%);
  }
  .section__head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .kind {
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
  }
  .kind__desc {
    grid-column: 1 / -1;
    padding-left: 0.75rem;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 1.25rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--band-line);
  }
  .site-header__row {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding-top: 0.5rem;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0 0 0.35rem;
    overflow-x: auto;
  }
  .site-actions {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .site-header__row {
    gap: 0.25rem 0.5rem;
  }
  .site-actions {
    gap: 0.4rem;
  }
  .site-header .btn--small {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }
  .others li {
    grid-template-columns: 1fr;
  }
  .opt {
    grid-template-columns: 1fr auto;
  }
  .opt__price {
    grid-column: 2;
    grid-row: 1;
  }
  .opt__buy {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .opt__buy .btn {
    width: 100%;
  }
  .site-header__logo img {
    height: 36px;
  }
  .site-actions__user {
    display: none;
  }
}

/* ---------- Checkout y confirmación ---------- */
.input {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.input:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-soft);
}
.input:disabled {
  opacity: 0.6;
}
.co {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
.co__block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}
.co__block h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.co__block h2 span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
}
.choices {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.choice input {
  grid-row: 1 / span 2;
  accent-color: var(--red);
  width: 1.15rem;
  height: 1.15rem;
}
.choice:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.choice__title {
  font-weight: 700;
}
.choice__note {
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 2;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field--wide {
  grid-column: 1 / -1;
}
.field[hidden] {
  display: none;
}
.notice {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--red-soft);
  font-size: 0.95rem;
}
.notice[hidden] {
  display: none;
}
.notice--ok {
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
}
.notice--error {
  background: var(--red-soft);
  color: var(--red-text);
  font-weight: 600;
}
.summary {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.4rem;
}
.summary h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.sum-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.sum-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.sum-items small {
  display: block;
  color: var(--muted);
}
.coupon {
  display: flex;
  gap: 0.5rem;
}
.coupon__msg {
  min-height: 1.4rem;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.9rem;
}
.coupon__msg.is-ok {
  color: var(--ok);
  font-weight: 600;
}
.coupon__msg.is-error {
  color: var(--red-text);
  font-weight: 600;
}
.sum-rows {
  margin: 0 0 1rem;
}
.sum-rows div {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}
.sum-rows dt,
.sum-rows dd {
  margin: 0;
}
.sum-total {
  border-top: 2px solid var(--ink);
  margin-top: 0.5rem;
  padding-top: 0.6rem !important;
  font-size: 1.25rem;
  font-weight: 800;
}
.datos {
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 1rem;
}
.datos div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.datos div:last-child {
  border-bottom: 0;
}
.datos dt {
  color: var(--muted);
}
.datos dd {
  margin: 0;
  font-weight: 700;
  word-break: break-all;
  text-align: right;
}
@media (max-width: 860px) {
  .co {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Entrar y crear cuenta ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.auth__intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 110%;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.auth__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36ch;
}
.auth__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.4);
}
.auth__card .field {
  margin-bottom: 1rem;
}
.auth__card .field label small {
  font-weight: 400;
}
.auth__alt {
  margin: 1.2rem 0 0;
  text-align: center;
  color: var(--muted);
}
.auth__alt a {
  color: var(--red-text);
  font-weight: 700;
}
.field__error {
  display: block;
  margin-top: 0.3rem;
  color: var(--red-text);
  font-size: 0.875rem;
  font-weight: 600;
}
.input[aria-invalid="true"] {
  border-color: var(--red);
}
.pass {
  position: relative;
}
.pass .input {
  padding-right: 4.5rem;
}
.pass__toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--red-text);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}
.pass__toggle:hover {
  background: var(--red-soft);
}
@media (max-width: 760px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth__intro h1 {
    max-width: none;
  }
}

/* ---------- Perfil ---------- */
.perfil {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
.perfil__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: sticky;
  top: 96px;
}
.perfil__tab {
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.perfil__tab:hover {
  background: var(--red-soft);
  color: var(--ink);
}
.perfil__tab.is-active {
  background: var(--red);
  color: #fff;
}
.perfil__panel[hidden] {
  display: none;
}
.perfil__form {
  max-width: 28rem;
  display: grid;
  gap: 1rem;
}
.perfil__form .input:disabled {
  color: var(--muted);
}
.tag--off {
  background: var(--line);
  color: var(--muted);
}
.pedido {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.pedido__cab {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.pedido__fecha {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}
.pedido__tags {
  display: flex;
  gap: 0.4rem;
}
.pedido__items {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pedido__items li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.pedido__items small {
  color: var(--muted);
}
.pedido__pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.pedido__pie strong {
  color: var(--ink);
  font-size: 1.15rem;
}
@media (max-width: 760px) {
  .perfil {
    grid-template-columns: 1fr;
  }
  .perfil__tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .perfil__tab {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ---------- Portada: botones del hero y franja final ---------- */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.cta-final {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-final__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.cta-final__box h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.cta-final__box p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 520px) {
  .cta-final__box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}