﻿/* =========================================================
   CuseSoft Store — hoja de estilos
   ========================================================= */

:root {
  --bg: #07060d;
  --bg-soft: #0b0914;
  --surface: #12101d;
  --surface-2: #191526;
  --surface-3: #221c33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ff;
  --muted: #a89fc4;
  --muted-2: #7d7499;
  --primary: #8b5cf6;
  --primary-2: #d946ef;
  --primary-soft: rgba(139, 92, 246, 0.14);
  --primary-text: #c4b5fd;
  --primary-text-soft: #ddd6fe;
  --accent: #a3e635;
  --accent-soft: rgba(163, 230, 53, 0.12);
  --accent-text: #d9f99d;
  --info-text: #bfdbfe;
  --success: #34d399;
  --danger: #fb7185;
  --danger-text: #fecdd3;
  --warning: #fbbf24;
  --warning-text: #fde68a;
  --header-scrolled: rgba(7, 6, 13, 0.78);
  --footer-bg: rgba(5, 4, 10, 0.6);
  --drawer-bg: #0c0916;
  --modal-bg: #0d0a17;
  --scrim-bg: rgba(4, 3, 9, 0.66);
  --modal-backdrop: rgba(4, 3, 9, 0.74);
  --input-bg: rgba(4, 3, 9, 0.55);
  --segmented-bg: rgba(4, 3, 9, 0.45);
  --surface-glass: rgba(16, 13, 26, 0.92);
  --surface-glass-strong: rgba(16, 13, 26, 0.96);
  --close-bg: rgba(10, 8, 18, 0.7);
  --glass-1: rgba(255, 255, 255, 0.015);
  --glass-2: rgba(255, 255, 255, 0.025);
  --glass-3: rgba(255, 255, 255, 0.04);
  --glass-4: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --grad-text: linear-gradient(115deg, #c4b5fd 0%, #a78bfa 35%, #f0abfc 70%, #a3e635 115%);
  --glow-opacity: 0.5;
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5fc;
  --bg-soft: #efecf8;
  --surface: #ffffff;
  --surface-2: #f4f1fb;
  --surface-3: #ebe5f7;
  --border: rgba(24, 16, 48, 0.1);
  --border-strong: rgba(24, 16, 48, 0.2);
  --text: #161124;
  --muted: #554c70;
  --muted-2: #776e94;
  --primary: #7c3aed;
  --primary-2: #c026d3;
  --primary-soft: rgba(124, 58, 237, 0.1);
  --primary-text: #6d28d9;
  --primary-text-soft: #5b21b6;
  --accent: #65a30d;
  --accent-soft: rgba(101, 163, 13, 0.14);
  --accent-text: #3f6212;
  --info-text: #1d4ed8;
  --success: #059669;
  --danger: #e11d48;
  --danger-text: #be123c;
  --warning: #d97706;
  --warning-text: #92400e;
  --header-scrolled: rgba(247, 245, 252, 0.85);
  --footer-bg: rgba(239, 236, 248, 0.85);
  --drawer-bg: #ffffff;
  --modal-bg: #ffffff;
  --scrim-bg: rgba(24, 16, 48, 0.42);
  --modal-backdrop: rgba(24, 16, 48, 0.48);
  --input-bg: #ffffff;
  --segmented-bg: rgba(24, 16, 48, 0.05);
  --surface-glass: rgba(255, 255, 255, 0.92);
  --surface-glass-strong: rgba(255, 255, 255, 0.98);
  --close-bg: rgba(255, 255, 255, 0.88);
  --glass-1: rgba(24, 16, 48, 0.02);
  --glass-2: rgba(24, 16, 48, 0.03);
  --glass-3: rgba(24, 16, 48, 0.045);
  --glass-4: rgba(24, 16, 48, 0.08);
  --glass-hover: rgba(24, 16, 48, 0.09);
  --grad-text: linear-gradient(115deg, #6d28d9 0%, #7c3aed 38%, #c026d3 72%, #65a30d 115%);
  --glow-opacity: 0.24;
  --shadow-lg: 0 24px 64px rgba(24, 16, 48, 0.12);
  --shadow-md: 0 12px 32px rgba(24, 16, 48, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Fondo decorativo ------------------------------------------------ */

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.page-glow .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--glow-opacity);
}

.glow-a {
  width: 640px;
  height: 640px;
  top: -240px;
  left: 45%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
}

.glow-b {
  width: 520px;
  height: 520px;
  top: 620px;
  left: -220px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.28), transparent 65%);
}

.glow-c {
  width: 620px;
  height: 620px;
  bottom: -260px;
  right: -240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 65%);
}

