:root {
  --ink: #0F172A;
  --navy: #0B2239;
  --navy-2: #123A66;
  --teal: #1FA3A3;
  --teal-dark: #0E7490;
  --teal-soft: #E6F6F6;
  --slate: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F5F8FB;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 18px 40px -22px rgba(15, 23, 42, .35);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid rgba(31, 163, 163, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 820px; }

/* ---------- barra superior ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .4);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand img { border-radius: 9px; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 550;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--teal); }

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--teal));
  box-shadow: 0 12px 26px -14px rgba(18, 58, 102, .8);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  color: #E2E8F0;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .55);
}

.btn-light:hover { filter: brightness(.97); }

.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #E8F1F8;
  background:
    radial-gradient(900px 460px at 8% -10%, rgba(31, 163, 163, .38), transparent 62%),
    radial-gradient(820px 460px at 96% 8%, rgba(37, 99, 235, .30), transparent 60%),
    linear-gradient(155deg, #071A2B 0%, #0B2239 46%, #0D3554 100%);
  padding: 72px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #CBE6E6;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46D6C4;
  box-shadow: 0 0 0 4px rgba(70, 214, 196, .18);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 750;
  margin-bottom: .32em;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: #6FE3D8;
}

.lead {
  max-width: 56ch;
  color: #C6D7E5;
  font-size: 1.06rem;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  color: #8FA9BF;
  font-size: .84rem;
  margin: 0;
}

.hero-visual { position: relative; }

.shot-frame {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}

.shot-frame img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.float-card {
  position: absolute;
  right: -18px;
  bottom: -42px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 318px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .6);
}

.float-card img {
  width: 96px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.float-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.float-card strong { font-size: .88rem; line-height: 1.3; }
.float-card span { font-size: .76rem; color: var(--muted); line-height: 1.3; }

/* ---------- franja de datos ---------- */

.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.stat strong {
  display: block;
  font-size: 1.32rem;
  letter-spacing: -.02em;
  color: var(--navy-2);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.4;
}

/* ---------- secciones ---------- */

.section {
  padding: 88px 0;
  scroll-margin-top: 84px;
}

.section-alt { background: var(--bg); }

.section-head {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.eyebrow.light { color: #6FE3D8; }

.section-head h2,
.split h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 740;
}

.sub {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 64ch;
}

.section-head .sub { margin-left: auto; margin-right: auto; }

/* ---------- tarjetas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #CFE6E6;
  box-shadow: var(--shadow-md);
}

.card h3 { font-size: 1.06rem; margin-bottom: .35em; }

.card p { margin: 0; color: var(--slate); font-size: .94rem; line-height: 1.55; }

.card-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

/* ---------- dos columnas ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.split-reverse { grid-template-columns: .95fr 1.05fr; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #D7E2EE;
  background: #fff;
  color: var(--slate);
  font-size: .82rem;
  font-weight: 550;
}

.note { color: var(--muted); font-size: .86rem; }

.map-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  max-width: 460px;
  justify-self: center;
}

.map-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.map-pair img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.map-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 2px; }
.map-card strong { font-size: .94rem; }
.map-card span { color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* ---------- pasos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--teal));
}

.steps h3 { font-size: 1.06rem; }

.steps p { margin: 0; color: var(--slate); font-size: .94rem; }

.steps-note {
  margin: 28px auto 0;
  max-width: 66ch;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- requisitos ---------- */

.req-card {
  padding: 34px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.req-card h2 { font-size: 1.6rem; }

.check {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.check li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid #EEF3F8;
  color: var(--slate);
}

.check li:last-child { border-bottom: 0; }

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.check li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}

/* ---------- descarga ---------- */

.download-card {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 24px;
  color: #E8F1F8;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(31, 163, 163, .45), transparent 62%),
    linear-gradient(135deg, #081D30, #0B2B47 55%, #0E4A5E);
  box-shadow: 0 40px 80px -46px rgba(11, 34, 57, .95);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.download-head img { border-radius: 16px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7); }

.download-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .18em; color: #fff; }

.download-head p { margin: 0; color: #B9CDDE; font-size: .92rem; }

.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.download-actions p { margin: 0; color: #9FB8CB; font-size: .82rem; max-width: 34ch; }

.hash {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #8FA9BF;
  font-size: .78rem;
}

.hash span { font-weight: 700; letter-spacing: .08em; }

.hash code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: .76rem;
  color: #C6D7E5;
  word-break: break-all;
}

/* ---------- preguntas ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease;
}

details[open] summary::after { content: "−"; }

details[open] summary { color: var(--teal-dark); }

details p { color: var(--slate); font-size: .95rem; padding-right: 40px; margin: 0 0 18px; }

/* ---------- aviso ---------- */

.aviso {
  padding: 56px 0 64px;
  background: #F1F5F9;
  border-top: 1px solid var(--line);
}

.aviso h2 { font-size: 1.15rem; }

.aviso p { color: var(--muted); font-size: .87rem; }

/* ---------- pie ---------- */

.footer {
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer .brand { font-weight: 650; font-size: .95rem; }

.footer p { margin: 0; color: var(--muted); font-size: .84rem; }

.footer nav { display: flex; gap: 18px; margin-left: auto; }

.footer nav a { color: var(--slate); text-decoration: none; font-size: .86rem; }

.footer nav a:hover { color: var(--teal-dark); }

/* ---------- adaptación ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 104px; }
  .hero-visual { max-width: 760px; }
  .float-card { right: 12px; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; gap: 12px; }
  .hero { padding: 52px 0 88px; }
  .float-card { position: relative; right: auto; bottom: auto; margin: 16px auto 0; width: 100%; max-width: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .download-card { padding: 30px 24px; border-radius: 18px; }
  .download-head { flex-direction: column; align-items: flex-start; }
  .download-actions .btn { width: 100%; }
  .footer nav { margin-left: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .topbar-inner { gap: 8px; min-height: 62px; }
  .brand { font-size: .92rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .btn-sm { padding: 8px 12px; font-size: .82rem; }
  .hero-actions .btn { width: 100%; }
  .map-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
