/* ===== Design tokens ===== */
:root {
  --ink: #0f1226;
  --ink-soft: #3a3f5c;
  --muted: #6b7192;
  --line: #e7e8f2;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --accent-bg: #eef0ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 38, .06), 0 4px 16px rgba(15, 18, 38, .05);
  --shadow-md: 0 10px 40px rgba(79, 70, 229, .14);
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--solid { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn--solid:hover { transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { color: var(--brand); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 100px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center; width: 75px; height: 75px; border-radius: 9px;
  background: url(https://consejodeestudiantes.com/images/logo.png) no-repeat; background-size: contain;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.brand__word { font-size: 19px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--brand); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 92px 24px 80px; }
.hero__title {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(36px, 6vw, 62px); line-height: 1.05;
}
.hero__sub {
  max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 18px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero__proof {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 44px; color: var(--muted); font-size: 15px; flex-wrap: wrap;
}
.proof__stat strong { color: var(--ink); }
.proof__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.hero__glow {
  position: absolute; z-index: 1; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(79,70,229,.18), rgba(6,182,212,.10) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}

/* ===== Trusted strip ===== */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip__inner {
  display: flex; align-items: center; gap: 28px; padding: 22px 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.strip__logos { display: flex; gap: 28px; flex-wrap: wrap; }
.strip__logos li { font-weight: 600; color: var(--ink-soft); opacity: .75; }

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(28px, 4vw, 42px);
}
.section-head__sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== Features grid ===== */
.features { padding: 88px 0; }
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-bg); font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; }
.card--accent { background: linear-gradient(160deg, #4f46e5, #6366f1); border-color: transparent; }
.card--accent h3, .card--accent p { color: #fff; }
.card--accent p { color: rgba(255,255,255,.86); }
.card--accent .card__icon { background: rgba(255,255,255,.16); }

/* ===== How it works ===== */
.how { padding: 88px 0; background: var(--bg-soft); }
.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: 30px 26px; box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-family: var(--display);
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ===== Pricing ===== */
.pricing { padding: 88px 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tier {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.tier--featured {
  border-color: var(--brand); box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.tier__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.tier h3 { font-size: 20px; }
.tier__price { margin: 14px 0 6px; font-family: var(--display); }
.tier__price span { font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.tier__price small { color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500; }
.tier__desc { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.tier__list { display: grid; gap: 10px; margin-bottom: 24px; }
.tier__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.tier__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  margin: 0 auto; padding: 84px 0;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}
.cta__inner { text-align: center; color: #fff; }
.cta h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(28px, 4vw, 40px); max-width: 720px; margin: 0 auto;
}
.cta p { margin-top: 14px; color: rgba(255,255,255,.9); font-size: 18px; }
.cta__form {
  display: flex; gap: 10px; justify-content: center; margin: 28px auto 0;
  max-width: 480px; flex-wrap: wrap;
}
.cta__form input {
  flex: 1 1 240px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: none; font-size: 16px; font-family: var(--font); color: var(--ink);
}
.cta__form input:focus { outline: 3px solid rgba(255,255,255,.5); }
.cta__form .btn--solid { background: #0f1226; box-shadow: none; }
.cta__form .btn--solid:hover { background: #1c2040; }
.cta__fine { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.82); }

/* ===== FAQ ===== */
.faq { padding: 88px 0; }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c9cceb; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand__word { color: #fff; }
.footer__brand { max-width: 280px; }
.footer__brand p { margin-top: 14px; color: #9aa0c9; font-size: 14.5px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer__cols a { display: block; color: #9aa0c9; font-size: 14.5px; margin-bottom: 10px; }
.footer__cols a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  color: #7f85b0; font-size: 13.5px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .tiers { grid-template-columns: 1fr; }
  .tier--featured { transform: none; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .hero__inner { padding: 64px 20px 56px; }
}
