* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --text: #0f172a;
  --text-soft: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --max-w: 1140px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { font-size: 19px; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--primary); }
.nav nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.nav nav a { color: var(--text-soft); }
.cta-mini {
  padding: 8px 16px; background: var(--primary); color: white !important;
  border-radius: 6px; font-weight: 500;
}
.cta-mini:hover { background: var(--primary-dark); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 64px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero h1 { font-size: 48px; line-height: 1.15; max-width: 820px; margin: 0 auto 24px; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--text-soft); max-width: 680px; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 28px; background: var(--primary); color: white; border: none;
  border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer;
  display: inline-block; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-secondary {
  padding: 14px 28px; background: white; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; font-weight: 500;
}
.btn-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.micro-trust { font-size: 13px; color: var(--text-soft); }

/* Section base */
section { padding: 80px 0; }
section h2 { font-size: 36px; text-align: center; margin-bottom: 12px; letter-spacing: -0.01em; }
.subhead { text-align: center; color: var(--text-soft); margin-bottom: 48px; font-size: 17px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-block; padding: 4px 12px; background: #dbeafe; color: var(--primary-dark);
  border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.demo { background: var(--bg-soft); text-align: center; }
.demo .container > * { text-align: left; }
.demo > .container > .section-tag,
.demo > .container > h2,
.demo > .container > .subhead { text-align: center; }
.demo h2 { text-align: center; }

/* Demo */
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px;
}
.demo-input, .demo-output { background: white; padding: 28px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.demo-input label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--text-soft); }
.demo-input input[type=text], .demo-input textarea, .demo-input select {
  width: 100%; padding: 10px 12px; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit;
}
.demo-input textarea { resize: vertical; }
.demo-input button { width: 100%; margin-top: 8px; }
.stars { display: flex; gap: 4px; margin-top: 6px; font-size: 28px; cursor: pointer; user-select: none; }
.stars span { color: #cbd5e0; transition: color 0.1s; }
.stars span.on { color: var(--accent); }
.stars span:hover { color: var(--accent); }
.demo-output { display: flex; flex-direction: column; }
.demo-card { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.placeholder { color: var(--text-soft); text-align: center; max-width: 280px; }
.placeholder strong { display: block; margin-bottom: 8px; color: var(--text); }
.loader { color: var(--text-soft); font-size: 15px; }
.generated { width: 100%; }
.generated-meta { font-size: 12px; color: var(--text-soft); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.generated-text { font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.error { color: var(--error); font-size: 14px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-align: left; padding: 24px; }
.feature .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--primary); color: white;
  border-radius: 50%; font-weight: 600; margin-bottom: 16px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-soft); }

/* Precios */
.precios { background: var(--bg-soft); }
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.plan {
  background: white; padding: 32px 28px; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); position: relative;
  display: flex; flex-direction: column;
}
.plan-destacado { box-shadow: 0 8px 30px rgba(37,99,235,0.15); border: 2px solid var(--primary); transform: scale(1.03); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.plan h3 { font-size: 22px; margin-bottom: 8px; }
.precio { font-size: 40px; font-weight: 700; margin: 12px 0 24px; }
.precio span { font-size: 16px; font-weight: 400; color: var(--text-soft); }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan ul li { padding: 8px 0; color: var(--text-soft); font-size: 14px; border-bottom: 1px solid var(--border); }
.plan ul li::before { content: "✓ "; color: var(--success); font-weight: bold; }
.btn-plan {
  display: block; text-align: center; padding: 12px 24px;
  background: var(--bg-soft); color: var(--text);
  border-radius: 6px; font-weight: 500;
}
.btn-plan:hover { background: var(--border); text-decoration: none; }
.btn-plan.btn-primary { background: var(--primary); color: white; }
.btn-plan.btn-primary:hover { background: var(--primary-dark); }

/* FAQ */
.faq .container { max-width: 760px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--text-soft); }

/* Alta */
.alta { background: var(--bg-soft); text-align: center; }
.lead-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.lead-form input, .lead-form select {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.lead-form button { margin-top: 8px; }
.lead-ok {
  max-width: 520px; margin: 24px auto 0; padding: 20px; background: #dcfce7;
  color: var(--success); border-radius: 8px; font-weight: 500;
}

/* Footer */
footer { padding: 40px 0; text-align: center; color: var(--text-soft); font-size: 13px; border-top: 1px solid var(--border); }
footer .legal { margin-top: 8px; }
footer .legal a { color: var(--text-soft); margin: 0 8px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  section { padding: 56px 0; }
  section h2 { font-size: 28px; }
  .demo-grid, .features-grid, .planes { grid-template-columns: 1fr; }
  .plan-destacado { transform: none; }
  .nav nav a:not(.cta-mini) { display: none; }
}
