/* ═══════════════════════════════════════════════════════════
   DESCUENTE — Estilos globales v2 (Premium Light)
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #eef2ff;
  --primary-glow:  rgba(99,102,241,.15);
  --secondary:     #8b5cf6;
  --accent:        #06b6d4;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --error:         #ef4444;

  --bg:            #fafaff;
  --bg-hero:       linear-gradient(180deg, #f0f0ff 0%, #fafaff 60%, #fff 100%);
  --surface:       #ffffff;
  --border:        #e5e7eb;
  --border-light:  #f0f0f5;
  --text:          #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-xs:     0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(99,102,241,.12);
  --shadow-xl:     0 20px 60px rgba(0,0,0,.1);
  --shadow-glow:   0 0 0 4px var(--primary-glow);

  --transition:    .2s ease;
  --transition-md: .3s ease;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── UTILIDADES ─────────────────────────────────────────── */
.muted { color: var(--text-muted); }
[hidden] { display: none !important; }

/* ── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(99,102,241,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-glow); }

.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 16px; padding: 14px 28px; font-weight: 700; }
.btn-block { width: 100%; justify-content: center; }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  font-family: var(--font);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.link-btn:hover { color: var(--primary-dark); }

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo:hover { opacity: .85; }

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Keep .logo-d for loading view */
.logo-d {
  display: inline-flex;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-right: 4px;
}

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-user { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.nav-email { color: var(--text-muted); font-size: 13px; }

.badge-sub {
  display: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary-light), #e8e0ff);
  color: var(--primary);
}
.badge-sub.active {
  display: inline;
  letter-spacing: .3px;
}

/* ── CONTADOR BÚSQUEDAS (NAVBAR) ─────────────────────────── */
.nav-search-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  cursor: default;
}
.counter-info {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.counter-info svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.counter-text {
  font-weight: 500;
  letter-spacing: -.02em;
}
.counter-text strong {
  font-weight: 800;
  color: var(--text);
}
.counter-bar {
  width: 48px;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.counter-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .5s ease, background .3s ease;
}

/* Estados del contador según urgencia */
.counter-safe    { background: #22c55e; }
.counter-medium  { background: #eab308; }
.counter-warning { background: #f97316; animation: counterPulse 2s ease-in-out infinite; }
.counter-critical {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  animation: counterPulse 1s ease-in-out infinite;
}
.counter-unlimited {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Pulso para urgencia */
@keyframes counterPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .5; }
}

/* Cuando está en warning/critical, cambiar borde del contenedor */
.nav-search-counter:has(.counter-warning),
.nav-search-counter:has(.counter-critical) {
  border-color: #f97316;
  background: #fff7ed;
}
.nav-search-counter:has(.counter-critical) {
  border-color: #ef4444;
  background: #fef2f2;
  animation: counterShake 3s ease-in-out infinite;
}

@keyframes counterShake {
  0%, 85%, 100% { transform: translateX(0); }
  88%           { transform: translateX(-2px); }
  91%           { transform: translateX(2px); }
  94%           { transform: translateX(-1px); }
}

/* Botón "Ampliar" — aparece cuando se acerca al límite */
.counter-upgrade {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: all var(--transition);
  animation: fadeIn .3s ease;
}
.counter-upgrade:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}

/* ── ACCOUNT DROPDOWN ────────────────────────────────────── */
.account-dropdown-wrapper {
  position: relative;
}
.account-btn {
  display: flex !important;
  align-items: center;
  gap: 5px;
  font-weight: 600 !important;
}
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(0,0,0,.1);
  z-index: 200;
  overflow: hidden;
  animation: accountSlide .2s ease;
}
@keyframes accountSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-light);
}
.account-panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.account-panel-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.account-panel-close:hover { color: var(--text); }

