/* ============================================
   KalunBot — Landing Stylesheet
   Tema: oscuro minimalista, acento verde profit
   Con soporte de light mode via [data-theme="light"]
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --accent: #00c96b;
  --accent-dim: #009e53;
  --accent-glow: rgba(0, 201, 107, 0.15);
  --danger: #ff4d4d;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --container-narrow: 760px;
  --shadow-glow: 0 0 60px var(--accent-glow);
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg: #f8f9fa;
  --bg-2: #ffffff;
  --bg-3: #f1f3f5;
  --line: #e9ecef;
  --line-2: #dee2e6;
  --text: #0d0d0d;
  --text-2: #495057;
  --text-3: #868e96;
  --accent: #009e53;
  --accent-dim: #007a40;
  --accent-glow: rgba(0, 158, 83, 0.12);
  --danger: #e03131;
}

/* Toggle de tema */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 100px 0;
  position: relative;
}
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section__sub {
  color: var(--text-2);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.grad {
  background: linear-gradient(135deg, var(--accent) 0%, #6affb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: #6affb0;
  color: #000;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 32px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.nav__logo:hover { color: var(--text); }
.nav__logo-mark {
  color: var(--accent);
  font-size: .85em;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: .95rem;
  color: var(--text-2);
  margin-left: auto;
  margin-right: 24px;
}
.nav__actions { display: flex; gap: 12px; align-items: center; }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(0, 255, 136, .06), transparent 70%);
  z-index: -1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .4;
  z-index: -1;
}
.hero__inner { text-align: center; max-width: 900px; margin: 0 auto; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 32px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.dot--live {
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, .6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero__subtitle strong { color: var(--text); font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.trust__item { text-align: center; }
.trust__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}
.trust__lbl {
  font-size: .85rem;
  color: var(--text-3);
}
.trust__sep {
  width: 1px;
  height: 32px;
  background: var(--line-2);
}
@media (max-width: 600px) { .trust__sep { display: none; } }

/* ===== Hero mockup ===== */
.hero__mockup { max-width: 880px; margin: 0 auto; }
.mockup {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 80px var(--accent-glow);
}
.mockup__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.mockup__top span:nth-child(-n+3) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.mockup__top span:first-child { background: #ff5f57; }
.mockup__top span:nth-child(2) { background: #ffbd2e; }
.mockup__top span:nth-child(3) { background: #28c840; }
.mockup__url {
  margin-left: 16px;
  font-size: .8rem;
  color: var(--text-3);
  font-family: 'SF Mono', Consolas, monospace;
}
.mockup__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px;
  position: relative;
}
.mockup__stat {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.mockup__label {
  font-size: .75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.mockup__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.mockup__value--live { color: var(--accent); font-size: 1.1rem; }
.mockup__delta {
  font-size: .8rem;
  color: var(--accent);
  margin-top: 6px;
}
.mockup__bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 12px;
  height: 120px;
  padding: 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.mockup__bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  border-radius: 4px 4px 0 0;
  opacity: .9;
  animation: barGrow .8s cubic-bezier(.2,.8,.2,1) backwards;
}
.mockup__bars span:nth-child(1) { animation-delay: .1s; }
.mockup__bars span:nth-child(2) { animation-delay: .2s; }
.mockup__bars span:nth-child(3) { animation-delay: .3s; }
.mockup__bars span:nth-child(4) { animation-delay: .4s; }
.mockup__bars span:nth-child(5) { animation-delay: .5s; }
.mockup__bars span:nth-child(6) { animation-delay: .6s; }
.mockup__bars span:nth-child(7) { animation-delay: .7s; }
.mockup__bars span:nth-child(8) { animation-delay: .8s; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 700px) {
  .mockup__body { grid-template-columns: 1fr; padding: 20px; }
}

/* ============================================
   PROBLEMA / SOLUCIÓN
   ============================================ */
.section--problem { padding-block: 80px; }
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem__col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.problem__col:last-child {
  border-color: rgba(0, 255, 136, .25);
  box-shadow: 0 0 40px rgba(0, 255, 136, .08);
}
.problem__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.problem__tag--bad { background: rgba(255, 77, 77, .12); color: var(--danger); }
.problem__tag--good { background: var(--accent-glow); color: var(--accent); }
.problem__list { list-style: none; }
.problem__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  position: relative;
  padding-left: 28px;
}
.problem__list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}
.problem__list--good li::before { content: "✓"; color: var(--accent); }
.problem__list li:last-child { border-bottom: none; }

@media (max-width: 800px) {
  .problem { grid-template-columns: 1fr; }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s, border-color .2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.feature__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature p { color: var(--text-2); font-size: .95rem; }

@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ============================================
   STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p { color: var(--text-2); font-size: .95rem; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ============================================
   PRICING
   ============================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.price {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,255,136,.04), var(--bg-2));
  box-shadow: 0 0 60px var(--accent-glow);
  transform: scale(1.02);
}
.price__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}
.price__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-2);
  margin-bottom: 12px;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price__currency { font-size: 1.5rem; color: var(--text-2); }
.price__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.price__period { color: var(--text-2); }
.price__desc {
  color: var(--text-2);
  font-size: .9rem;
  margin-bottom: 24px;
}
.price__features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.price__features li {
  padding: 8px 0;
  color: var(--text-2);
  font-size: .95rem;
}
.price__features li strong { color: var(--text); }

.pricing__note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-3);
  font-size: .9rem;
}

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
  .price--featured { transform: none; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial__stars {
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.testimonial blockquote {
  color: var(--text);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.testimonial__name { font-weight: 600; font-size: .9rem; }
.testimonial__role { font-size: .8rem; color: var(--text-3); }

@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* ============================================
   FAQ
   ============================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .2s;
}
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: var(--text-2);
  margin-top: 12px;
  font-size: .95rem;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  box-shadow: 0 0 80px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 700px;
  margin: 0 auto 16px;
  position: relative;
}
.cta-final p {
  color: var(--text-2);
  margin-bottom: 32px;
  position: relative;
}
.cta-final .btn { position: relative; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  color: var(--text-2);
  font-size: .9rem;
  margin-top: 16px;
  max-width: 300px;
}
.footer__col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: var(--text-2);
  font-size: .9rem;
  padding: 4px 0;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-3);
  font-size: .85rem;
}
.footer__disclaimer { max-width: 600px; text-align: right; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
  .footer__disclaimer { text-align: left; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   AUTH PAGES (login/signup)
   ============================================ */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
}
.auth__logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth__subtitle {
  text-align: center;
  color: var(--text-2);
  margin-bottom: 32px;
  font-size: .95rem;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--text-2);
}
.field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder { color: var(--text-3); }

