@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Figtree:wght@400;500;600&display=swap");

:root {
  --bg: #FAFAF8;
  --surface: #F1F1EE;
  --granito: #E4E5E1;
  --ink: #232323;
  --ink-muted: #5C605D;
  --ink-soft: #8A8E8B;
  --ria: #0E7C70;
  --ria-deep: #0A5A51;
  --ria-soft: #DDF0EC;
  --display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }

/* Etiqueta editorial: mayúsculas pequeñas con paréntesis */
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ria); margin-bottom: 14px; }

/* ---------- Cabecera ---------- */
.header { max-width: var(--max); margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo img { width: 96px; height: auto; }
.links { display: flex; gap: 30px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.links a { padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.links a:hover { border-color: var(--ink); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.login { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ria); border-bottom: 1.5px solid var(--ria); padding-bottom: 2px; }

.pill { display: inline-block; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 500; font-size: 15px; padding: 10px 20px; border-radius: 999px; transition: background .15s; white-space: nowrap; }
.pill:hover { background: var(--ria); }
.pill-lg { padding: 14px 28px; font-size: 16px; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--ria-soft); }

/* ---------- Portada ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px 20px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--granito); background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ria); }
.hero h1 { font-size: clamp(36px, 6vw, 74px); margin-top: 24px; }
.hero h1 span { color: var(--ink-soft); }
.sub { color: var(--ink-muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch; margin: 22px 0 30px; }

.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--surface); border: 1px solid var(--granito); border-radius: 12px; padding: 4px; margin-top: 56px; }
.tabs button { font: 500 14px var(--body); color: var(--ink-muted); background: none; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(35,35,35,.08); }
.tabs button:focus-visible { outline: 2px solid var(--ria); outline-offset: 2px; }

.stage { position: relative; width: 100%; margin-top: 28px; border-radius: 22px; overflow: hidden; aspect-ratio: 1200 / 520; min-height: 360px; display: grid; place-items: center; }
.ria { position: absolute; inset: 0; width: 100%; height: 100%; }
.corner { position: absolute; z-index: 1; font-family: var(--display); font-size: 22px; line-height: 1; color: #fff; opacity: .9; }
.corner.tl { left: 22px; top: 20px; } .corner.tr { right: 22px; top: 20px; }
.corner.bl { left: 22px; bottom: 20px; } .corner.br { right: 22px; bottom: 20px; }

.card { position: relative; width: min(440px, calc(100% - 40px)); background: #fff; border-radius: 18px; padding: 22px 24px; text-align: left; box-shadow: 0 10px 30px rgba(35,35,35,.10); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.card-title { font-family: var(--display); font-size: 17px; }
.card-title b { font-weight: 600; }
.pct { color: var(--ink-soft); font-size: 14px; }
.bar { height: 6px; background: var(--granito); border-radius: 99px; margin: 14px 0 16px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 25%; background: var(--ria); border-radius: 99px; transition: width .5s ease; }
.checklist { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.checklist li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 16px; }
.checklist li.done, .checklist li.next { color: var(--ink); }
.checklist i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--granito); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--ink-muted); }
.checklist i::before { content: counter(s); }
.checklist li.done i { background: var(--ria); border-color: var(--ria); }
.checklist li.done i::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

.toast { position: absolute; left: calc(50% - 220px); bottom: 26px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 16px 8px 8px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(35,35,35,.10); }
.spark { width: 30px; height: 30px; border-radius: 8px; background: var(--ria-soft); position: relative; }
.spark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ria); }

.sectors { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 20px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 36px; max-width: 20ch; }

.services { list-style: none; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: 60px 1fr 1.2fr; gap: 8px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--granito); }
.services b { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ria); }
.services h3 { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: -.01em; }
.services p { color: var(--ink-muted); max-width: 44ch; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { border-top: 1px solid var(--granito); padding-top: 18px; }
.steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ria-soft); color: var(--ria-deep); font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--ink-muted); font-size: 15px; }

.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 72px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta { position: relative; overflow: hidden; padding-bottom: clamp(240px, 28vw, 360px); }
.cta > :not(.city) { position: relative; z-index: 1; }
.city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(230px, 29vw, 380px); }
.cta .eyebrow { color: #7FD8CB; }
.cta h2 { color: #fff; margin-bottom: 14px; max-width: none; }
.cta > p { color: #C9CCC9; max-width: 44ch; margin-bottom: 28px; }
.contact { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; margin-top: 36px; }
.contact li { display: flex; flex-direction: column; gap: 2px; }
.contact span { font-size: 12px; color: #9EA29F; text-transform: uppercase; letter-spacing: .06em; font-family: var(--display); font-weight: 600; }
.contact a { font-family: var(--display); font-weight: 500; font-size: 17px; color: #7FD8CB; }

/* ---------- Pie con el logotipo gigante ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 72px 20px 0; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-muted); font-size: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--granito); }
.foot-row a:hover { color: var(--ria); }
.giant { width: 100%; height: auto; margin: 32px 0 -3%; }

/* ---------- Página legal ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ria); }
.footer > p { color: var(--ink-muted); font-size: 14px; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .services li { grid-template-columns: 44px 1fr; }
  .services p { grid-column: 2; }
}
@media (max-width: 600px) {
  .actions { gap: 14px; }
  .login { font-size: 11px; }
  .pill { padding: 9px 14px; font-size: 14px; }
  .pill-lg { padding: 13px 22px; font-size: 15px; }
  .hero { padding-top: 36px; }
  .tabs { margin-top: 40px; }
  .tabs button { padding: 8px 10px; font-size: 13px; }
  .stage { aspect-ratio: auto; min-height: 400px; border-radius: 18px; }
  .corner { font-size: 18px; }
  .toast { display: none; }
  .steps { grid-template-columns: 1fr; }
  .sectors { gap: 8px 20px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }
