:root {
  --bg: #f6f8fc; --bg2: #ffffff; --fg: #0d1526; --muted: #5b6577; --line: #e3e8f0;
  --accent: #1f6ff9; --accent2: #0a1f52; --ok: #1f9d55; --warn: #d97706; --card: #ffffff;
  --shadow: 0 10px 40px rgba(13, 21, 38, .10);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0b1220; --bg2: #101a2e; --fg: #e8edf6; --muted: #98a4ba; --line: #1f2b44;
  --accent: #4f8dff; --accent2: #cfe0ff; --card: #131f36; --shadow: 0 10px 40px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; }
p { margin: 0 0 1em; }
.sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 18px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand .by { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: -4px; align-self: flex-end; padding-bottom: 3px; }
.links { display: flex; gap: 22px; margin-left: 12px; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--fg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
select#lang, .icon-btn { background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; cursor: pointer; }
.icon-btn { width: 36px; height: 34px; font-size: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--bg2); }
.btn-lg { padding: 14px 24px; font-size: 17px; border-radius: 12px; }

.hero { max-width: 1180px; margin: 0 auto; padding: 96px 28px 40px; }
.hero-stack { display: grid; grid-template-columns: 1fr; gap: 56px; }
.hero-text { text-align: center; max-width: 780px; margin: 0 auto; }
.hero .cta { justify-content: center; }
.hero .checks { max-width: 620px; margin: 0 auto; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); font-weight: 800; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin-left: auto; margin-right: auto; }
.cta { display: flex; gap: 12px; margin: 26px 0 22px; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.checks li::before { content: "✓ "; color: var(--ok); font-weight: 700; }


.section { max-width: 1180px; margin: 0 auto; padding: 80px 28px; }
.section.alt { max-width: none; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 1124px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.grid h3 { font-size: 17px; margin-top: 10px; } .grid p { color: var(--muted); margin: 0; font-size: 15px; }
.ic { width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px auto; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.terminal { background: #0b1220; color: #dbe4f5; border-radius: 14px; padding: 20px 24px; overflow: auto; border: 1px solid #1f2b44; }
.terminal pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; } .terminal .c { color: #7c8cab; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; } th { background: color-mix(in srgb, var(--fg) 4%, transparent); font-weight: 700; }
th:nth-child(2) { color: var(--accent); }
td.y { color: var(--ok); font-weight: 700; } td.n { color: var(--muted); } td.p { color: var(--warn); }
.note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; }

.faq { max-width: 820px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; } details p { margin: 10px 0 0; color: var(--muted); }

.download { text-align: center; } .download h2 { margin-top: 12px; } .download .small { color: var(--muted); font-size: 13px; margin-top: 14px; }
footer { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero { padding-top: 48px; } .links { display: none; }
  .steps { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; }
}

/* Precios */
.plans { display: grid; grid-template-columns: repeat(2, minmax(280px, 420px)); gap: 20px; justify-content: center; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.plan h3 { font-size: 22px; margin: 0; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; } .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-sub { color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; } .plan li.n { color: var(--muted); text-decoration: line-through; } .plan li.n::before { content: "— "; color: var(--muted); }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ===== Estilo "producto": tipografía, brillo y animaciones ===== */
.grad { background: linear-gradient(92deg, #2a73fa 0%, #6fb3ff 45%, #9b6dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -.03em; line-height: 1.02; }

.hero-shot { position: relative; max-width: 1080px; margin: 0 auto; perspective: 1600px; }
.hero-shot .glow { position: absolute; inset: 10% 8% -6% 8%; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); filter: blur(48px); z-index: 0; }
.hero-shot picture { position: relative; z-index: 1; display: block; }
.hero-shot img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); transform: rotateX(10deg) translateY(10px); transform-origin: top center; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.hero-shot.in img { transform: rotateX(0deg) translateY(0); }
[data-theme="light"] .hero-shot img { box-shadow: 0 40px 100px rgba(13,21,38,.22), 0 0 0 1px rgba(13,21,38,.06); }

.statement { text-align: center; padding: 120px 28px 40px; max-width: 900px; margin: 0 auto; }
.statement h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px; }
.statement .sub { font-size: 20px; }

.showcase { max-width: 1180px; margin: 0 auto; padding: 40px 28px 40px; display: grid; gap: 96px; }
.show-row { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: center; }
.show-row.rev .show-text { order: 2; } .show-row.rev .show-img { order: 1; }
.show-text h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin-bottom: 12px; }
.show-text p { color: var(--muted); font-size: 17px; }
.show-img img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); transition: transform .5s ease; }
.show-img:hover img { transform: translateY(-4px) scale(1.01); }
[data-theme="light"] .show-img img { box-shadow: 0 30px 70px rgba(13,21,38,.18), 0 0 0 1px rgba(13,21,38,.06); }

/* Tarjetas con brillo que sigue al cursor */
.grid article { position: relative; overflow: hidden; }
.grid article::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.grid article:hover::before { opacity: 1; }
.plan.pro { position: relative; }
.plan.pro::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent) 35%, transparent) 85%, transparent 100%); animation: spin 9s linear infinite; z-index: -1; filter: blur(30px); opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-stagger > *, .hero-shot img { transition: none; opacity: 1; transform: none; } .plan.pro::after { animation: none; } }
@media (max-width: 900px) { .show-row, .show-row.rev { grid-template-columns: 1fr; } .show-row.rev .show-text { order: 1; } .show-row.rev .show-img { order: 2; } .statement { padding-top: 72px; } }
.lang-menu { position: relative; border: 0; padding: 0; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--fg); border: 1px solid transparent; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lang-menu .flag { width: 20px; height: 14px; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.18); border-radius: 2.5px; }
.lang-menu ul { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.28); display: grid; gap: 2px; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98) } to { opacity: 1; transform: none } }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--fg); font-weight: 500; font-size: .95rem; }
.lang-menu li a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lang-menu li a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.footer-langs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.9; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .lang-menu summary .code { display: none; } .lang-menu ul { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; grid-template-columns: 1fr 1fr; } }

/* Banner de cookies (compartido con consent.js) */
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; margin: 0 auto; max-width: 720px; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.28); animation: pop .25s ease; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn.small { padding: 7px 13px; font-size: 13px; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } .cookie-actions { justify-content: flex-end; } }
