:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 40px; height: 40px; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--primary); }

.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--primary); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: #eff6ff; }
.btn-phone { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }
.btn-block { width: 100%; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #eff6ff, #ffffff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-copy p { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 500; }
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 420px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink); color: #e2e8f0; padding: 20px 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.trust-item { font-size: 0.95rem; }
.trust-item strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Steps / educación ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-svg { width: 100%; max-width: 200px; margin: 0 auto 16px; }
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Video ---------- */
.video-wrap { max-width: 760px; margin: 0 auto; }
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
}
.video-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.video-play:hover { transform: scale(1.08); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.about-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-card h3 { margin-bottom: 18px; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.info-list dt { color: var(--muted); font-weight: 500; }
.info-list dd { font-weight: 600; text-align: right; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-item h4 { margin-bottom: 2px; }
.contact-item p { color: var(--muted); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 14px; font-weight: 500; color: var(--ink); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-note { margin-top: 14px; font-weight: 500; }
.form-note.ok { color: #16a34a; }
.form-note.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; color: #cbd5e1; margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #334155; padding-top: 20px; font-size: 0.85rem; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 6%; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .btn-phone { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}