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

:root {
  --bg-0: #07081a;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #4f6ef2;
  --accent-bright: #7ea0ff;
  --accent-grad: linear-gradient(135deg, #4f6ef2, #8b5cf6);
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg-0); line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Nav */
nav.site-nav { position: fixed; top: 0; width: 100%; z-index: 100; padding: 0.95rem 2rem; display: flex; justify-content: space-between; align-items: center; background: rgba(7, 8, 26, 0.82); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-logo span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 1.7rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: white; }
.btn-cta { padding: 0.55rem 1.3rem; border-radius: 10px; background: var(--accent-grad); color: white !important; font-weight: 600; font-size: 0.9rem; transition: transform 0.2s; }
.btn-cta:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  nav.site-nav { padding: 0.7rem 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn-cta) { display: none; }
}

/* Hero */
.hero { min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 30% 50%, rgba(79, 110, 242, 0.18) 0%, transparent 45%),
  radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 40%); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge { display: inline-block; padding: 0.5rem 1.3rem; border-radius: 50px; background: rgba(79, 110, 242, 0.15); border: 1px solid rgba(79, 110, 242, 0.35); color: var(--accent-bright); font-size: 0.8rem; font-weight: 500; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 900; color: white; line-height: 1.08; margin-bottom: 1.4rem; letter-spacing: -0.03em; }
.hero h1 span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 0.85rem 1.9rem; border-radius: 12px; font-weight: 600; font-size: 1rem; transition: all 0.25s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary { background: var(--accent-grad); color: white; box-shadow: 0 4px 22px rgba(79, 110, 242, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79, 110, 242, 0.5); }
.btn-outline { border: 1px solid rgba(255,255,255,0.15); color: white; background: transparent; }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* Sections */
.page-hero { padding: 7rem 1.5rem 3rem; text-align: center; max-width: 900px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; color: white; line-height: 1.12; margin-bottom: 1rem; letter-spacing: -0.02em; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 auto; }

.section { padding: 4.5rem 1.5rem; max-width: 1180px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: white; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.section-title p { color: var(--muted); font-size: 1.02rem; max-width: 660px; margin: 0 auto; }

/* Generic card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card { padding: 1.7rem; border-radius: 16px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(79, 110, 242, 0.35); }
.card .icon { font-size: 1.7rem; margin-bottom: 0.7rem; }
.card h3 { font-size: 1.1rem; color: white; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card ul { list-style: none; margin-top: 0.7rem; }
.card ul li { color: #cbd5e1; font-size: 0.9rem; padding: 0.18rem 0; }
.card ul li::before { content: '·'; color: var(--accent-bright); margin-right: 0.4rem; font-weight: 700; }

/* Two-col block */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: center; }
.two-col h2 { font-size: 1.85rem; color: white; margin-bottom: 1rem; letter-spacing: -0.02em; }
.two-col p { color: var(--muted); margin-bottom: 1rem; }
.two-col ul { list-style: none; }
.two-col ul li { color: #cbd5e1; padding: 0.3rem 0; padding-left: 1.5rem; position: relative; }
.two-col ul li::before { content: '✓'; color: var(--ok); position: absolute; left: 0; font-weight: 700; }
.code-box { background: #050614; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.2rem 1.4rem; font-family: ui-monospace, SF Mono, Menlo, monospace; font-size: 0.88rem; color: #cbd5e1; overflow-x: auto; line-height: 1.6; }
.code-box .c-cmt { color: #475569; }
.code-box .c-key { color: var(--accent-bright); }
.code-box .c-str { color: #fbbf24; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pricing-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 2.2rem 1.8rem; }
.pricing-card.featured { border-color: rgba(79,110,242,0.5); background: linear-gradient(180deg, rgba(79,110,242,0.06), rgba(255,255,255,0.03)); position: relative; }
.pricing-card.featured::before { content: 'Recomendado'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: white; padding: 0.18rem 0.8rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.pricing-card h3 { color: white; font-size: 1.2rem; margin-bottom: 0.4rem; }
.pricing-card .desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.pricing-card .price { font-size: 2.4rem; font-weight: 800; color: white; }
.pricing-card .price .unit { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.pricing-card .min { color: var(--muted); font-size: 0.82rem; margin-bottom: 1.3rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li { color: #cbd5e1; padding: 0.32rem 0; padding-left: 1.4rem; position: relative; font-size: 0.9rem; }
.pricing-card li::before { content: '✓'; color: var(--ok); position: absolute; left: 0; font-weight: 700; }
.pricing-card li.bad::before { content: '×'; color: #475569; }
.pricing-card li.bad { color: #475569; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 0.9rem; overflow: hidden; background: rgba(255,255,255,0.03); }
.faq-item summary { padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 600; color: white; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-bright); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: rgba(255,255,255,0.04); }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq-item .faq-body p { margin-bottom: 0.6rem; }
.faq-item .faq-body code { background: #050614; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.86em; color: #cbd5e1; }

/* TPV chips */
.tpv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.9rem; margin-top: 2rem; }
.tpv-chip { padding: 0.95rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; text-align: center; font-weight: 600; color: #cbd5e1; letter-spacing: 0.02em; transition: border-color 0.2s; }
.tpv-chip:hover { border-color: rgba(79,110,242,0.4); }
.tpv-chip .status { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0; }
.tpv-chip .status.ok { color: var(--ok); }
.tpv-chip .status.soon { color: var(--warn); }

/* Verifactu callout */
.callout { background: linear-gradient(135deg, rgba(79,110,242,0.12), rgba(139,92,246,0.08)); border: 1px solid rgba(79,110,242,0.3); border-radius: 20px; padding: 2.7rem 2rem; text-align: center; }
.callout .pill { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 50px; background: rgba(79,110,242,0.25); color: var(--accent-bright); font-size: 0.78rem; font-weight: 600; margin-bottom: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: white; margin-bottom: 1rem; }
.callout p { color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; }

/* Comparison table */
.compare { overflow-x: auto; margin-top: 1.5rem; }
.compare table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.92rem; }
.compare th { color: white; font-weight: 600; background: rgba(255,255,255,0.04); }
.compare td.ok { color: var(--ok); }
.compare td.no { color: #64748b; }
.compare td.partial { color: var(--warn); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; padding: 2.5rem 1.5rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.stats .stat strong { display: block; font-size: 2rem; font-weight: 800; color: white; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stats .stat span { color: var(--muted); font-size: 0.88rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); padding: 4rem 1.5rem; text-align: center; }
.contact h2 { color: white; font-size: 1.85rem; margin-bottom: 0.7rem; }
.contact p { color: var(--muted); margin-bottom: 1.8rem; }
.contact-email { font-size: 1.25rem; color: var(--accent-bright); font-weight: 600; }

footer { background: var(--bg-0); padding: 1.7rem; text-align: center; color: #475569; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); }
footer a { color: var(--muted); margin: 0 0.5rem; }
footer a:hover { color: white; }
footer .footer-links { margin-bottom: 0.6rem; }
