:root {
  --navy: #123a5e;
  --navy-hi: #1c5182;
  --navy-lo: #0d2942;
  --green: #0f8a4f;
  --green-hi: #0c7543;
  --red: #e0393e;
  --ink: #1b2431;
  --muted: #5a6b7d;
  --body: #40505f;
  --line: #dfe5ec;
  --bg: #f4f6f9;
  --card: #ffffff;
  --bg-alt: #f7f9fb;
  --bg-alt2: #eef3f8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 34, 55, 0.08), 0 6px 18px rgba(16, 34, 55, 0.07);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--navy-hi);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 8px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.58rem);
  font-weight: 700;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  word-break: break-all;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 14px;
  color: #fff;
}

/* Cabecera, como lumbre.lat */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-lo);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.2px;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: #dbe8f4;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 7px;
}

.site-nav a:hover {
  background: var(--navy-hi);
  color: #fff;
  text-decoration: none;
}

.baner {
  background: var(--navy);
  color: #cfe1f2;
  font-size: 0.85rem;
}

.baner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 9px;
}

.baner span {
  color: #94b6d3;
}

.baner a {
  color: #fff;
}

.baner a:hover {
  color: #fff;
}

/* Botones, como lumbre.lat */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--green-hi);
  color: #fff;
  text-decoration: none;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-light {
  background: var(--card);
  border-color: var(--card);
  color: var(--navy);
}

.btn-light:hover {
  background: #eaf1f8;
  border-color: #eaf1f8;
  color: var(--navy-lo);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy-hi);
  outline-offset: 2px;
  border-radius: 5px;
}

.site-header a:focus-visible,
.download a:focus-visible {
  outline-color: #ffb648;
}

/* Hero, degradado azul marino */

.hero {
  background: linear-gradient(120deg, var(--navy-lo), var(--navy) 60%, var(--navy-hi));
  color: #fff;
  padding: clamp(34px, 5vw, 46px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow-light {
  color: #9fd8b8;
}

.hero .eyebrow {
  color: #9fd8b8;
}

.hero h1 {
  color: #fff;
  margin-bottom: 10px;
}

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

.lead {
  color: #d6e6f4;
  font-size: 1.04rem;
  max-width: 34em;
  margin-bottom: 20px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #b9d2e7;
}

.hero-meta li {
  padding: 0;
  border: 0;
  background: none;
}

.hero-meta li + li::before {
  content: "·";
  margin-right: 14px;
  color: #6f8fae;
}

.small-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.hero .small-note {
  color: #a9c4dd;
}

.hero .visual-note {
  color: var(--muted);
}

/* Tarjeta del hero y móvil ilustrativo */

.hero-visual {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  padding: 16px 12px 0;
  border-radius: 30px;
  background: var(--bg);
  border: 7px solid var(--navy-lo);
  box-shadow: 0 10px 26px rgba(16, 34, 55, 0.18);
  overflow: hidden;
  color: var(--ink);
}

.phone-notch {
  width: 80px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--navy-lo);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  color: var(--ink);
}

.app-kicker {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-top strong {
  font-size: 1.06rem;
  color: var(--navy);
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-hi);
  background: #eef8f1;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.app-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.app-row strong {
  font-size: 1.18rem;
  color: var(--navy);
}

.app-row span {
  font-size: 0.82rem;
  color: var(--body);
}

.app-next small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.app-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.app-actions span {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 6px 3px;
  border-radius: 5px;
  background: var(--bg-alt2);
  color: var(--navy);
}

.app-actions span:first-child {
  background: var(--green);
  color: #fff;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  padding: 11px 8px;
}

.app-stats .num {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
}

.app-stats small {
  display: block;
  font-size: 0.56rem;
  line-height: 1.3;
  color: var(--muted);
}

.app-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 11px 12px 12px;
  margin-bottom: 0;
}

.app-list > p {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.person:first-of-type {
  border-top: 0;
}

.person .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}

.person div {
  min-width: 0;
}

.person strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.person small {
  display: block;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--muted);
}

.pill {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--green-hi);
  background: #eef8f1;
  border-radius: 999px;
  padding: 3px 7px;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 0 -12px;
  padding: 8px 4px 10px;
  background: var(--card);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 600;
  text-align: center;
}

.app-nav .active {
  color: var(--navy);
}

.app-nav b {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.5rem;
  vertical-align: 1px;
}

.visual-note {
  font-size: 0.74rem;
  margin: 0;
}

/* Franja de principios */

.trust {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
}

.trust svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Secciones */

.section {
  padding: 40px 0;
}

.section-head {
  max-width: 76ch;
  margin-bottom: 22px;
}

.section-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--navy-hi);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--navy-hi), var(--navy));
}

.card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--body);
}

/* Registro de visita */

.split-section {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
  align-items: center;
}

.checks {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--body);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.note-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
}

.note-card .formula {
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}

.note-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Instalación */

.install {
  background: var(--bg);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 {
  color: var(--navy);
}

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

.notice {
  max-width: 860px;
  padding: 12px 16px;
  background: #fffaf3;
  border: 1px solid #f0cf9a;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #7a4a12;
}

.notice strong {
  color: #5e370b;
}

/* Banda de descarga */

.download {
  background: linear-gradient(120deg, var(--navy-lo), var(--navy) 62%, var(--navy-hi));
  color: #fff;
  padding: 40px 0;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.download h2 {
  color: #fff;
  margin-bottom: 6px;
}

.download-meta {
  font-size: 0.9rem;
  color: #cfe1f2;
  margin-bottom: 8px;
}

.small-note-light {
  color: #a9c4dd;
  max-width: 48ch;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.checksum {
  font-size: 0.78rem;
  color: #b9d2e7;
  max-width: 100%;
}

.checksum summary {
  cursor: pointer;
  color: #dbe8f4;
  padding: 2px 0;
}

.checksum code {
  display: block;
  max-width: 330px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #eaf1f8;
  font-size: 0.72rem;
}

/* Privacidad */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.privacy-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privacy-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--body);
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

/* Preguntas frecuentes */

.faq {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.faq details {
  max-width: 860px;
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 15px 34px 15px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy-hi);
}

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

.faq details p {
  margin: 0 0 15px;
  padding-right: 30px;
  font-size: 0.93rem;
  color: var(--body);
}

/* Llamada final */

.final-cta {
  padding: 40px 0;
}

.final-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-lo), var(--navy) 60%, var(--navy-hi));
  color: #fff;
}

.final-box h2 {
  color: #fff;
  margin-bottom: 6px;
}

.final-box p {
  margin: 0;
  color: #d6e6f4;
}

.final-box .eyebrow {
  color: #9fd8b8;
}

/* Pie */

.site-footer {
  background: var(--navy-lo);
  color: #b9cfe3;
  font-size: 0.86rem;
  margin-top: 10px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 26px;
  align-items: center;
  padding-block: 26px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.site-footer a {
  color: #cfe1f2;
}

.site-footer a:hover {
  color: #fff;
}

.footer-small {
  color: #8ba7c0;
  font-size: 0.78rem;
}

/* Adaptación */

@media (max-width: 940px) {
  .hero-grid,
  .split-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 28px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .download-box,
  .final-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions,
  .download-actions .btn {
    width: 100%;
  }

  .checksum code {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .header-inner > .btn {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta li + li::before {
    display: none;
  }

  .baner-inner {
    font-size: 0.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .baner,
  .hero-visual,
  .download-actions,
  .final-cta,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }
}