.account-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.account-section:last-of-type { border-bottom: none; }
.account-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.account-label {
  font-size: 13px;
  color: var(--text-muted);
}
.account-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.btn-cancel-sub {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: rgba(239,68,68,.08);
  color: var(--error);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-cancel-sub:hover {
  background: rgba(239,68,68,.15);
  border-color: var(--error);
}

.btn-whatsapp-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: rgba(37,211,102,.08);
  color: #25d366;
  border: 1px solid rgba(37,211,102,.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-whatsapp-support:hover {
  background: rgba(37,211,102,.15);
  border-color: #25d366;
}

.account-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 12px;
}
.pref-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.pref-tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  opacity: .6;
  padding: 0;
  line-height: 1;
}
.pref-tag-remove:hover { opacity: 1; }

.tag-input-wrapper {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.tag-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.tag-input:focus { border-color: var(--primary); }
.tag-input::placeholder { color: var(--text-muted); }
.tag-add-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 34px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.tag-add-btn:hover { background: var(--primary-dark); }

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-suggestion {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.tag-suggestion:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Guardados link */
.btn-saved-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--primary-light);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-saved-link:hover {
  background: rgba(99,102,241,.15);
  border-color: var(--primary);
}
.saved-count-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* Bookmark en cards */
.disc-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all .2s;
  z-index: 2;
}
.disc-bookmark:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.disc-bookmark.saved {
  color: var(--primary);
}
.disc-bookmark.saved svg {
  fill: var(--primary);
}
@keyframes bookmark-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.disc-bookmark.saved {
  animation: bookmark-pop .3s ease;
}

.btn-logout {
  width: calc(100% - 40px);
  margin: 8px 20px 16px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-logout:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ── HERO ────────────────────────────────────────────────── */
#view-landing { min-height: 100vh; }

.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
  position: relative;
}

/* Subtle background glow */
.hero-bg-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.08) 0%, rgba(139,92,246,.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-bg-glow) { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  letter-spacing: -.01em;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  letter-spacing: -.01em;
}