/* Utilidades ------------------------------------------------------ */

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

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

.btn {
  --btn-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s;
  transform: translateY(var(--btn-y));
}

.btn:hover {
  --btn-y: -2px;
}

.btn:active {
  --btn-y: 0px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  --btn-y: 0px;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.45);
}

.btn-accent {
  background: var(--accent);
  color: #101407;
  box-shadow: 0 12px 30px rgba(163, 230, 53, 0.22);
}

.btn-ghost {
  background: var(--glass-3);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--glass-4);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.3);
  color: var(--danger-text);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--glass-hover);
  border-color: var(--border-strong);
}

/* Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: var(--header-scrolled);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-btn:hover {
  background: var(--glass-hover);
  border-color: var(--border-strong);
}

.theme-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.25s ease;
}

.theme-btn:hover svg {
  transform: rotate(15deg);
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.account-btn:hover {
  background: var(--glass-4);
  border-color: var(--border-strong);
}

.account-ico,
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  color: var(--primary-text);
  overflow: hidden;
  flex-shrink: 0;
}

.account-ico svg {
  width: 17px;
  height: 17px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.is-initials {
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.avatar-lg {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s;
}

.cart-btn:hover {
  background: var(--glass-hover);
  border-color: var(--border-strong);
}

.cart-btn svg {
  width: 21px;
  height: 21px;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #101407;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 76px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 56px;
  min-height: 500px;
}

.hero-copy h1 {
  margin: 20px 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 15ch;
}

.hero-lead {
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  gap: 34px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-proof strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-proof span {
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-art {
  position: relative;
  height: 470px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-a {
  width: 330px;
  height: 330px;
  top: 70px;
  left: 90px;
  background: rgba(139, 92, 246, 0.32);
}

.orb-b {
  width: 260px;
  height: 260px;
  bottom: 30px;
  right: 20px;
  background: rgba(217, 70, 239, 0.22);
}

.float-card {
  position: absolute;
  width: 238px;
  padding: 10px;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.float-card img {
  width: 100%;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  border-radius: 13px;
}

.float-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 5px 4px;
  font-size: 11px;
  color: var(--muted);
}

.float-meta strong {
  color: var(--text);
  font-size: 11.5px;
}

.float-a {
  top: 34px;
  left: 8px;
  transform: rotate(-5deg);
  animation: floaty 7.5s ease-in-out infinite;
}

.float-b {
  bottom: 44px;
  right: 0;
  transform: rotate(4deg);
  animation: floaty 7.5s ease-in-out 0.9s infinite;
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 15px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.float-chip strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
}

.float-chip span:not(.chip-check):not(.yape-mark) {
  display: block;
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.4;
}

.chip-paid {
  top: 0;
  right: 6px;
  animation: floaty 8s ease-in-out 0.4s infinite;
}

.chip-yape {
  bottom: 0;
  left: 0;
  animation: floaty 8s ease-in-out 1.2s infinite;
}

.chip-check {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(163, 230, 53, 0.3);
}

.chip-check svg {
  width: 17px;
  height: 17px;
}

.yape-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  flex-shrink: 0;
}

.yape-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
}

/* Trust strip ----------------------------------------------------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass-1));
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary-text);
  flex-shrink: 0;
}

.trust-ico svg {
  width: 20px;
  height: 20px;
}

.trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.trust-item span:not(.trust-ico) {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
}

/* Secciones ------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head.center .section-copy {
  max-width: 720px;
}

.section-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.section-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.section-head.center .section-copy p {
  margin-inline: auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(330px, 100%);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--muted-2);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.search:focus-within {
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}

.search input::placeholder {
  color: var(--muted-2);
}

/* Chips de categorías --------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(192, 38, 211, 0.85));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3);
}

/* Grid de productos ----------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass-3), var(--glass-1));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.product-cover {
  position: relative;
  aspect-ratio: 800 / 520;
  overflow: hidden;
  background: var(--surface-2);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-cover img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 6, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-badge.is-accent {
  background: var(--accent);
  border-color: transparent;
  color: #101407;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.product-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product-name {
  margin-top: 7px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-link {
  padding: 0;
  text-align: left;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  transition: color 0.2s;
}

.product-link:hover {
  color: var(--primary-text-soft);
}

.product-tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.product-foot .price strong,
.product-foot .price s {
  white-space: nowrap;
}

.product-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.price strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price s {
  color: var(--muted-2);
  font-size: 12px;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.add-btn svg {
  width: 14px;
  height: 14px;
}

.add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11px;
}

.product-rating .stars {
  color: var(--warning);
  letter-spacing: 0.08em;
  font-size: 10px;
}

/* Skeletons ------------------------------------------------------- */

