:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(220 24% 7%);
  --card: hsl(0 0% 100%);
  --primary: hsl(216 100% 50%);
  --primary-foreground: hsl(0 0% 100%);
  --muted: hsl(220 30% 93%);
  --muted-foreground: hsl(220 14% 35%);
  --border: hsl(216 30% 86%);
  --surface: hsl(210 40% 98%);
  --success: hsl(160 84% 39%);
  --warning: hsl(38 92% 50%);
  --destructive: hsl(0 84% 60%);
}


.dark {
  --background: hsl(216 33% 6%);
  --foreground: hsl(0 0% 100%);
  --card: hsl(225 28% 14%);
  --muted: hsl(222 25% 10%);
  --muted-foreground: hsl(220 14% 77%);
  --border: hsl(222 23% 23%);
  --surface: hsl(222 25% 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1260px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { max-width: 900px; }
.section { padding: 80px 0; }
.surface { background: var(--surface); }
.center { text-align: center; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.2; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--muted-foreground); }

.navbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: all .3s; }
.navbar.scrolled { background: color-mix(in srgb, var(--background) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 16px rgb(0 0 0 / .04); }
.nav-container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.25rem; font-weight: 800; text-decoration: none; color: var(--foreground); }
.nav-links { display: flex; gap: 1.2rem; }
.nav-links button,
.mobile-menu-content button { background: none; border: 0; color: var(--muted-foreground); cursor: pointer; font: inherit; font-weight: 500; }
.nav-links button:hover,
.mobile-menu-content > button:hover { color: var(--foreground); }
.nav-actions, .mobile-actions { display: flex; align-items: center; gap: .6rem; }
.desktop-only { display: flex; }
.mobile-only { display: none; }

.mobile-menu { max-height: 0; overflow: hidden; transition: .3s; border-bottom: 0 solid var(--border); }
.mobile-menu.open { max-height: 320px; border-bottom-width: 1px; background: color-mix(in srgb, var(--background) 90%, transparent); backdrop-filter: blur(14px); }
.mobile-menu-content { padding: .5rem 0 1rem; display: grid; gap: .4rem; }
.mobile-menu-content > button { text-align: left; padding: .7rem .4rem; }
.mobile-cta { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .8rem; display: grid; gap: .5rem; }

.hero { position: relative; overflow: hidden; padding-top: 150px; }
.hero-blob { position: absolute; top: -40px; left: 50%; width: 800px; height: 600px; transform: translateX(-50%); background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: 999px; filter: blur(80px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-text { margin-top: 1.4rem; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.55; }
.check-list { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.check-list li { display: flex; align-items: center; gap: .65rem; color: var(--muted-foreground); }
.check-list li::before { content: "✓"; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.check-list.large li { font-size: 1.05rem; }
.hero-buttons { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.image-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 40px rgb(0 0 0 / .14); }
.image-card img { width: 100%; display: block; }
.glow { position: absolute; border-radius: 999px; pointer-events: none; }
.glow-1 { width: 180px; height: 180px; top: -30px; right: -40px; background: color-mix(in srgb, var(--primary) 16%, transparent); filter: blur(40px); }
.glow-2 { width: 140px; height: 140px; left: -30px; bottom: -30px; background: color-mix(in srgb, var(--success) 16%, transparent); filter: blur(36px); }

.stats { margin: 2.6rem auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stats strong { font-size: clamp(2rem, 3vw, 2.5rem); color: var(--primary); display: block; }
.stats span { font-size: .9rem; color: var(--muted-foreground); }

.grid { margin-top: 2.8rem; display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 1.5rem; transition: .3s; }
.card:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); transform: translateY(-2px); }
.card p { margin-top: .55rem; line-height: 1.6; font-size: .95rem; }
.card.danger:hover { border-color: color-mix(in srgb, var(--destructive) 30%, var(--border)); }

.testimonial-grid { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stars { color: var(--warning); letter-spacing: .08rem; }
.author { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; }
.author small { display: block; color: var(--muted-foreground); font-size: .75rem; }
.avatar { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.avatar.primary { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }
.avatar.success { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.avatar.warning { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }

.video-card { margin: 2.8rem auto 0; max-width: 980px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--background) 70%, transparent)); position: relative; display: grid; place-items: center; cursor: pointer; }
.play-button { width: 80px; height: 80px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; font-size: 2rem; padding-left: .25rem; box-shadow: 0 14px 24px color-mix(in srgb, var(--primary) 25%, transparent); transition: .3s; }
.video-card:hover .play-button { transform: scale(1.08); }
.duration { position: absolute; right: 1rem; bottom: 1rem; background: color-mix(in srgb, var(--background) 88%, transparent); border-radius: .4rem; padding: .25rem .55rem; font-size: .85rem; }
.subtitle { margin-top: .8rem; }

.pricing-grid { align-items: stretch; }
.pricing { display: flex; flex-direction: column; }
.price { margin-top: .9rem; color: var(--foreground); font-size: 2.2rem; font-weight: 800; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted-foreground); }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.pricing ul { margin: 1.3rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; color: var(--muted-foreground); font-size: .92rem; flex: 1; }
.pricing ul li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.featured { border-color: var(--primary); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 18%, transparent); transform: scale(1.02); position: relative; }
.badge { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); border-radius: 999px; background: var(--primary); color: var(--primary-foreground); padding: .24rem .75rem; font-size: .7rem; font-weight: 700; }
.subnote { margin-top: 1.3rem; font-size: .9rem; color: var(--muted-foreground); }