/* Barra de búsqueda */
.search-wrapper { margin-bottom: 20px; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 18px;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  min-width: 0;
}
.search-input::placeholder { color: #94a3b8; }

.btn-search {
  flex-shrink: 0;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
}

.hint-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.hint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.hint-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  min-width: fit-content;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 99px;
}
.hint-label[data-cat="viajes"]    { background: #eff6ff; color: #3b82f6; }
.hint-label[data-cat="tiendas"]   { background: #faf5ff; color: #a855f7; }
.hint-label[data-cat="infantil"]  { background: #fdf2f8; color: #ec4899; }
.hint-label[data-cat="deporte"]   { background: #ecfdf5; color: #10b981; }
.hint-label[data-cat="tech"]      { background: #f0f9ff; color: #0ea5e9; }
.hint-label[data-cat="mascotas"]  { background: #fef3c7; color: #d97706; }
.hint-label[data-cat="comida"]    { background: #fff7ed; color: #ea580c; }
.hint-label[data-cat="belleza"]   { background: #fce7f3; color: #db2777; }
.hint-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.hint-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Store logos */
.store-logos {
  padding: 24px 0 0;
  border-top: 1px solid var(--border-light);
}
.store-logos-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.store-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.store-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: .45;
  letter-spacing: -.02em;
  transition: opacity var(--transition);
}
.store-logo-text:hover { opacity: .7; }

/* ── STATS / SOCIAL PROOF ─────────────────────────────── */
.stats-section {
  margin-top: 32px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, rgba(139,92,246,.06) 50%, rgba(6,182,212,.04) 100%);
  border: 1px solid rgba(99,102,241,.1);
  border-radius: var(--radius-lg);
}
.stats-headline {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat-card:nth-child(1) .stat-number { color: var(--success); }
.stat-card:nth-child(2) .stat-number { color: var(--primary); }
.stat-card:nth-child(3) .stat-number { color: var(--secondary); }
.stat-card:nth-child(4) .stat-number { color: var(--accent); }
.stat-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.3;
}
.stats-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 500;
  animation: statsPulse 3s ease-in-out infinite;
}
@keyframes statsPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 10px; }
  .stats-section { padding: 20px 16px; }
}

/* ── SECCIONES LANDING ──────────────────────────────────── */
.section-how,
.section-types,
.section-pricing {
  max-width: 940px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
  letter-spacing: -.01em;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-card:hover::before { opacity: 1; }

.step-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-num-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Types */
.types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  transition: all var(--transition);
  cursor: default;
}
.type-pill:hover { transform: translateY(-2px); }

.type-coupon      { background:#fef3c7; color:#92400e; border-color:#fde68a; }
.type-bank        { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }
.type-installments{ background:#d1fae5; color:#065f46; border-color:#a7f3d0; }
.type-cashback    { background:#f3e8ff; color:#6b21a8; border-color:#e9d5ff; }
.type-shipping    { background:#e0f2fe; color:#075985; border-color:#bae6fd; }
.type-offer       { background:#ffe4e6; color:#9f1239; border-color:#fecdd3; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.pricing-grid--3 {
  max-width: 960px;
  grid-template-columns: repeat(3, 1fr);
}
.pricing-grid--2 {
  max-width: 680px;
  grid-template-columns: repeat(2, 1fr);
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card--pro {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-card--annual {
  border-color: var(--success);
  box-shadow: var(--shadow-lg);
}
.pricing-badge--green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.pricing-badge--purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.pricing-plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 99px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.pricing-amount {
  font-size: 52px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-dollar { font-size: 28px; vertical-align: top; margin-top: 8px; display: inline-block; color: var(--primary); }
.pricing-period { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-note { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.pricing-guarantee { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 14px; }

/* ── CUPÓN DORADO ────────────────────────────────────────── */
.section-golden {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.golden-banner {
  position: relative;
  background: linear-gradient(135deg, #fef3c7, #fde68a, #fbbf24);
  background-size: 300% 300%;
  animation: goldenBg 4s ease infinite;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(245,158,11,.2);
}
@keyframes goldenBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.golden-banner-sparkle {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  animation: goldenShineBanner 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes goldenShineBanner {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}
.golden-banner-content {
  position: relative;
  z-index: 1;
}
.golden-banner-title {
  font-size: 28px;
  font-weight: 900;
  color: #78350f;
  margin: 12px 0 8px;
}
.golden-banner-sub {
  font-size: 16px;
  color: #92400e;
  margin-bottom: 28px;
  font-weight: 500;
}
.golden-prizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 24px;
}
.golden-prize-item {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.golden-prize-diamond {
  border-color: #60a5fa;
  background: rgba(255,255,255,.7);
}
.golden-prize-icon { font-size: 36px; }
.golden-prize-name {
  font-size: 14px;
  font-weight: 800;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.golden-prize-diamond .golden-prize-name { color: #1e40af; }
.golden-prize-amount {
  font-size: 18px;
  font-weight: 900;
  color: #451a03;
}
.golden-prize-diamond .golden-prize-amount { color: #1e3a8a; }
.golden-prize-plan {
  font-size: 11px;
  color: #92400e;
  font-weight: 600;
  background: rgba(255,255,255,.5);
  padding: 2px 10px;
  border-radius: 10px;
}
.golden-prize-diamond .golden-prize-plan { color: #1e40af; }
.golden-banner-note {
  font-size: 13px;
  color: #92400e;
  opacity: .8;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}
.golden-video-wrapper {
  margin: 24px auto 16px;
  max-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  border: 3px solid rgba(255,255,255,.6);
}
.golden-video {
  width: 100%;
  display: block;
  border-radius: 17px;
}
.golden-terms-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #92400e;
  text-decoration: underline;
  opacity: .7;
  transition: opacity .2s;
}
.golden-terms-link:hover { opacity: 1; }
@media (max-width: 500px) {
  .golden-prizes { grid-template-columns: 1fr; }
  .golden-banner { padding: 32px 20px; }
  .golden-banner-title { font-size: 22px; }
  .golden-prize-amount { font-size: 16px; }
}

/* ── FAQ ──────────────────────────────────────────────────── */
.section-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] {
  box-shadow: 0 2px 12px rgba(91, 91, 214, .08);
  border-color: var(--primary-light);
}
.faq-q {
  font-weight: 600;
  font-size: 15px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] .faq-q::after {
  content: '−';
}
.faq-a {
  padding: 0 24px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── SEO STORES GRID ─────────────────────────────────────── */
.section-seo-stores {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.seo-stores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.seo-store-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  transition: all var(--transition);
}
.seo-store-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 91, 214, .2);
}

/* ── FOOTER (nuevo) ──────────────────────────────────────── */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-main {}
.footer-logo {
  height: 36px;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1000px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-main { grid-column: 1 / -1; }
}

/* ── SEO PAGES ────────────────────────────────────────────── */
.seo-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 48px;
  text-align: center;
}
.seo-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.seo-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.seo-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
}
.seo-hero-cta .btn { font-size: 16px; padding: 14px 32px; gap: 8px; display: inline-flex; align-items: center; }

.seo-content {
  padding: 32px 24px 64px;
}
.seo-content-inner {
  max-width: 800px;
  margin: 0 auto;
}
.seo-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--text-primary);
}
.seo-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.seo-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.seo-tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}
.seo-tip-num {
  position: absolute;
  top: -8px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-tip-card p {
  font-size: 14px;
  margin: 0;
}

.seo-types-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seo-cta-box {
  background: linear-gradient(135deg, #eff0ff 0%, #f0f7ff 100%);
  border: 1.5px solid var(--primary-light);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.seo-cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.seo-cta-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.seo-other-stores {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}

/* SEO Store cards (index page) */
.seo-all-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.seo-store-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition);
}
.seo-store-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(91, 91, 214, .12);
  transform: translateY(-2px);
}
.seo-store-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.seo-store-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.seo-store-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Legal pages */
.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal-page h2 {
  font-size: 18px;
  margin: 32px 0 10px;
}
.legal-page p {
  margin-bottom: 12px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .seo-hero-title { font-size: 28px; }
  .seo-tips-grid { grid-template-columns: 1fr; }
  .seo-cta-box { padding: 24px; }
}

/* ── LOADING ─────────────────────────────────────────────── */
#view-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.loading-container {
  text-align: center;
  max-width: 480px;
  padding: 40px 24px;
  width: 100%;
}
/* Video carrusel en loading */
.loading-video-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(99,102,241,.18);
}
.loading-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.loading-video.active {
  opacity: 1;
}

.loading-logo {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  animation: float 2s ease-in-out infinite;
}
.loading-logo .logo-d { margin-right: 0; width: auto; height: auto; font-size: 30px; background: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loading-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.loading-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  width: 0%;
  transition: width .6s ease;
}

.loading-step {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  min-height: 24px;
  font-weight: 500;
}

.loading-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.loading-step-done {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.loading-step-done svg { flex-shrink: 0; }

/* Logo spin during loading */
.loading-logo-spin {
  animation: float 2s ease-in-out infinite, pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.3); }
  50%      { box-shadow: 0 0 24px 8px rgba(99,102,241,.12); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(14,165,233,.3); }
  50%      { box-shadow: 0 4px 24px rgba(14,165,233,.5); }
}

/* AI processing hint */
.loading-ai-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  animation: fadeIn .5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ai-spinner {
  display: flex;
  align-items: center;
}
.spin-icon {
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Affiliate "Go to store" button */
.results-go-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.results-go-store:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.results-go-store svg { flex-shrink: 0; }

/* ── RESULTADOS ──────────────────────────────────────────── */
#view-results {
  min-height: 100vh;
  padding: 40px 0 80px;
}
.results-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.results-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.results-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.results-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Filter tabs */
.disc-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.disc-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.disc-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.disc-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.disc-category-counts {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.disc-cat-count {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.disc-cat-count strong {
  color: var(--text-primary);
}

/* Category section header inside grid */
.disc-category-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
  margin-top: 8px;
}
.disc-category-header:first-child {
  margin-top: 0;
}
.disc-category-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.disc-category-header .cat-icon {
  font-size: 20px;
}
.disc-category-header .cat-count {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 100px;
}

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

/* Discount card */
.discount-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-md);
  animation: fadeUp .4s ease both;
}
.discount-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.2);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.discount-card:nth-child(2) { animation-delay: .06s; }
.discount-card:nth-child(3) { animation-delay: .12s; }
.discount-card:nth-child(4) { animation-delay: .18s; }
.discount-card:nth-child(n+5) { animation-delay: .22s; }

.disc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.disc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.disc-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.5px;
}

.disc-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.disc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.disc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.disc-meta-item {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.disc-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 2px dashed rgba(99,102,241,.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.disc-code-text {
  flex: 1;
  font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  overflow-wrap: break-word;
  word-break: break-all;
  min-width: 0;
}
.btn-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-copy:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-copy.copied { background: var(--success); }

.disc-conditions {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  line-height: 1.5;
}

/* No discounts */
.no-discounts {
  text-align: center;
  padding: 80px 24px;
}
.no-disc-icon { font-size: 56px; margin-bottom: 16px; }
.no-discounts h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.no-discounts p  { color: var(--text-muted); margin-bottom: 20px; }

/* Refund badge */
.refund-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  padding: 14px 24px;
  margin-bottom: 24px;
  animation: refundPop .5s cubic-bezier(.34,1.56,.64,1);
}
.refund-icon { font-size: 24px; }
.refund-text {
  font-size: 15px;
  font-weight: 600;
  color: #047857;
}
@keyframes refundPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* Counter refund animation */
.counter-refund-flash {
  animation: counterFlash .8s ease;
}
@keyframes counterFlash {
  0%   { background: var(--bg); }
  30%  { background: #d1fae5; box-shadow: 0 0 12px rgba(16,185,129,.4); }
  100% { background: var(--bg); }
}

/* ── PAYWALL ─────────────────────────────────────────────── */
#view-paywall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: var(--bg);
}
.paywall-container { width: 100%; max-width: 620px; }
.paywall-top { margin-bottom: 24px; }

.paywall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.paywall-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}
.paywall-highlight { color: var(--primary); }

/* Preview borroso */
.paywall-preview-wrap {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.preview-discounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  padding: 8px 0;
}
.preview-disc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
}
.preview-disc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-disc-info { flex: 1; }
.preview-disc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.preview-disc-val {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── PASO 1: CTA Chile ─────────────────────────────────── */
.paywall-step1 {
  text-align: center;
  padding: 6px 0 0;
}
.paywall-chile-flag {
  font-size: 48px;
  margin-bottom: 8px;
  line-height: 1;
}
.paywall-step1-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.paywall-step1-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.paywall-step1-price {
  margin-bottom: 14px;
}
.paywall-step1-price .paywall-price-big {
  font-size: 38px;
}
.btn-cta-unlock {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border: none;
  padding: 16px 44px;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(239,68,68,.4);
  animation: ctaPulse 2s ease-in-out infinite;
  letter-spacing: -.02em;
}
.btn-cta-unlock:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(239,68,68,.5);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(239,68,68,.4); }
  50% { box-shadow: 0 4px 28px rgba(239,68,68,.65); }
}
.paywall-step1-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
}

/* ── PASO 2: Formulario + Pago ─────────────────────────── */
.paywall-step2 {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.paywall-step2-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.paywall-lock-icon-sm {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(91,91,214,.3);
}
.paywall-step2-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.paywall-step2-price {
  font-size: 14px;
  color: var(--text-muted);
}
.paywall-step2-price strong {
  color: var(--primary);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Botón principal pulsante */
.paywall-btn-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
  font-size: 17px;
  padding: 16px 24px;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(91,91,214,.3); }
  50% { box-shadow: 0 4px 28px rgba(91,91,214,.55); }
}
.paywall-price {
  margin-bottom: 16px;
}
.paywall-price-big {
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}
.paywall-price-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-left: 4px;
}

.paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.paywall-save {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.paywall-plan-detail {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.paywall-btn-mp {
  gap: 10px;
  margin-bottom: 10px;
}
.btn-apple-pay {
  background: #000;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  gap: 10px;
  transition: all var(--transition);
}
.btn-apple-pay:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.paywall-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .3px;
}
.paywall-payment-methods span {
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
/* ── Registro inline en paywall ── */
.paywall-inline-register {
  margin-bottom: 16px;
}
.paywall-reg-field {
  margin-bottom: 10px;
}
.paywall-reg-field .input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.paywall-reg-field .input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,91,214,.12);
  outline: none;
}
.paywall-reg-error {
  color: #ef4444;
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 18px;
}
.paywall-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.paywall-secure-note svg {
  color: #22c55e;
  flex-shrink: 0;
}
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── LÍMITE ALCANZADO ──────────────────────────────────── */
#view-limit {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: var(--bg);
}
.limit-container { width: 100%; max-width: 700px; }
.limit-top { margin-bottom: 24px; }

