:root {
  /* Light "soft blue / airy" theme — real app blue #004594 + steel #8CABCF */
  --bg: #eaf1f9;
  --bg-2: #e0ebf6;
  --panel: #ffffff;
  --brand: #004594;
  --brand-2: #0059A3;
  --steel: #8CABCF;
  --steel-2: #4570A1;
  --brand-glow: rgba(0, 69, 148, 0.20);
  --text: #14293f;
  --muted: #4a5f78;
  --faint: #7f90a6;
  --border: rgba(0, 69, 148, 0.14);
  --border-bright: rgba(0, 69, 148, 0.32);
  --radius: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Airy blue atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(950px 640px at 80% -10%, rgba(0, 69, 148, 0.14), transparent 60%),
    radial-gradient(760px 540px at 5% 2%, rgba(140, 171, 207, 0.35), transparent 58%),
    radial-gradient(1100px 820px at 50% 115%, rgba(69, 112, 161, 0.12), transparent 62%);
}

/* Soft dotted texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,69,148,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 30%, transparent 78%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(234, 241, 249, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0,69,148,0.25); }
.nav-links { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn-primary { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #0059A3, #004594);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 30px -10px rgba(0,69,148,0.5), 0 0 0 1px rgba(0,69,148,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 20px 42px -12px rgba(0,69,148,0.6), 0 0 0 1px rgba(0,69,148,0.38); }
.btn-ghost {
  color: var(--brand);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #ffffff; transform: translateY(-2px); border-color: var(--steel-2); }
.header-cta { padding: 10px 18px; font-size: 14.5px; }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0,69,148,0.06);
  border: 1px solid var(--border);
}
.lang-switch button {
  appearance: none; -webkit-appearance: none;
  border: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--muted);
  background: transparent;
  padding: 6px 11px;
  border-radius: 7px;
  line-height: 1;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-switch button:hover { color: var(--brand); }
.lang-switch button.active {
  color: #fff;
  background: linear-gradient(180deg, #0059A3, #004594);
  box-shadow: 0 6px 16px -8px var(--brand-glow);
}

.menu-toggle { display: none; background: none; border: 1px solid var(--border-bright); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--brand); }
.menu-toggle svg { display: block; }

/* ---------- Section primitives ---------- */
section { position: relative; z-index: 2; padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,69,148,0.22);
  margin-bottom: 22px;
}
.eyebrow::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--brand); box-shadow: 0 0 10px 2px var(--brand-glow); }

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.14; font-weight: 800; padding-bottom: 0.04em; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.grad-text {
  background: linear-gradient(160deg, #002b48 20%, #004594 70%, #4570A1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding-top: 90px; padding-bottom: 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 900;
  margin-bottom: 24px;
}
.hero .sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn { padding: 15px 26px; font-size: 16px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 8px; }

.qr-block {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 26px 54px -32px rgba(0,69,148,0.4);
}
.qr-block img { width: 140px; height: 140px; border-radius: 12px; background:#fff; padding: 8px; box-shadow: 0 0 0 1px var(--border); }
.qr-block .qr-text { font-size: 14px; color: var(--muted); max-width: 280px; }
.qr-block .qr-text strong { color: var(--text); display:block; font-size:15px; margin-bottom:4px; }

/* ---------- Phone mockup ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stage::before {
  content:"";
  position: absolute;
  width: 470px; height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,171,207,0.55), rgba(0,69,148,0.12) 45%, transparent 68%);
  filter: blur(36px);
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:.65; transform: scale(1);} 50%{ opacity:.95; transform: scale(1.06);} }

.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 612px;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(160deg, #ffffff, #cfdff0);
  box-shadow:
    0 0 0 1px rgba(0,69,148,0.12),
    0 0 0 8px rgba(255,255,255,0.85),
    0 44px 96px -32px rgba(0,69,148,0.4),
    0 0 90px -22px var(--brand-glow);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  overflow: hidden;
  border: 1px solid rgba(0,69,148,0.08);
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #dbe6f2; border-radius: 16px; z-index: 5;
}
.screen-top {
  padding: 56px 22px 18px;
  background: linear-gradient(180deg, rgba(0,69,148,0.14), transparent);
}
.screen-top .small { font-size: 12px; color: var(--brand); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.screen-top h3 { font-size: 30px; margin-top: 4px; font-weight: 800; color: var(--text); }
.screen-body { padding: 6px 18px 18px; flex: 1; overflow: hidden; }
.word-card {
  background: linear-gradient(160deg, rgba(140,171,207,0.22), #ffffff);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 40px -24px rgba(0,69,148,0.5);
}
.word-card .wtitle { display:flex; align-items:center; justify-content: space-between; }
.word-card .wtitle b { font-size: 18px; color: var(--text); }
.word-card .star { color: #f5a623; font-size: 16px; }
.word-card p { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.mini-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.mini-row { height: 44px; border-radius: 13px; background: rgba(140,171,207,0.14); border: 1px solid var(--border); display:flex; align-items:center; padding: 0 14px; gap: 10px; }
.mini-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand-glow); }
.mini-bar { height: 8px; border-radius: 6px; background: rgba(0,69,148,0.16); flex: 1; }
.screen-cta {
  margin: 4px 18px 22px;
  text-align: center;
  padding: 14px;
  border-radius: 15px;
  font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, #0059A3, #004594);
  box-shadow: 0 10px 26px -10px rgba(0,69,148,0.5);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 44px -34px rgba(0,69,148,0.32);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
  content:"";
  position:absolute; inset:0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, rgba(0,69,148,0.5), rgba(140,171,207,0.2) 45%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-bright); box-shadow: 0 32px 62px -32px rgba(0,69,148,0.4); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0,69,148,0.16), rgba(140,171,207,0.16));
  border: 1px solid rgba(0,69,148,0.22);
  color: var(--brand);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -12px var(--brand-glow);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 9px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- How ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -36px rgba(0,69,148,0.3);
}
.step .num {
  font-size: 46px; font-weight: 900;
  background: linear-gradient(180deg, #004594, #8CABCF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; max-width: 980px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: 28px; }
.carousel-track { display: flex; transition: transform .5s var(--ease); }
.slide { min-width: 100%; display: flex; justify-content: center; padding: 10px 0; }
.slide img {
  width: 280px; max-width: 70%;
  height: auto;
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 44px 96px -36px rgba(0,69,148,0.45), 0 0 70px -30px var(--brand-glow);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-bright);
  color: var(--brand); cursor: pointer; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -12px rgba(0,69,148,0.42);
  transition: background .2s, transform .2s, color .2s;
}
.carousel-btn:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.07); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,69,148,0.22); border: none; cursor: pointer;
  transition: all .25s var(--ease);
}
.dot.active { background: var(--brand); width: 28px; border-radius: 6px; box-shadow: 0 0 12px var(--brand-glow); }

/* ---------- Privacy ---------- */
.privacy-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: 56px 44px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(140,171,207,0.28), #ffffff);
  border: 1px solid var(--border-bright);
  box-shadow: 0 44px 104px -52px rgba(0,69,148,0.5);
}
.privacy-card .lock {
  width: 70px; height: 70px; margin: 0 auto 26px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(0,69,148,0.18), rgba(140,171,207,0.2));
  border: 1px solid rgba(0,69,148,0.3);
  color: var(--brand);
  box-shadow: 0 14px 40px -16px var(--brand-glow);
}
.privacy-card h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.privacy-card p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 16px 38px -36px rgba(0,69,148,0.32);
  transition: border-color .25s;
}
.faq-item[open] { border-color: var(--border-bright); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s var(--ease); color: var(--brand); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta-final {
  text-align: center;
  max-width: 880px; margin: 0 auto;
  padding: 70px 44px;
  border-radius: 32px;
  position: relative;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(0,69,148,0.16), transparent 70%),
    linear-gradient(160deg, #ffffff, #dfeaf6);
  border: 1px solid var(--border-bright);
  box-shadow: 0 54px 124px -56px rgba(0,69,148,0.55);
  overflow: hidden;
}
.cta-final h2 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 16px; }
.cta-final p { color: var(--muted); font-size: 19px; margin-bottom: 32px; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-inner .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 16px; }
footer .muted { color: var(--faint); font-size: 14px; }
footer a.link { color: var(--brand); font-size: 14px; }
footer a.link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note, .qr-block { justify-content: center; }
  .hero-note { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  /* El selector de idioma sigue visible y se alinea a la derecha */
  .lang-switch { margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(234,241,249,0.98);
    backdrop-filter: blur(18px);
    padding: 20px 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open .header-cta { width: 100%; }
  section { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .qr-block { flex-direction: column; text-align: center; }
  .qr-block .qr-text { max-width: none; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
}