.skeleton-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--glass-2);
}

.skeleton {
  background: linear-gradient(90deg, var(--glass-3) 25%, var(--glass-hover) 37%, var(--glass-3) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-cover {
  aspect-ratio: 800 / 520;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin: 14px 18px;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  background: var(--glass-1);
}

.empty-ico {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 26px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 19px;
}

.empty-state p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Pasos ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass-3), var(--glass-1));
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% 30%;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.step-number {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background:
    radial-gradient(420px 160px at 10% 20%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--glass-3), var(--glass-1));
}

.info-band-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.info-band-copy h3 {
  font-size: 16.5px;
  margin-bottom: 5px;
}

.info-band-copy p {
  color: var(--muted);
  font-size: 12.5px;
  max-width: 62ch;
}

.info-pill {
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(101, 163, 13, 0.34);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 700;
}

/* FAQ ------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.faq-copy {
  position: sticky;
  top: 110px;
}

.faq-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.faq-copy p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary-soft);
  color: var(--primary-text-soft);
}

.accordion details p {
  padding: 0 40px 22px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.accordion details p strong {
  color: var(--text);
}

/* CTA final ------------------------------------------------------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 48px;
  border-radius: 30px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background:
    radial-gradient(600px 240px at 80% 120%, rgba(217, 70, 239, 0.22), transparent 70%),
    radial-gradient(500px 220px at 5% -20%, rgba(139, 92, 246, 0.28), transparent 70%),
    linear-gradient(180deg, var(--glass-3), var(--glass-1));
  overflow: hidden;
}

.cta-band h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.cta-band p {
  color: var(--muted);
  font-size: 14px;
}

/* Footer ---------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a,
.footer-note {
  width: fit-content;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 11.5px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Scrim y drawer -------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--scrim-bg);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.scrim.is-visible {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(434px, 100%);
  height: 100dvh;
  background: var(--drawer-bg);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  margin-top: 6px;
  font-size: 24px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 20px;
}

.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--glass-2);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.total-row span {
  color: var(--muted);
  font-size: 13px;
}

.total-row strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.drawer-hint {
  margin-bottom: 16px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.drawer-foot .btn + .btn {
  margin-top: 9px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 300px;
  text-align: center;
}

.cart-empty .empty-ico {
  margin-bottom: 0;
}

.cart-empty h3 {
  font-size: 18px;
}

.cart-empty p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 12.5px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item-meta {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.cart-item-price {
  font-size: 12.5px;
  font-weight: 700;
}

.cart-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted-2);
  transition: color 0.2s, background-color 0.2s;
}

.cart-remove:hover {
  color: var(--danger-text);
  background: rgba(251, 113, 133, 0.12);
}

.cart-remove svg {
  width: 15px;
  height: 15px;
}

/* Modales --------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--modal-backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--modal-bg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-panel {
  transform: none;
}

.modal-md { max-width: 520px; }
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 980px; padding: 0; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--close-bg);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--glass-4);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-head {
  margin-bottom: 22px;
  padding-right: 30px;
}

.modal-head h2 {
  margin-top: 8px;
  font-size: 25px;
}

.modal-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--muted-2);
}

.input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.72);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--glass-3);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.input[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.7);
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: rgba(251, 113, 133, 0.1);
  color: var(--danger-text);
  font-size: 12px;
  line-height: 1.5;
}

.form-error[hidden] {
  display: none;
}

.form-note {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.form-note a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-hint {
  color: var(--muted-2);
  font-size: 10.5px;
}

/* Auth ------------------------------------------------------------ */

.auth-header {
  margin-bottom: 20px;
  padding-right: 26px;
}

.auth-header h2 {
  margin-top: 8px;
  font-size: 26px;
}

.auth-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--segmented-bg);
}

.segmented button {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  transition: color 0.2s, background-color 0.2s;
}

.segmented button.is-active {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.google-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid #e4e0f0;
  background: #fff;
  color: #1f1b2e;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.google-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

.google-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.google-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--glass-2);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.otp-head {
  margin-bottom: 18px;
}

.otp-head .mail-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 6px 0 4px;
}

.otp-inputs input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-inputs input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.otp-inputs input.is-filled {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.dev-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(101, 163, 13, 0.4);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  line-height: 1.5;
}

