/* TuMicro — estilo de la web (mismos colores que la app) */
:root {
  --blue: #007AFF;
  --blue-dark: #0060CC;
  --blue-soft: #E8F2FF;
  --yellow: #FFD60A;
  --green: #30D158;
  --purple: #AF52DE;
  --red: #FF6B6B;
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --text: #0B0B0F;
  --text-2: #3C3C43;
  --text-3: #8E8E93;
  --stroke: rgba(0, 0, 0, .08);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 30px 60px -20px rgba(0, 40, 120, .35);
  --radius: 22px;
  --display: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #0A84FF;
    --blue-dark: #3D9BFF;
    --blue-soft: #0F2340;
    --bg: #000000;
    --surface: #1C1C1E;
    --text: #F5F5F7;
    --text-2: #C7C7CC;
    --text-3: #8E8E93;
    --stroke: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Barra superior ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.25rem var(--display); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--body); text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(0,122,255,.6); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--stroke); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px;
  background: #000; color: #fff; border-radius: 14px; text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.18); transition: transform .15s;
}
.play:hover { transform: translateY(-2px); }
.play svg { width: 28px; height: 28px; flex: none; }
.play small { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.play strong { display: block; font-size: 1.2rem; line-height: 1.15; font-weight: 600; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,122,255,.22), transparent 70%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: .85rem; margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,214,10,.3); }
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: 1.2rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--text-3); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

/* ── Teléfono ── */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.5; margin: 0 auto;
  border-radius: 46px; padding: 10px; background: #111;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2e;
}
.phone .screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--surface); position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone::after { /* cámara */
  content: ""; position: absolute; top: 22px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1d1d20;
}
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone.back {
  position: absolute; width: min(250px, 62vw); transform: translate(-58%, 40px) rotate(-8deg); opacity: .95; z-index: 0;
}
.hero-phones .phone.front { z-index: 1; transform: translateX(18%); }
@media (max-width: 860px) {
  .hero-phones .phone.back { display: none; }
  .hero-phones .phone.front { transform: none; }
}
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem;
}
.float-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.float-chip.c1 { right: 0; top: 18%; }
.float-chip.c2 { left: 4%; bottom: 14%; }
@media (max-width: 860px) { .float-chip { display: none; } }

/* ── Cifras ── */
.stats { padding: 28px 0 8px; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font: 700 2rem var(--display); color: var(--blue); }
.stat span { color: var(--text-2); font-size: .95rem; }
@media (max-width: 760px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Secciones ── */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { font-size: 1.1rem; }
.kicker { display: block; color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Funciones destacadas (fila alternada) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .blob {
  position: absolute; inset: 10% 5%; border-radius: 40% 60% 55% 45%; filter: blur(4px); opacity: .9; z-index: 0;
}
.feature-media .phone { z-index: 1; width: min(270px, 70vw); }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.feature-icon svg { width: 28px; height: 28px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23007AFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; text-align: left; }
  .feature.flip .feature-media { order: 0; }
}

/* Tarjetas de más funciones */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .feature-icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; }
.card .feature-icon svg { width: 24px; height: 24px; }
.card p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Galería horizontal de capturas */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 20px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 230px; }
.gallery figcaption { margin-top: 14px; font-weight: 600; color: var(--text-2); font-size: .95rem; }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 700 1.1rem var(--display); margin-bottom: 14px;
}
.step p { margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Llamado final */
.cta-band {
  background: linear-gradient(135deg, #007AFF 0%, #0A5BD8 60%, #2B3FD4 100%); color: #fff;
  border-radius: 32px; padding: 56px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 214, 10, .25);
}
.cta-band h2, .cta-band p { color: #fff; position: relative; z-index: 1; }
.cta-band p { opacity: .9; font-size: 1.1rem; }
.cta-band .play { position: relative; z-index: 1; margin-top: 10px; }

/* Pie de página */
footer { padding: 48px 0 40px; border-top: 1px solid var(--stroke); margin-top: 72px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer ul a { color: var(--text-2); }
footer .legal { margin-top: 36px; font-size: .85rem; color: var(--text-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* ── Páginas de texto (privacidad, términos, acerca) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.doc .meta { color: var(--text-3); font-size: .95rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .box { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin: 20px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.doc th { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { padding: 6px 12px; background: var(--surface); border-radius: 999px; font-size: .85rem; box-shadow: var(--shadow); }

/* ── Páginas para compartir (línea / ruta) ── */
.share { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }
.share-card { background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.share-photo { aspect-ratio: 16 / 10; background: var(--blue-soft); position: relative; }
.share-photo img { width: 100%; height: 100%; object-fit: cover; }
.share-badge {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.share-body { padding: 22px 22px 26px; }
.share-body h1 { font-size: 1.8rem; margin-bottom: 4px; }
.share-sub { color: var(--text-3); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; font-weight: 600; color: var(--text-2); }
.route-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--stroke); margin-bottom: 18px; }
.share-actions { display: grid; gap: 10px; }
.share-actions .btn { width: 100%; padding: 15px; }
.share-hint { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 14px; }
#map { height: 320px; border-radius: 18px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--stroke); z-index: 0; }
.od { display: grid; gap: 10px; margin-bottom: 18px; }
.od div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.od i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.code-pill { font-family: ui-monospace, "SF Mono", Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 8px; font-size: .9em; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
