/* ===================================================
   REPUTIA — Landing Page Styles
   Sistema: dark morado, HTML + CSS puro
=================================================== */

/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg:          #09071A;
  --bg-surface:  #110E27;
  --bg-card:     #19163A;
  --bg-card-hi:  #211D48;
  --border:      rgba(255 255 255 / .07);
  --border-mid:  rgba(255 255 255 / .12);

  --p:           #6B21A8;
  --p-hover:     #7C3AED;
  --p-400:       #A855F7;
  --p-300:       #C084FC;
  --p-glow:      rgba(107 33 168 / .22);
  --p-glow-hi:   rgba(168 85 247 / .35);

  --green:       #10B981;
  --text:        #F1F5F9;
  --muted:       #94A3B8;
  --subtle:      #64748B;

  --r:           12px;
  --r-sm:        8px;
  --r-lg:        20px;
  --r-xl:        28px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Layout ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-surface); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--r);
  transition: all 180ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: .9rem;
}
.btn-sm  { padding: 7px 16px; font-size: .83rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--p);
  color: #fff;
  box-shadow: 0 0 0 0 var(--p-glow);
}
.btn-primary:hover {
  background: var(--p-hover);
  box-shadow: 0 4px 24px var(--p-glow-hi);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(168 85 247 / .4);
  background: rgba(168 85 247 / .06);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: rgba(168 85 247 / .5);
  background: rgba(168 85 247 / .06);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Section headers ────────────────────────────── */
.section-hd { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-400);
  margin-bottom: 12px;
}
.section-hd h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Animations ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
  transition-delay: var(--d, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 200ms, box-shadow 200ms;
}
.nav.scrolled {
  background: rgba(9 7 26 / .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links li a {
  padding: 6px 14px;
  font-size: .9rem;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 180ms, background 180ms;
}
.nav-links li a:hover { color: var(--text); background: rgba(255 255 255 / .05); }
.nav-toggle {
  display: none;
  margin-left: auto;
  color: var(--muted);
  padding: 6px;
  border-radius: var(--r-sm);
  transition: color 180ms;
}
.nav-toggle:hover { color: var(--text); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 144px 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at 50% 40%, rgba(107 33 168 / .30) 0%, transparent 68%);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 28px;
  display: block;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(168 85 247 / .12);
  border: 1px solid rgba(168 85 247 / .25);
  font-size: .8rem;
  font-weight: 600;
  color: var(--p-300);
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--p-300) 0%, var(--p-400) 50%, var(--p) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-footnote {
  font-size: .82rem;
  color: var(--subtle);
}

/* ── Browser frame + Extension mockup ───────────── */
.hero-visual { position: relative; }
.browser-frame {
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  box-shadow: 0 24px 80px rgba(0 0 0 / .5), 0 0 0 1px rgba(168 85 247 / .12);
  overflow: hidden;
}
.browser-bar {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-mid);
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28CA41; }
.browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  color: var(--subtle);
  background: var(--bg-surface);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex: 1;
  max-width: 220px;
}

/* Extension popup */
.ext-popup {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ext-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ext-logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--p) 0%, var(--p-400) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .7rem; color: #fff;
  flex-shrink: 0;
}
.ext-title { font-weight: 700; font-size: .88rem; color: var(--text); }
.ext-ai-chip {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(168 85 247 / .2);
  color: var(--p-300);
  border: 1px solid rgba(168 85 247 / .3);
  margin-left: auto;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.reviewer-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.reviewer-name { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.stars { font-size: .75rem; color: #FBBF24; }
.review-ago { font-size: .7rem; color: var(--subtle); margin-left: auto; }
.review-body { font-size: .78rem; color: var(--muted); line-height: 1.5; font-style: italic; }

.ext-gen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--p);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background 180ms, box-shadow 180ms;
  cursor: pointer;
}
.ext-gen-btn:hover { background: var(--p-hover); box-shadow: 0 4px 16px var(--p-glow); }

.ext-response {
  background: rgba(168 85 247 / .07);
  border: 1px solid rgba(168 85 247 / .2);
  border-radius: var(--r);
  padding: 10px 12px;
}
.ext-response-lbl {
  font-size: .68rem;
  font-weight: 600;
  color: var(--p-400);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.ext-response p { font-size: .78rem; color: var(--muted); line-height: 1.55; }

.ext-footer-btns {
  display: flex;
  gap: 8px;
}
.ext-btn-sec {
  flex: 1; padding: 7px; font-size: .78rem; font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-mid);
  color: var(--muted);
  background: transparent;
  transition: all 160ms;
  cursor: pointer;
}
.ext-btn-sec:hover { color: var(--text); border-color: rgba(255 255 255 / .2); }
.ext-btn-pri {
  flex: 1; padding: 7px; font-size: .78rem; font-weight: 700;
  border-radius: var(--r-sm);
  background: var(--p);
  color: #fff;
  transition: background 160ms;
  cursor: pointer;
}
.ext-btn-pri:hover { background: var(--p-hover); }

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  box-shadow: 0 8px 24px rgba(0 0 0 / .4);
  animation: floatBadge 3.5s ease-in-out infinite;
  white-space: nowrap;
}
.float-a { bottom: -16px; left: -24px; animation-delay: 0s; }
.float-b { top: 32px; right: -24px; animation-delay: 1.4s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════════════
   PROBLEMA
══════════════════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
  cursor: default;
}
.pain-card:hover {
  border-color: rgba(168 85 247 / .3);
  box-shadow: 0 8px 32px var(--p-glow);
  transform: translateY(-3px);
}
.pain-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  background: rgba(107 33 168 / .15);
  border: 1px solid rgba(107 33 168 / .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--p-400);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.pain-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.pain-card p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.pain-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.stat-n {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--p-300);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-l { font-size: .78rem; color: var(--subtle); }