.dev-hint strong {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.link-btn {
  padding: 0;
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--text);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Modal de producto ----------------------------------------------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.product-detail-media {
  position: relative;
  align-self: start;
  min-width: 0;
  height: clamp(260px, 38vw, 420px);
  background: var(--surface-2);
}

.product-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  object-fit: contain;
  object-position: center;
}

.product-detail-media .product-badge {
  top: 18px;
  left: 18px;
}

.product-detail-body {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 36px 34px 32px;
}

.product-detail-body .product-cat {
  color: var(--muted);
}

.product-detail-body h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  padding-right: 12px;
}

.product-detail-tagline {
  white-space: pre-line;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 6px;
}

.product-detail-price strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.product-detail-price s {
  color: var(--muted-2);
  font-size: 14px;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.meta-pill svg {
  width: 13px;
  height: 13px;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
}

.includes-title {
  margin: 24px 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.includes-list {
  display: grid;
  gap: 8px;
}

.includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.includes-list svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.detail-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary-text);
}

/* Checkout -------------------------------------------------------- */

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkout-step .num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 10px;
}

.checkout-step .num svg {
  width: 12px;
  height: 12px;
}

.checkout-step.is-active {
  color: var(--text);
}

.checkout-step.is-active .num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.checkout-step.is-done .num {
  background: var(--accent-soft);
  border-color: rgba(163, 230, 53, 0.4);
  color: var(--accent);
}

.checkout-sep {
  width: 22px;
  height: 1px;
  background: var(--border);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.qr-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  text-align: center;
}

.qr-frame {
  display: inline-flex;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.qr-frame img {
  width: 232px;
  height: 232px;
  object-fit: contain;
  border-radius: 8px;
}

.qr-amount {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.qr-amount span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.qr-owner {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.qr-owner strong {
  color: var(--text);
}

.qr-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.qr-dev-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.checkout-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-summary {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  overflow: hidden;
}

.checkout-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-items {
  padding: 4px 16px;
}

.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-3);
  font-size: 12px;
}

.checkout-item:last-child {
  border-bottom: 0;
}

.checkout-item span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item strong {
  flex-shrink: 0;
  font-size: 12px;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.06);
}

.checkout-total span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-total strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.pay-instructions {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass-2);
}

.pay-instructions h3 {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.pay-instructions ol {
  display: grid;
  gap: 10px;
  counter-reset: pay;
}

.pay-instructions li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  counter-increment: pay;
}

.pay-instructions li::before {
  content: counter(pay);
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text-soft);
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--warning-text);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-box {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
}

.code-box h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.code-box p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.code-box .input {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.code-help {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.success-wrap {
  text-align: center;
  padding: 10px 6px 4px;
}

.success-ico {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(163, 230, 53, 0.35);
  color: var(--accent);
  box-shadow: 0 0 50px rgba(163, 230, 53, 0.18);
  margin-bottom: 16px;
}

.success-ico svg {
  width: 32px;
  height: 32px;
}

.success-wrap h2 {
  font-size: 28px;
}

.success-wrap > p {
  max-width: 52ch;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.success-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--muted);
  font-size: 11px;
}

.success-order strong {
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.download-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 20px;
  text-align: left;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass-2);
}

.download-item strong {
  display: block;
  font-size: 12.5px;
}

.download-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.download-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.download-actions .btn {
  padding: 8px 12px;
  font-size: 11px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.success-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--glass-2);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

/* Cuenta ---------------------------------------------------------- */

