/* Naui Maps · sitio. Sistema «D · Isla»: violeta, vidrio oscuro, Inter. */
:root {
  --violet: #7f03f3;
  --violet-deep: #6e00db;
  --violet-bright: #8a2bff;
  --accent: #a655ff;
  --ink: #0e0a16;
  --ink-2: #160f22;
  --surface-solid: rgba(26, 19, 36, 0.97);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #e4def0;
  --text-3: #c9bfdc;
  --link: #c08bff;
  --glass: rgba(12, 10, 20, 0.44);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --radius-pill: 999px;
  --radius-sheet: 40px;
  --radius-card: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  /* Anticopia: el texto no se selecciona salvo campos y .allow-select. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable], .allow-select { -webkit-user-select: text; user-select: text; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }

::selection { background: var(--violet-bright); color: #fff; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #e0c6ff; }

html { scrollbar-color: #4a2d78 var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #4a2d78; border-radius: 10px; border: 2px solid var(--ink); }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  width: 1em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Vidrio: blur 14 + saturate 200 %, borde con brillo arriba a la izquierda. */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(200%);
  backdrop-filter: blur(14px) saturate(200%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34),
    inset -1px -1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.4);
}
.glass::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(110% 60% at 22% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 58%);
}
.glass-solid { background: var(--surface-solid); border: 1px solid #2e2440; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }

@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass::before { display: none; }
}

/* Fondo: un resplandor violeta que respira detrás de todo. */
.aura {
  position: fixed; inset: -20vh -20vw auto; height: 140vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 38% at 78% 14%, rgba(138, 43, 255, 0.55), transparent 70%),
    radial-gradient(40% 34% at 12% 46%, rgba(110, 0, 219, 0.42), transparent 72%),
    radial-gradient(60% 40% at 50% 100%, rgba(127, 3, 243, 0.22), transparent 70%),
    var(--ink);
}
.aura-soft { opacity: 0.6; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 20; padding: 12px var(--gutter) 0; }
.top-in {
  max-width: var(--max); margin: 0 auto; height: 60px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand img { border-radius: 10px; }
.top-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: var(--radius-pill); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--violet); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.lang:hover { background: var(--violet-bright); color: #fff; }
.lang:active { transform: scale(0.95); }
@media (max-width: 520px) { .nav-link[href="#funciones"] { display: none; } .brand span { font-size: 17px; } }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
h1 {
  font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 22px; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34ch; margin: 0 0 32px; text-wrap: pretty; }
.vehicles { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--text-3); font-weight: 600; font-size: 15px; }
.veh { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; }
.vehicles > span:last-child { margin-left: 6px; }

.soon {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(127, 3, 243, 0.35);
}
.soon-icons { display: inline-flex; gap: 2px; color: var(--violet); }
.soon-icons .ms { font-size: 26px; }
.soon-text { display: flex; flex-direction: column; line-height: 1.15; }
.soon-text small { font-size: 13px; font-weight: 600; color: #5a4f6e; }
.soon-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.hero-stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; opacity: 0.7; }
.route circle { fill: var(--ink); stroke: #fff; stroke-width: 4; }
.hero-phone { position: relative; z-index: 1; will-change: transform; }

.phone {
  margin: 0; width: min(300px, 72vw); border-radius: 44px; padding: 10px; background: #07050b;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px rgba(20, 0, 50, 0.6), 0 12px 24px rgba(0, 0, 0, 0.4);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 720 / 1462; object-fit: cover; object-position: top; background: var(--ink-2); }
.phone-short img { aspect-ratio: 720 / 1100; }
.phone-search img { aspect-ratio: 720 / 882; }
.phone-guide img { aspect-ratio: 390 / 844; }
.phone-hero { width: min(320px, 74vw); transform: rotate(-3deg); }

.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 12px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; white-space: nowrap; will-change: transform;
}
.chip .ms { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; background: var(--violet); color: #fff; }
.chip-a { top: 38%; left: -4%; }
.chip-b { bottom: 12%; right: -4%; }
.chip-b .ms { background: #e5484d; }

/* Funciones */
.features { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vw, 96px); }
.section-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; margin: 0 0 clamp(40px, 6vw, 72px); text-wrap: balance; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 96px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
.feature-flip { grid-template-columns: auto minmax(0, 1fr); }
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin: 18px 0 12px; font-weight: 800; text-wrap: balance; }
.feature-copy p { color: var(--text-2); font-size: 18px; max-width: 38ch; margin: 0; }
.badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(160deg, var(--violet-bright), var(--violet-deep)); box-shadow: 0 10px 24px rgba(127, 3, 243, 0.4); }
.badge .ms { font-size: 28px; }
.feature .phone { width: min(280px, 70vw); }