/* ══════════════════════════════════════════════════
   CÓMO FUNCIONA
══════════════════════════════════════════════════ */
.steps-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
  cursor: default;
}
.step-card:hover {
  border-color: rgba(168 85 247 / .3);
  box-shadow: 0 8px 32px var(--p-glow);
  transform: translateY(-3px);
}
.step-arrow {
  flex-shrink: 0;
  color: var(--border-mid);
  padding: 36px 8px 0;
  align-self: flex-start;
}
.step-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--p-400);
  margin-bottom: 16px;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(107 33 168 / .2) 0%, rgba(168 85 247 / .12) 100%);
  border: 1px solid rgba(107 33 168 / .3);
  display: flex; align-items: center; justify-content: center;
  color: var(--p-400);
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-card p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   PRECIOS
══════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  position: relative;
  transition: box-shadow 250ms, transform 250ms;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0 0 0 / .35); }

.price-card--pro {
  background: linear-gradient(160deg, #1B153A 0%, #23185A 100%);
  border-color: rgba(107 33 168 / .6);
  box-shadow: 0 0 0 1px rgba(168 85 247 / .15), 0 8px 40px var(--p-glow);
}
.price-card--pro:hover { box-shadow: 0 0 0 1px rgba(168 85 247 / .3), 0 20px 60px var(--p-glow-hi); }

.popular-tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--p) 0%, var(--p-400) 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--p-glow);
}
.price-head { margin-bottom: 28px; }
.plan-name {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amt {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
}
.price-per { font-size: .9rem; color: var(--muted); }
.plan-desc { font-size: .88rem; color: var(--muted); line-height: 1.55; }

.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.plan-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  flex-shrink: 0;
}
.plan-feats li svg { flex-shrink: 0; }
.feat-off { color: var(--subtle) !important; }

.plan-note {
  text-align: center;
  font-size: .78rem;
  color: var(--subtle);
  margin-top: 14px;
}

/* ══════════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg-surface);
}
.cta-box {
  position: relative;
  text-align: center;
  padding: 72px 48px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #1A1336 0%, #200F40 100%);
  border: 1px solid rgba(107 33 168 / .4);
  box-shadow: 0 0 80px rgba(107 33 168 / .2);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.cta-glow {
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 350px;
  background: radial-gradient(ellipse at 50% 50%, rgba(107 33 168 / .45) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
}
.cta-box p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  position: relative;
}
.cta-box .btn { position: relative; }
.cta-note {
  font-size: .8rem;
  color: var(--subtle);
  margin-top: 16px;
  position: relative;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-brand p { font-size: .82rem; color: var(--subtle); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-nav a {
  font-size: .85rem;
  color: var(--subtle);
  transition: color 180ms;
}
.footer-nav a:hover { color: var(--p-400); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: var(--subtle); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps-layout { gap: 0; }
}

@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .float-a { left: 0; }
  .float-b { right: 0; }

  .pain-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps-layout { flex-direction: column; max-width: 480px; margin: 0 auto; }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 72px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(9 7 26 / .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 10px 14px;
    font-size: .95rem;
  }
  .nav-links li:last-child .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-lg { width: 100%; justify-content: center; }

  .section-hd { margin-bottom: 48px; }

  .cta-box { padding: 48px 24px; }

  .price-card { padding: 32px 24px; }

  .footer-row { flex-direction: column; align-items: flex-start; }
}
