:root {
  --ink: #07040d;
  --panel: #150c22;
  --panel-2: #1b1029;
  --line: #2c1c40;
  --text: #f3f1ea;
  --muted: #a191bd;
  --accent: #c14efc;
  --accent-2: #9b6ef3;
  --accent-soft: rgba(193, 78, 252, 0.14);
  --green: #6fcf97;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(193, 78, 252, 0.2), 0 10px 26px rgba(120, 30, 200, 0.2);
  --font-display: "Fraunces", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(600px 500px at 15% 8%, rgba(193, 78, 252, 0.22), transparent 60%),
    radial-gradient(560px 460px at 88% 78%, rgba(155, 110, 243, 0.18), transparent 60%);
  background-repeat: no-repeat;
  background-size: 140% 140%;
  background-attachment: fixed;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 14% 20%, 86% 80%; }
}

.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

::selection { background: var(--accent); color: var(--ink); }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(193, 78, 252, 0.45); }
  50% { box-shadow: 0 0 20px rgba(193, 78, 252, 0.85); }
}

.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.shine:hover::after { left: 130%; }

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 4, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}

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

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(193, 78, 252, 0.35));
}

.trust-inline {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.trust-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; color: var(--muted); letter-spacing: 0.01em; }
.trust-icon {
  font-size: 12px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
}

.search-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

#searchInput {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#searchInput::placeholder { color: var(--muted); }
#searchInput:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(155, 110, 243, 0.18);
}

.cart-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-btn:hover { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(155, 110, 243, 0.14); }

.cart-icon { font-size: 15px; }

.cart-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent);
  color: var(--ink);
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  box-shadow: 0 0 12px rgba(193, 78, 252, 0.55);
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #08130c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 25;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 9px rgba(37, 211, 102, 0); }
}

.whatsapp-fab:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
  animation-play-state: paused;
}

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

.hero { margin-bottom: 34px; }

