:root {
  --bg: #0f172a;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --amber: #d97706;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { line-height: 1.2; }
section { padding: 5rem 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: .75rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: .6rem; font-weight: 600; font-size: .95rem; transition: all .15s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #eff6ff; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.4rem; display: inline-flex; align-items: center; }
.logo span { color: var(--primary); }
.logo-light { color: #fff; }
/* Logo de marca en encabezado y pie */
.logo img { height: 44px; width: auto; display: block; }
.footer .logo img { height: 56px; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: .6rem; }

/* Hero */
.hero { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); padding-top: 3.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pill { display: inline-block; background: #dbeafe; color: #1e40af; font-weight: 600; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--primary); }
.lead { font-size: 1.15rem; color: #334155; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.micro { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* Hero mockup */
.hero-card { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 30px 60px -15px rgba(15,23,42,.25); overflow: hidden; }
.mock-head { background: #0f172a; padding: .8rem 1rem; display: flex; gap: .4rem; }
.mock-head .dot { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.mock-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.mock-stat { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; background: #f8fafc; border-radius: .5rem; font-size: .9rem; color: var(--muted); }
.mock-stat b { font-size: 1.05rem; }
.mock-stat .green { color: var(--green); } .mock-stat .amber { color: var(--amber); } .mock-stat .blue { color: var(--primary); }
.mock-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; padding: .5rem .2rem; border-top: 1px solid var(--border); }
.tag { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.tag-green { background: #dcfce7; color: #166534; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-blue { background: #dbeafe; color: #1e40af; }

/* Problem */
.problem { background: #0f172a; color: #e2e8f0; text-align: center; }
.problem h2 { font-size: 1.9rem; color: #fff; margin-bottom: 2rem; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 760px; margin: 0 auto 2rem; }
.problem-item { background: #1e293b; padding: 1rem 1.25rem; border-radius: .6rem; text-align: left; font-size: .98rem; }
.problem-solve { font-size: 1.2rem; color: #fff; max-width: 700px; margin: 0 auto; }
.problem-solve strong { color: #60a5fa; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { padding: 1.75rem; border: 1px solid var(--border); border-radius: .9rem; transition: all .15s; }
.feature:hover { border-color: #bfdbfe; box-shadow: 0 10px 30px -10px rgba(37,99,235,.15); transform: translateY(-3px); }
.feat-ico { font-size: 2rem; margin-bottom: .75rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* How */
.how { background: #f8fafc; }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 300px; background: #fff; border: 1px solid var(--border); border-radius: .9rem; padding: 1.75rem; text-align: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step-arrow { display: flex; align-items: center; color: var(--primary); font-size: 1.6rem; font-weight: 700; }

/* Roles */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.role-card { padding: 1.75rem; border: 1px solid var(--border); border-radius: .9rem; }
.role-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.role-card ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.role-card li { position: relative; padding-left: 1.5rem; color: #334155; font-size: .95rem; }
.role-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Pricing */
.pricing { background: #f8fafc; }

/* Planes: 3 columnas en escritorio, 1 en móvil. El destacado se eleva. */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan-destacado { border: 2px solid var(--primary); box-shadow: 0 20px 40px -15px rgba(37,99,235,.25); }
.plan-etiqueta { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; white-space: nowrap; }
.plan-nombre { font-size: 1.25rem; font-weight: 800; margin-bottom: .25rem; }
.plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; min-height: 2.6em; }
.plan-precio { font-size: 2.25rem; font-weight: 800; line-height: 1; color: #0f172a; }
.plan-precio span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan-precio-custom { font-size: 1.75rem; }
.plan-anual { color: var(--muted); font-size: .85rem; margin: .5rem 0 1.25rem; }
.plan-lista { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; flex: 1; }
.plan-lista li { position: relative; padding-left: 1.5rem; font-size: .92rem; }
.plan-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.plan-extra { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.plan .btn { width: 100%; text-align: center; }
.btn-ghost-line { border: 1px solid #cbd5e1; color: #0f172a; background: #fff; }
.btn-ghost-line:hover { border-color: var(--primary); color: var(--primary); }
.planes-nota { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .planes { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
}

/* CTA final */
.cta-final { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; text-align: center; }
.cta-final h2 { font-size: 2rem; margin-bottom: .75rem; }
.cta-final p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }

/* Footer */
.footer { background: #0f172a; color: #94a3b8; padding: 3rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-desc { font-size: .9rem; margin-top: .4rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .85rem; width: 100%; text-align: center; border-top: 1px solid #1e293b; padding-top: 1.5rem; margin-top: .5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .hero h1 { font-size: 2.3rem; }
  .features-grid, .roles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); }
  .nav-cta .btn-ghost { display: none; }
  section { padding: 3.5rem 0; }
}