.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.account-head h2 {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.account-head p {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.profile-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  margin-bottom: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-field span {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-field strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.profile-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-form .field {
  flex: 1;
}

.profile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.orders-head h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass-2);
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.order-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-paid {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid rgba(101, 163, 13, 0.32);
}

.status-pending {
  background: rgba(251, 191, 36, 0.14);
  color: var(--warning-text);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-verifying {
  background: rgba(96, 165, 250, 0.14);
  color: var(--info-text);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-expired {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.order-card-names {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-3);
}

.order-card-foot .price {
  font-size: 12px;
}

.order-card-foot .price strong {
  font-size: 14px;
}

.order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.order-links .btn {
  padding: 7px 11px;
  font-size: 10.5px;
}

.account-empty {
  padding: 26px 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* Toasts ---------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-glass-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-leaving {
  animation: toast-out 0.25s ease forwards;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--muted);
}

.toast-success .toast-dot { background: var(--accent); box-shadow: 0 0 10px rgba(163, 230, 53, 0.6); }
.toast-error .toast-dot { background: var(--danger); box-shadow: 0 0 10px rgba(251, 113, 133, 0.5); }
.toast-info .toast-dot { background: #a78bfa; }

.toast strong {
  font-weight: 700;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

/* Noscript -------------------------------------------------------- */

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: #211a08;
  color: var(--warning-text);
  font-size: 13px;
  text-align: center;
}

/* Reveal ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  .hero-grid {
    gap: 24px;
  }

  .float-card {
    width: 208px;
  }

  .hero-art {
    height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 2 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .footer-col:last-child h3 {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .hero-copy h1 {
    max-width: 20ch;
  }

  .hero-art {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-copy {
    position: static;
  }

  .info-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    height: clamp(220px, 55vw, 340px);
  }

  .product-detail-media img {
    padding: 20px;
  }

  .product-detail-body {
    padding: 28px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .account-label {
    display: none;
  }

  .account-btn {
    padding: 6px;
    border: 0;
    background: transparent;
  }

  .account-btn .account-ico,
  .account-btn .avatar {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--glass-3);
    color: var(--muted);
  }

  .account-btn .avatar.is-initials {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #fff;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-proof {
    gap: 22px;
    margin-top: 32px;
  }

  .hero-proof strong {
    font-size: 17px;
  }

  .trust-strip {
    margin-top: 38px;
  }

  .trust-item {
    padding: 13px;
    gap: 9px;
  }

  .trust-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .trust-item strong {
    font-size: 11px;
  }

  .trust-item span:not(.trust-ico) {
    font-size: 10px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 24px;
  }

  .search {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .modal {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-panel {
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
    padding: 26px 20px;
  }

  .modal-xl {
    padding: 0;
  }

  .product-detail-body {
    padding: 24px 20px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .drawer {
    width: 100%;
    border-left: 0;
  }

  .qr-frame img {
    width: 210px;
    height: 210px;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .btn {
    flex: 1;
  }

  .toast-stack {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-proof {
    justify-content: space-between;
    gap: 12px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-inputs input {
    height: 52px;
    font-size: 19px;
  }

  .checkout-step span:not(.num) {
    display: none;
  }

  .checkout-sep {
    width: 12px;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-detail-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* La selección de destacados determina cuántas tarjetas se muestran. */
.hero-art:has(.hero-featured-grid) { height: auto; min-height: 340px; padding: 64px 0; align-self: center; }
.hero-art[hidden] { display: none; }
.hero-grid:has(> .hero-art[hidden]) { grid-template-columns: 1fr; }
.hero-featured-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hero-art[data-count="1"] .hero-featured-grid { grid-template-columns: minmax(0, 340px); justify-content: center; }
.hero-featured-card { width: 100%; min-width: 0; padding: 10px; text-align: left; font: inherit; color: var(--text); background: var(--surface-glass); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); cursor: pointer; }
.hero-featured-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.hero-featured-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border-radius: 12px; }
.hero-featured-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 4px 4px; font-size: 12px; }
.hero-featured-meta > span { overflow-wrap: anywhere; }
.hero-featured-meta strong { white-space: nowrap; }
@media (max-width: 600px) { .hero-featured-grid { gap: 12px; } .hero-art:has(.hero-featured-grid) { min-height: 0; padding: 54px 0; } }
@media (max-width: 360px) { .hero-featured-grid { grid-template-columns: 1fr; } }

.hero-art:has(.hero-featured-grid):not([hidden]) { display: block; }

/* Dos destacados recuperan la composición escalonada de la portada. */
@media (min-width: 961px) {
  .hero-art[data-count="2"] {
    height: 470px;
    min-height: 470px;
    padding: 0;
  }

  .hero-art[data-count="2"] .hero-featured-grid {
    display: block;
    height: 100%;
  }

  .hero-art[data-count="2"] .hero-featured-card {
    position: absolute;
    width: min(238px, 46%);
    box-shadow: var(--shadow-lg);
  }

  .hero-art[data-count="2"] .hero-featured-card:first-child {
    top: 34px;
    left: 8px;
    transform: rotate(-5deg);
  }

  .hero-art[data-count="2"] .hero-featured-card:last-child {
    right: 8px;
    bottom: 44px;
    transform: rotate(4deg);
  }

  .hero-art[data-count="2"] .hero-featured-card img {
    aspect-ratio: 800 / 520;
  }
}

.tutorial-player { flex: 1 0 100%; width: 100%; min-width: 0; margin-top: 12px; }
.tutorial-player summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 10px 0; }
.tutorial-screen { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; background: #000; margin-top: 8px; }
.tutorial-screen iframe, .tutorial-screen video { display: block; border: 0; width: 100%; height: 100%; }
.download-actions, .order-links { flex-wrap: wrap; }