.faq { margin-top: 2.2rem; display: grid; gap: .7rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: .7rem; }

.cta-final { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), var(--background)); }
.cta-box { margin: 1.4rem auto 0; max-width: 520px; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; background: var(--card); display: grid; gap: .5rem; text-align: left; }
.oauth-transparency { background: var(--surface); }
.oauth-transparency .card { padding: 1.6rem; }
.oauth-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.oauth-grid h3 { margin-bottom: .4rem; font-size: 1rem; }
.oauth-grid p { font-size: .92rem; line-height: 1.6; }
.oauth-grid a { color: var(--primary); text-decoration: none; font-weight: 600; }
.oauth-grid a:hover { text-decoration: underline; }
.oauth-grid code {
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  font-size: .82rem;
  color: var(--foreground);
}
.oauth-note { margin-top: 1rem; font-size: .92rem; }
.oauth-note a { color: var(--primary); text-decoration: none; font-weight: 600; }
.oauth-note a:hover { text-decoration: underline; }

.footer { background: var(--card); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h4 { margin-bottom: .75rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; margin-bottom: .5rem; color: var(--muted-foreground); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--foreground); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }

.btn { height: 40px; border-radius: 8px; border: 0; padding: 0 1rem; font-weight: 600; cursor: pointer; background: var(--primary); color: var(--primary-foreground); font-family: inherit; }
.btn:hover { filter: brightness(.96); }
.btn-outline { background: var(--background); color: var(--foreground); border: 1px solid var(--border); }
.btn-sm { height: 36px; font-size: .88rem; }
.btn-lg { height: 44px; padding: 0 1.2rem; }
.icon-button { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-size: 1rem; }
.icon-button:hover { background: var(--surface); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-grid, .grid-3, .testimonial-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  .hero { padding-top: 120px; }
  .hero-grid, .grid-3, .grid-2, .stats, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
  .oauth-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; }
}

/* === LEGAL PAGES (pages/privacy_policy + terms_of_use) — migrado de style blocks === */
.legal-shell { min-height: 100vh; background: var(--background); }
.legal-wrap { max-width: 920px; margin: 0 auto; padding: 2.25rem 1.25rem 3.5rem; }
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.legal-card h1 { margin: 0 0 0.45rem 0; }
.legal-card h2 { margin: 1.35rem 0 0.55rem 0; font-size: 1.1rem; }
.legal-card h3 { margin: 1rem 0 0.4rem 0; font-size: 0.95rem; color: var(--primary); }
.legal-card p,
.legal-card li { color: var(--muted-foreground); line-height: 1.55; }
.legal-card ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.legal-meta { font-size: 0.85rem; color: var(--muted-foreground); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.legal-highlight {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1rem;
}
.legal-highlight p { margin-bottom: 0.35rem; }
.legal-highlight p:last-child { margin-bottom: 0; }
.legal-contact {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}
.legal-contact p { margin-bottom: 0.25rem; }