.limit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.limit-icon { font-size: 48px; margin-bottom: 20px; }
.limit-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.limit-highlight { color: var(--primary); font-weight: 800; }
.limit-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.limit-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.limit-plan-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition-md);
}
.limit-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.limit-plan-card--best {
  border-color: var(--success);
  box-shadow: 0 0 0 1px rgba(34,197,94,.2);
}
.limit-plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.limit-plan-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 16px;
}
.limit-plan-card .pricing-features {
  margin-bottom: 16px;
  text-align: left;
}

.limit-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.limit-payment-methods svg { flex-shrink: 0; }

/* ── MODALES ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: scaleIn .25s ease;
  box-shadow: var(--shadow-xl);
}
@keyframes scaleIn {
  from { transform: scale(.95); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

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

.modal-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.modal-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all var(--transition);
}
.modal-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.form-error {
  color: var(--error);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.form-forgot {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}
.form-forgot a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.form-forgot a:hover { text-decoration: underline; }
.form-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}
.form-back {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.form-back a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.form-back a:hover { color: var(--primary); }
.form-success {
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  padding: 12px;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
}

/* ── CELEBRACIÓN POST-PAGO ─────────────────────────────── */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: celebrationFadeIn .4s ease;
  padding: 20px;
}

@keyframes celebrationFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.celebration-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(99, 102, 241, 0.25), var(--shadow-xl);
  animation: celebrationBounce .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.celebration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #22c55e, #f59e0b, #ef4444);
  background-size: 200% 100%;
  animation: celebrationGradient 2s linear infinite;
}

@keyframes celebrationGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes celebrationBounce {
  from { opacity: 0; transform: scale(0.8) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.celebration-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  animation: celebrationPulse 1.5s ease infinite;
}

@keyframes celebrationPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.celebration-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.celebration-plan {
  font-size: 17px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
}

.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-light), #f3e8ff);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  padding: 14px 24px;
  margin-bottom: 20px;
}

.celebration-badge-icon {
  font-size: 22px;
}

.celebration-badge-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.celebration-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.celebration-btn {
  width: 100%;
  font-size: 17px;
  padding: 16px;
  border-radius: var(--radius);
  animation: celebrationBtnGlow 2s ease infinite;
}

@keyframes celebrationBtnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
  50%      { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5); }
}

.celebration-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .celebration-card { padding: 36px 24px; }
  .celebration-emoji { font-size: 48px; }
  .celebration-title { font-size: 24px; }
  .celebration-trust { flex-direction: column; gap: 4px; }
  .celebration-badge { padding: 12px 16px; }
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── DEMO AJA MOMENT ────────────────────────────────────── */
.demo-prefilled {
  color: var(--primary) !important;
  font-weight: 600;
}
.demo-btn-pulse {
  animation: demoPulse 2s ease-in-out infinite;
}
@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 28px 20px 36px; }
  .hero-bg-glow { width: 300px; height: 200px; top: -20px; }
  .hero-badge { margin-bottom: 18px; padding: 5px 14px; font-size: 12px; }
  .hero-title { font-size: 28px; letter-spacing: -1px; margin-bottom: 14px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .search-box { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 8px; }
  .search-input { width: 100%; padding: 10px 12px; }
  .search-icon { display: none; }
  .btn-search { width: 100%; justify-content: center; border-radius: 12px; }
  .trust-strip { flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
  .store-logos { padding-top: 20px; }
  .store-logos-row { gap: 4px 14px; }
  .store-logo-text { font-size: 12px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 24px 20px; }

  .pricing-grid--3, .pricing-grid--2 { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }

  .paywall-card { padding: 32px 20px; }
  .paywall-title { font-size: 22px; }

  .limit-card { padding: 32px 20px; }
  .limit-plans-grid { grid-template-columns: 1fr; }
  .limit-title { font-size: 22px; }

  .modal-card { padding: 28px 20px; }

  .discounts-grid { grid-template-columns: 1fr; }
  .discount-card { padding: 16px; gap: 8px; overflow: hidden; max-width: 100%; }
  .disc-filter-tabs { gap: 6px; }
  .disc-tab { padding: 6px 14px; font-size: 13px; }
  .disc-category-header h3 { font-size: 14px; }
  .disc-value { font-size: 18px; margin-right: 24px; }
  .disc-bookmark { top: 8px; right: 8px; padding: 2px; }
  .disc-bookmark svg { width: 18px; height: 18px; }
  .disc-title { font-size: 14px; word-break: break-word; }
  .disc-desc { font-size: 12px; word-break: break-word; }
  .disc-code-box { flex-wrap: wrap; }
  .disc-meta { gap: 4px; flex-wrap: wrap; }
  .disc-meta-item { font-size: 11px; padding: 3px 8px; }
  .disc-conditions { word-break: break-word; }
  .disc-source { white-space: normal; word-break: break-all; }
  .results-container { padding: 0 12px; }
  .badge-sub, .badge-sub.active { display: none !important; }

  .nav-inner { height: 56px; padding: 0 10px; gap: 6px; }
  .logo-img { height: 28px; }
  .logo { gap: 5px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
  .nav-email { display: none; }
  .nav-search-counter { padding: 3px 6px; gap: 4px; font-size: 11px; }
  .counter-bar { width: 28px; }
  .counter-info svg { width: 12px; height: 12px; }
  .counter-upgrade { font-size: 9px; padding: 2px 6px; }
  .nav-user { gap: 5px; flex-shrink: 0; }
  .nav-user .btn-sm { font-size: 11px; padding: 4px 8px; }
  .badge-sub, .badge-sub.active { display: none !important; }

  .account-panel {
    width: calc(100vw - 20px);
    right: -10px;
    max-width: 360px;
  }

  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; }
  .section-badge { font-size: 11px; }

  .type-pill { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .btn-search { font-size: 14px; }
  .hint-chip { font-size: 11px; padding: 3px 10px; }
  .hint-categories { gap: 6px; }
  .hint-row { gap: 4px; }
  .hint-label { font-size: 10px; }
}

/* ── STREAMING: LIVE COUNTER ─────────────────────────────── */
.loading-live-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-light, #eef2ff), #f3e8ff);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--radius, 12px);
  font-size: 15px;
  color: var(--primary, #6366f1);
  animation: fadeIn .3s ease;
}
.loading-live-count .live-icon { font-size: 18px; }
.loading-live-count strong { font-weight: 800; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CONFIDENCE BADGE ────────────────────────────────────── */
.disc-confidence {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .3px;
}
.disc-confidence--high   { background: #d1fae5; color: #065f46; }
.disc-confidence--medium { background: #fef3c7; color: #92400e; }
.disc-confidence--low    { background: #fee2e2; color: #991b1b; }

/* ── SOURCE LABEL ────────────────────────────────────────── */
.disc-source {
  font-size: 11px;
  color: var(--text-muted, #9ca3af);
  margin-top: 6px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