/* Y además */
.more { padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.more-panel { max-width: var(--max); margin: 0 auto; border-radius: var(--radius-sheet); padding: clamp(28px, 5vw, 64px); }
.more-panel h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 32px; font-weight: 800; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.more-item { display: flex; gap: 16px; align-items: flex-start; }
.more-item > .ms { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(166, 85, 255, 0.18); color: #e0c6ff; }
.more-item h3 { margin: 4px 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.more-item p { margin: 0; color: var(--text-3); font-size: 16px; }

/* Cierre */
.cta { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 10vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 24px; margin-bottom: 20px; box-shadow: 0 18px 40px rgba(127, 3, 243, 0.45); }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 14px; font-weight: 800; }
.cta p { color: var(--text-2); margin: 0 0 28px; max-width: 42ch; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: rgba(8, 6, 14, 0.7); padding: 48px var(--gutter) 28px; }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { border-radius: 12px; }
.foot-brand p { margin: 0; color: var(--text-3); font-size: 15px; }
.foot-brand strong { color: #fff; }
.foot-h { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; font-weight: 700; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { color: var(--text-2); text-decoration: none; font-size: 15px; word-break: break-word; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.copy { max-width: var(--max); margin: 36px auto 0; color: #9d92b3; font-size: 14px; }

/* Documentos legales */
.doc-main { padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(48px, 8vw, 96px); }
.doc-card { max-width: 780px; margin: 0 auto; border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
.doc-card h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 18px 0 20px; }
.doc-card h2 { font-size: 22px; letter-spacing: -0.015em; margin: 36px 0 10px; line-height: 1.25; }
.doc-card h3 { font-size: 18px; margin: 24px 0 6px; }
.doc-card p, .doc-card li { color: var(--text-2); max-width: 70ch; overflow-wrap: anywhere; }
.doc-card ul, .doc-card ol { padding-left: 1.3em; }
.doc-card li { margin: 6px 0; }
.doc-card.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.doc-card.center img { border-radius: 22px; }
.doc-card.center .back { margin-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--link); min-height: 44px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { min-height: 480px; }
  .feature, .feature-flip { grid-template-columns: 1fr; justify-items: center; }
  .feature-flip .feature-copy { order: 0; }
  .feature-copy { justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .chip { font-size: 13px; padding: 9px 14px 9px 9px; }
  .chip .ms { width: 30px; height: 30px; font-size: 18px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .soon { padding: 10px 18px 10px 12px; }
  .foot-in { grid-template-columns: 1fr; }
}

/* Revelado al hacer scroll: sólo con JS y sin «reducir movimiento». */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .hero-copy > * { animation: rise 900ms var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 80ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 160ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 240ms; }
.js .route-line { animation: dash 2.4s linear infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: -32; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .hero-copy > * { animation: none; }
  .js .route-line { animation: none; }
  .hero-phone, .chip { transform: none !important; }
}

/* Páginas de los correos de cuenta (/auth/): un sello, una frase, una acción. */
.auth-card { max-width: 560px; padding-top: clamp(36px, 6vw, 64px); }
.auth-state { display: flex; flex-direction: column; align-items: center; }
.auth-state[hidden] { display: none; }
.auth-mark {
  display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  margin-bottom: 8px;
}
.auth-mark .ms { font-size: 44px; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.auth-ok { background: linear-gradient(160deg, var(--violet-bright), var(--violet-deep)); box-shadow: 0 14px 34px rgba(127, 3, 243, 0.45); }
.auth-bad { background: rgba(229, 72, 77, 0.16); color: #ffb4b6; box-shadow: inset 0 0 0 1.5px rgba(229, 72, 77, 0.45); }
.auth .doc-card h1 { margin: 18px 0 12px; text-wrap: balance; }
.auth-text { font-size: 18px; margin: 0 0 28px; max-width: 36ch; text-wrap: pretty; }
.auth-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100%, 340px); min-height: 60px; padding: 0 28px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 12px 30px rgba(127, 3, 243, 0.4);
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.auth-open .ms { color: var(--violet); }
.auth-open:hover { color: var(--ink); box-shadow: 0 16px 38px rgba(127, 3, 243, 0.55); }
.auth-open:active { transform: scale(0.97); }
.auth-hint { margin: 18px 0 0; font-size: 15px; color: var(--text-3); max-width: 34ch; }
.auth-support { margin: 36px 0 0; font-size: 14px; color: var(--text-3); }
.auth-support a { overflow-wrap: anywhere; }
.js .auth-state:not([hidden]) .auth-mark { animation: seal 640ms var(--ease-out) both; }
@keyframes seal { from { opacity: 0; transform: scale(0.82); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .js .auth-state .auth-mark { animation: none; } }
