/* Deca Generator · landing */
:root {
  --navy: #0d2340;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --blue: #2f8ae4;
  --blue-2: #5aaef0;
  --cyan: #19b3d6;
  --line: #e4ebf4;
  --tint: #f2f7fd;
  --white: #fff;
  --ok: #17a673;
  --err: #d6455d;
  --radius: 22px;
  --shadow-soft: 0 1px 2px rgba(13, 35, 64, .04), 0 12px 32px -12px rgba(13, 35, 64, .12);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: #cfe6f6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Fondo: foto en segundo plano, muy difuminada y aclarada */
.bg {
  position: fixed; inset: -60px; z-index: -1;
  background: url("fondo-carretera.jpg") center / cover no-repeat;
  filter: blur(26px) saturate(1.1);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(180deg, rgba(126, 196, 236, .72), rgba(214, 235, 250, .82) 55%, rgba(240, 247, 253, .9));
}
@media (max-width: 700px) { .bg { background-image: url("fondo-carretera-sm.jpg"); } }

.page {
  max-width: 1180px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(13, 35, 64, .35);
}

/* ---------- Navegación ---------- */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 40px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand img { height: 54px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink); opacity: .8; }
.nav-links a:hover { opacity: 1; color: var(--blue); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--sans);
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 24px -8px rgba(47, 138, 228, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(47, 138, 228, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link-arrow { font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 8px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: #1f6fbf;
  background: #e8f3fd; border-radius: 999px; padding: 6px 12px;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 22px 0 18px; }
h2 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 56px 40px 72px;
}
.lead { font-size: 16.5px; color: var(--muted); max-width: 470px; margin: 0 0 30px; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.hero-devices { display: flex; gap: 18px; margin-top: 46px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-devices span { display: inline-flex; gap: 6px; align-items: center; }
.hero-devices svg { width: 18px; height: 18px; color: var(--blue); }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.grid-deco {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 25%, transparent 70%);
}
.doc-card {
  position: relative;
  width: min(330px, 86%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 40px 70px -30px rgba(13, 35, 64, .35), 0 2px 6px rgba(13, 35, 64, .05);
  transform: rotate(-2deg);
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.doc-head small { display: block; font-size: 11px; color: var(--muted); }
.doc-head b { font-size: 15px; letter-spacing: .02em; color: var(--navy); }
.status { font-size: 11px; font-weight: 600; color: var(--ok); background: #e5f7ef; border-radius: 999px; padding: 4px 10px; }
.doc-qr {
  margin: 18px auto; width: 168px; aspect-ratio: 1;
  padding: 10px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.doc-qr svg { width: 100%; height: 100%; stroke: none; fill: var(--navy); }
.doc-rows { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.doc-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.doc-rows span { color: var(--muted); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; color: var(--blue); }
.chip-a { top: 8%; right: 4%; }
.chip-a svg { color: var(--ok); }
.chip-b { top: 44%; right: 0; animation-delay: -2s; }
.chip-c { bottom: 8%; left: 2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.section { padding: 84px 40px; }
.section.tint { background: var(--tint); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.step p { color: var(--muted); margin: 0; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  font: 400 26px/1 var(--serif); color: #fff; border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 20px -8px rgba(47, 138, 228, .7);
}

/* Bento */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(228, 235, 244, .7);
}
.card p { margin: 0; }
.card-stat { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; min-height: 300px; }
.card-stat .tiles { position: absolute; top: 18px; right: 18px; display: grid; grid-template-columns: repeat(3, 54px); gap: 8px; }
.card-stat .tiles i { height: 54px; border-radius: 12px; background: linear-gradient(180deg, #f6fafe, #eaf3fc); }
.card-stat .tiles i:nth-child(5) { background: linear-gradient(180deg, #d9ecfc, #9ccdf5); }
.stat { font: 400 120px/0.9 var(--serif); color: var(--ink); letter-spacing: -.03em; }
.stat span { font-size: 40px; margin-left: 6px; color: var(--blue); }
.card-stat p { margin-top: 12px; max-width: 280px; }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; color: var(--blue);
  background: #fff; box-shadow: 0 6px 16px -6px rgba(13, 35, 64, .18), inset 0 0 0 1px var(--line);
}
.card-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-wide-text { font-size: 15.5px; }
.mini-icons { display: flex; gap: 10px; }
.mini-icons span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--muted);
  background: #fff; box-shadow: 0 6px 16px -6px rgba(13, 35, 64, .18), inset 0 0 0 1px var(--line);
}
.mini-icons span.on { color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue)); }

/* Rejilla de iconos */
.icon-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  max-width: 820px; margin: 0 auto;
}
.tile {
  aspect-ratio: 1.15; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #fbfdff, #f1f6fc);
  box-shadow: 0 10px 24px -14px rgba(13, 35, 64, .25), inset 0 0 0 1px #edf2f8;
  color: #5a6c84; font-size: 12.5px; font-weight: 500; text-align: center;
}
.tile svg { width: 28px; height: 28px; stroke-width: 1.4; }
.tile.fade { opacity: .45; box-shadow: inset 0 0 0 1px #f0f4f9; }
.tile.on {
  color: var(--navy);
  background: linear-gradient(180deg, #ffffff 0%, #cfe6fb 60%, #8fc6f3 100%);
  box-shadow: 0 18px 36px -14px rgba(47, 138, 228, .6), inset 0 0 0 2px #fff;
  transform: translateY(-4px);
}

/* Precio */
.pricing { display: flex; justify-content: center; }
.price-card {
  position: relative; overflow: hidden;
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(180deg, #3d97ea 0%, #6fb6f2 30%, #cfe6fb 52%, #ffffff 72%);
  box-shadow: 0 40px 80px -36px rgba(47, 138, 228, .7), 0 0 0 1px rgba(47, 138, 228, .12);
  isolation: isolate;
}
/* La foto vuelve a aparecer, muy difuminada, dentro de la cabecera azul */
.price-card::before {
  content: ""; position: absolute; left: -30px; right: -30px; top: -30px; height: 60%; z-index: -1;
  background: url("fondo-carretera-sm.jpg") center 30% / cover;
  filter: blur(20px);
  opacity: .28;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.price-tag { display: inline-block; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; }
.price-for { font-size: 13px; opacity: .92; margin: 12px 0 18px; max-width: 320px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.amount { font: 600 64px/1 var(--sans); letter-spacing: -.03em; }
.per { font-size: 22px; opacity: .85; }
.price-note { font-size: 12px; color: rgba(255, 255, 255, .92); margin: 8px 0 34px; }
.price-card .btn-dark { margin-bottom: 26px; }
.checks { list-style: none; padding: 0; margin: 0; color: var(--ink); font-size: 14px; }
.checks li { position: relative; padding: 7px 0 7px 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: #e8f3fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8ae4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Alta */
.signup { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.signup-text h2 { margin-top: 18px; }
.signup-text > p { color: var(--muted); margin: 0 0 22px; }
.checks-plain li { color: var(--muted); }
.form { padding: 30px; }
.row { display: grid; gap: 14px; margin-bottom: 4px; }
.row-2 { grid-template-columns: 1.4fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: block; }
.field > span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; font: 400 15px var(--sans); color: var(--ink);
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 138, 228, .14); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.err { display: block; min-height: 18px; font-size: 12px; color: var(--err); padding-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.captcha {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  background: var(--tint); border-radius: 14px; padding: 14px 14px 0; margin: 4px 0 14px;
}
.captcha-q { display: flex; gap: 10px; align-items: center; padding-top: 4px; }
.captcha-q svg { color: var(--blue); }
.captcha-q small { display: block; font-size: 11.5px; color: var(--muted); }
.captcha-q b { font-size: 14.5px; }
.captcha-a { width: 130px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); }
.check a { color: var(--blue); }
.form .btn-block { margin-top: 8px; padding: 16px; font-size: 15px; }
.form-msg { margin: 14px 0 0; font-size: 14px; text-align: center; min-height: 1em; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.ko { color: var(--err); }
.form.done .row, .form.done .captcha, .form.done .check, .form.done .btn, .form.done .err { display: none; }
.form.done .form-msg { font-size: 16px; padding: 40px 10px; margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Pie */
.footer {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: end;
  padding: 56px 40px 30px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer-brand a { color: var(--blue); text-decoration: none; }
.footer-big { font: 400 clamp(36px, 5vw, 60px)/1 var(--serif); text-align: right; }
.footer-legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; color: var(--muted);
}
.footer-legal a { color: var(--muted); }

/* Ventana de privacidad */
.modal {
  max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: 20px; padding: 30px;
  color: var(--ink); box-shadow: 0 40px 90px -30px rgba(13, 35, 64, .5);
}
.modal::backdrop { background: rgba(13, 35, 64, .35); backdrop-filter: blur(4px); }
.modal h3 { font: 400 30px var(--serif); margin: 0 0 14px; }
.modal p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.modal b { color: var(--ink); }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: var(--tint); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); }

/* Aviso de cookies */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  max-width: 420px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(13, 35, 64, .45);
  font-size: 13.5px; color: var(--muted);
  display: none;
}
.cookies.show { display: block; }
.cookies p { margin: 0 0 14px; }
.cookies-btns { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) { .cookies { right: 16px; max-width: none; } }

/* Página de gracias */
.thanks { text-align: center; padding: 96px 40px 110px; max-width: 640px; margin: 0 auto; }
.thanks-ico {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 8px;
  border-radius: 22px; color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 16px 30px -10px rgba(47, 138, 228, .7);
}
.thanks-ico svg { width: 34px; height: 34px; stroke-width: 2.2; }
.thanks p { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
.thanks .checks { display: inline-block; text-align: left; margin-bottom: 36px; }
@media (max-width: 820px) { .thanks { padding: 64px 16px 80px; } }

/* Animación al aparecer */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual { min-height: 400px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-stat { grid-row: auto; grid-column: span 2; min-height: 240px; }
  .signup { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  .page { margin: 0; border-radius: 0; }
  .nav { padding: 12px 16px; gap: 12px; }
  .brand img { height: 38px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 40px; height: 40px;
    border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .steps { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; gap: 0; }
  .footer { grid-template-columns: 1fr; padding: 40px 16px 24px; }
  .footer-big { text-align: left; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card-stat, .card-wide { grid-column: auto; }
  .card-wide { flex-direction: column; align-items: flex-start; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .icon-grid .tile.fade { display: none; }
  .tile { font-size: 11.5px; }
  .hero-visual { min-height: 470px; }
  .chip-a { top: 0; right: 2%; }
  .chip-b { top: auto; bottom: 0; right: 2%; }
  .chip-c { bottom: 0; left: 0; display: none; }
  .stat { font-size: 96px; }
  .captcha { flex-direction: column; gap: 8px; }
  .captcha-a { width: 100%; }
  .footer-legal { flex-direction: column; }
}
