*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
  color: #fff;
}
.logo span { color: #60a5fa; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: #fff; }
.nav .cta-btn {
  background: #3b82f6; color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; transition: background .2s;
}
.nav .cta-btn:hover { background: #2563eb; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(96,165,250,.15); color: #93c5fd; font-size: .8rem;
  font-weight: 600; letter-spacing: .02em; margin-bottom: 24px;
  border: 1px solid rgba(96,165,250,.25);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem; color: #94a3b8; max-width: 620px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #3b82f6; color: #fff; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: #fff; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* --- Secciones generales --- */
section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #3b82f6; margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 16px; color: #0f172a;
}
.section-sub {
  color: #64748b; font-size: 1.05rem; max-width: 100%; margin-bottom: 48px;
}

/* --- Características --- */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #f8fafc; border-radius: 16px; padding: 32px;
  border: 1px solid #e2e8f0; transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.06); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.feature-card p { font-size: .9rem; color: #64748b; }

/* --- Cómo funciona --- */
.how { background: #f8fafc; }
.steps { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; counter-reset: step; }
.step {
  flex: 1; min-width: 220px; max-width: 300px; text-align: center;
  counter-increment: step; position: relative;
}
.step::before {
  content: counter(step); position: relative; display: inline-flex;
  width: 48px; height: 48px; border-radius: 50%;
  background: #3b82f6; color: #fff; font-weight: 800; font-size: 1.2rem;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.step p { font-size: .9rem; color: #64748b; }

/* --- Beneficios --- */
.benefits { background: #fff; }
.benefits-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-item .check { font-size: 1.3rem; color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.benefit-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #0f172a; }
.benefit-item p { font-size: .88rem; color: #64748b; }

/* --- CTA final --- */
.cta-final {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  text-align: center; color: #fff;
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.cta-final p { color: #94a3b8; max-width: 520px; margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
  background: #0f172a; color: #64748b; text-align: center;
  padding: 32px 0; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .85rem;
}
.footer a { color: #94a3b8; transition: color .2s; }
.footer a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; background: #0f172a; position: absolute; top: 64px; left: 0; width: 100%; padding: 24px; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Formulario de contacto --- */
.contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: #0f172a; }
.contact-info p { color: #64748b; font-size: .92rem; margin-bottom: 24px; line-height: 1.7; }
.contact-info .detail { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #475569; font-size: .9rem; }
.contact-info .detail span { font-size: 1.1rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #1e293b; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-family: inherit; font-size: .92rem; background: #fff; color: #1e293b;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn-submit {
  background: #3b82f6; color: #fff; border: none; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background .2s, transform .15s; width: 100%;
}
.btn-submit:hover { background: #2563eb; transform: translateY(-2px); }
.form-msg { display: none; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; font-weight: 500; }
.form-msg.success { display: block; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-msg.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