.hero-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-emoji {
  -webkit-text-fill-color: initial;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.hero-card {
  display: flex;
  gap: 14px;
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 15px;
  cursor: pointer;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.hero-card img {
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 7px;
}

.hero-info-title { font-size: 14.5px; font-weight: 500; margin-bottom: 5px; line-height: 1.3; }
.hero-info-price { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }

/* ---------- Paginación ---------- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-btn:hover:not(:disabled) { border-color: var(--accent-2); color: var(--text); }
.page-btn.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(193, 78, 252, 0.4);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- Multi-variante (grupo de juego) ---------- */

.card-variants {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.variant-group { margin: 16px 0; }
.variant-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }

.variant-pill {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
}

.variant-pill:hover:not(:disabled):not(.active) { border-color: var(--muted); }

.variant-pill.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(193, 78, 252, 0.4);
}

.variant-pill:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Quick nav ---------- */

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px clamp(16px, 4vw, 48px) 0;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--accent-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 0 rgba(155, 110, 243, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.quick-nav a:hover, .quick-nav a:active {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(155, 110, 243, 0.35);
}

.quick-nav-icon { font-size: 13px; }

/* ---------- Sort select ---------- */

.sort-select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.sort-select:focus { outline: none; border-color: var(--accent-2); }

/* ---------- Section heading (shared) ---------- */

.section-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px;
}

/* ---------- Cómo funciona ---------- */

.how-it-works {
  margin: 70px 0 60px;
  scroll-margin-top: 90px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.how-card {
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.how-icon {
  font-size: 26px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 14px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 600;
}

.how-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.how-card p:last-child { margin-bottom: 0; }
.how-card strong { color: var(--text); }

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

.faq {
  margin: 0 0 60px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 90px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--panel);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-size: 14.5px;
  text-align: left;
  font-weight: 500;
}

.faq-question:hover { color: var(--accent-2); }

.faq-caret {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-caret { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 18px clamp(16px, 4vw, 48px) 22px;
}

.filter-group {
  display: flex;
  gap: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.pill {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
}

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

.pill.active {
  color: var(--ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(193, 78, 252, 0.35);
}

/* ---------- Grid ---------- */

main { padding: 32px clamp(16px, 4vw, 48px) 70px; max-width: 1440px; margin: 0 auto; }

.catalog-status {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover .card-cover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.badge-sale {
  position: absolute;
  top: 9px;
  right: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 10px rgba(193, 78, 252, 0.5);
}

.badge-stock {
  position: absolute;
  bottom: 9px;
  left: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 4, 13, 0.82);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.06);
}

.badge-stock.instant { color: var(--green); }
.badge-stock.wait { color: var(--muted); }

.card-title {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-price .amount {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-price .usdt {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.card-installments {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: -5px;
}

.card-add {
  margin-top: 3px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.card-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.cover-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  text-align: center;
  padding: 12px;
}

.cover-fallback-icon { font-size: 30px; opacity: 0.85; }
.cover-fallback-text {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cover .cover-fallback {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hero-card .cover-fallback {
  width: 66px;
  height: 88px;
  border-radius: 9px;
  flex-shrink: 0;
}

.hero-card .cover-fallback.compact .cover-fallback-icon { font-size: 22px; }

.modal-grid .cover-fallback {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

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

.skeleton-card { cursor: default; pointer-events: none; }

.skeleton-cover,
.skeleton-line {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-cover {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.skeleton-line {
  height: 13px;
  border-radius: 6px;
  margin-top: 4px;
}

.empty-state {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 50px 0;
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px clamp(16px, 4vw, 48px) 46px;
  color: var(--muted);
  font-size: 13px;
  max-width: 720px;
  line-height: 1.6;
}

/* ---------- Cart ---------- */

.cart-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.cart-overlay.open, .modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0;
  font-weight: 600;
}

.cart-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}
.cart-close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
}

.cart-line {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 50px;
  height: 67px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.cart-line-info { flex: 1; min-width: 0; }

.cart-line-title {
  font-size: 13.5px;
  line-height: 1.3;
}

.cart-line-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.qty-btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--accent-2); }

.cart-line-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}
.cart-remove:hover { color: var(--text); }

.cart-coupon {
  display: flex;
  gap: 8px;
  padding: 0 20px 10px;
}

.cart-coupon input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13.5px;
}

.cart-coupon input:focus { outline: none; border-color: var(--accent-2); }

.cart-coupon button {
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.cart-coupon button:hover:not(:disabled) { background: var(--accent-soft); }
.cart-coupon button:disabled { opacity: 0.5; }

.coupon-feedback {
  font-size: 12px;
  padding: 0 20px 10px;
  margin: 0;
  min-height: 14px;
}

.coupon-feedback.success { color: var(--green); }
.coupon-feedback.error { color: #ff8a8a; }

.cart-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

.cart-footer {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--ink);
  border: none;
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(193, 78, 252, 0.42);
}

.checkout-btn:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(193, 78, 252, 0.6); transform: translateY(-1px); }

.checkout-btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.cart-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(580px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  z-index: 41;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(193, 78, 252, 0.12);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
}

.modal-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 23px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: var(--accent-2); }

.modal-price {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.modal-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.license-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.modal-reassurance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(193, 78, 252, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 12.5px;
  color: var(--text);
}

.modal-payment-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 158, 227, 0.14);
  color: #35c1ff;
  border: 1px solid rgba(0, 158, 227, 0.4);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 6px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.modal-actions .checkout-btn { flex: 1.3; }

.secondary-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.secondary-btn:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent-2); }
.secondary-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 900px) {
  .trust-inline { display: none; }
}

@media (max-width: 640px) {
  .search-wrap { order: 3; max-width: none; width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid img { max-width: 170px; margin: 0 auto; }
  .modal-actions { flex-direction: column; }

  main { padding: 24px 16px 50px; }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .card-title { font-size: 13.5px; }
  .card-price { font-size: 15px; }

  .how-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 20px; }

  /* Objetivos táctiles un poco más grandes en celular */
  .pill { padding: 10px 16px; }
  .card-add, .secondary-btn { padding: 11px 12px; }

  .cart-drawer, .modal { padding-bottom: env(safe-area-inset-bottom); }
  .cart-footer { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  .whatsapp-fab {
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 10px 13px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .brand-logo { height: 38px; }
}

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