:root {
  --navy: #14293F;
  --navy-deep: #0D1D2E;
  --ice: #5FB8C4;
  --ice-bright: #7FD4DE;
  --bg: #F4F6F8;
  --panel: #FFFFFF;
  --text: #223142;
  --text-soft: #5B6B7A;
  --line: #E1E7EB;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Topbar ---------- */
.topbar {
  padding: 20px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-logo { height: 44px; width: auto; }
.topbar-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-nav a { text-decoration: none; font-size: 14px; color: var(--text-soft); font-weight: 500; }
.topbar-nav a:hover { color: var(--navy); }
.topbar-cta {
  background: var(--navy);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 16px;
}
.topbar-cta:hover { background: var(--navy-deep); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 48px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle, rgba(95,184,196,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  padding: clamp(72px, 12vw, 128px) clamp(20px, 5vw, 64px) clamp(80px, 10vw, 112px);
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-bright);
  margin: 0 0 18px;
}
.hero-logo {
  display: block;
  height: 52px;
  width: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 62px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 18px;
  color: #C7D3DB;
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.btn-primary {
  display: inline-block;
  background: var(--ice);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { background: var(--ice-bright); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-weight: 500;
}
.btn-ghost:hover { border-color: #fff; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #C7D3DB;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-bright);
}

/* ---------- Layout general ---------- */
.section-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 40px;
}
/* ---------- Qué resuelve ---------- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.what-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(13, 29, 46, 0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.what-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13, 29, 46, 0.08); }
.what-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ice);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.what-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px;
}
.what-item p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Funciones clave ---------- */
.features { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  background: var(--bg);
}
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #E7F4F5;
  border-radius: 10px;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
}
.feature-item p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* ---------- Cómo funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--navy);
  color: var(--ice-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 10px 0 8px;
}
.step-item p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}
.cta-icon { width: 44px; height: 44px; flex-shrink: 0; }
.cta-text { margin: 0; font-size: 15.5px; color: var(--text-soft); }
.cta-text a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #A9B7C2; }
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-icon { height: 30px; width: auto; opacity: .95; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #A9B7C2; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0 0 0 auto; font-size: 13px; color: #6B7C89; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .what-grid, .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
}
@media (max-width: 760px) {
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---------- Páginas legales ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 64px) 96px;
}
.legal .back { display: inline-block; font-size: 14px; color: var(--text-soft); text-decoration: none; margin-bottom: 32px; }
.legal .back:hover { color: var(--navy); }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 8px;
}
.legal .updated { font-size: 14px; color: var(--text-soft); margin: 0 0 40px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 40px 0 12px;
}
.legal p, .legal li { font-size: 15.5px; color: var(--text); }
.legal ul { padding-left: 20px; }
.legal .placeholder {
  background: #FFF6E5;
  border: 1px solid #F0DBA6;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #8A6116;
}
.legal .note {
  margin-top: 48px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-soft);
}