.auth__alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 16px;
  display: none;
}
.auth__alert.is-error {
  display: block;
  background: rgba(255, 77, 77, .1);
  border: 1px solid rgba(255, 77, 77, .3);
  color: var(--danger);
}
.auth__alert.is-success {
  display: block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.auth__foot {
  text-align: center;
  color: var(--text-2);
  font-size: .9rem;
  margin-top: 24px;
}
.auth__foot a { color: var(--accent); }

/* ============================================
   DASHBOARD
   ============================================ */
.dash { padding: 40px 0; }
.dash__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.dash__card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dash__card h3 {
  font-size: .85rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.dash__card .big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dash__license {
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: .9rem;
  word-break: break-all;
  color: var(--accent);
  margin-top: 12px;
}
@media (max-width: 800px) { .dash__grid { grid-template-columns: 1fr; } }

/* ============================================
   DASHBOARD — CHART + ONBOARDING
   ============================================ */
.dash__chart-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.dash__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash__chart-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.dash__chart-meta {
  font-size: .8rem;
  color: var(--text-3);
}
.dash__chart-wrap {
  position: relative;
  height: 220px;
}

/* Onboarding banner para usuarios sin licencia */
.onboarding {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 0 40px var(--accent-glow);
}
.onboarding__steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.onboarding__step {
  flex: 1;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.onboarding__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.onboarding__step-text strong {
  display: block;
  font-size: .9rem;
  margin-bottom: 2px;
}
.onboarding__step-text span {
  font-size: .8rem;
  color: var(--text-3);
}

/* Trial badge */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffc107;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0s !important; }
}
