/* MiMailo — web de marketing. Sin dependencias: CSS + JS propio. */
:root {
  --bg: #fbfbfd;
  --bg-2: #f3f2f8;
  --card: #ffffff;
  --text: #0f0d1a;
  --muted: #5d5a6e;
  --faint: #8e8b9e;
  --line: rgba(20, 16, 40, 0.09);
  --accent: #6a44f2;
  --accent-2: #3d7bff;
  --accent-soft: rgba(106, 68, 242, 0.1);
  --green: #1fae4b;
  --orange: #f08c00;
  --red: #e5372b;
  --blue: #007aff;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --pink: #ff2d55;
  --cyan: #32ade6;
  --gray: #8e8e93;
  --purple: #af52de;
  --shadow: 0 1px 2px rgba(20, 16, 40, 0.04), 0 12px 40px -12px rgba(20, 16, 40, 0.18);
  --shadow-lg: 0 2px 6px rgba(20, 16, 40, 0.05), 0 40px 80px -24px rgba(40, 20, 120, 0.28);
  --radius: 20px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a12;
    --bg-2: #12101c;
    --card: #16141f;
    --text: #f3f2f8;
    --muted: #a7a3b8;
    --faint: #75718a;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #8b6cf6;
    --accent-2: #5a8fff;
    --accent-soft: rgba(139, 108, 246, 0.14);
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -8px rgba(106, 68, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(106, 68, 242, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-ghost { background: var(--card); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .icon { width: 17px; height: 17px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(40, 20, 120, 0.2); }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open { background: var(--bg); border-color: var(--line); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .nav-cta .btn-primary { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob.b1 { width: 560px; height: 560px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(106, 68, 242, 0.55), transparent 70%); }
.blob.b2 { width: 520px; height: 520px; right: -160px; top: 40px; background: radial-gradient(circle, rgba(61, 123, 255, 0.45), transparent 70%); animation-delay: -6s; }
.blob.b3 { width: 420px; height: 420px; left: 40%; top: 380px; background: radial-gradient(circle, rgba(255, 45, 85, 0.22), transparent 70%); animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-30px, 30px) scale(0.96); }
}
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 120px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); box-shadow: var(--shadow);
}
.pill b { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(44px, 7vw, 78px); font-weight: 800; margin: 22px 0 22px; }
h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, #ff2d78 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { height: 52px; padding: 0 26px; font-size: 16px; }
.hero-note { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--green); width: 16px; height: 16px; }

/* ---------- Maqueta de la app (hero) ---------- */
.mock {
  position: relative; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .search {
  margin-left: 14px; flex: 1; height: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12.5px; color: var(--faint);
}
.mock-bar .search .icon { width: 13px; height: 13px; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 430px; }
.mock-side { border-right: 1px solid var(--line); padding: 12px 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.mock-side div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--muted); }
.mock-side div.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-side .icon { width: 15px; height: 15px; }
.mock-side .n { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mock-side .sep { height: 1px; padding: 0; margin: 8px 6px; background: var(--line); }
.mock-list { position: relative; padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

.mail {
  position: relative; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent;
  display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; align-items: start;
  animation: mailIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.mail.hl { background: var(--bg-2); border-color: var(--line); }
@keyframes mailIn { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
.mail .av {
  grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.mail .who { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .time { font-size: 12px; color: var(--faint); }
.mail .subj { grid-column: 2 / 4; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .ai {
  grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; min-height: 19px;
}
.mail .ai .icon { color: var(--accent); width: 13px; height: 13px; margin-top: 3px; }
.mail .ai .txt::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.mail .ai .txt.done::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c);
}
.chip .icon { width: 12px; height: 12px; }
.mail .chips { grid-column: 2 / 4; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.chip.pop { animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }

.float-card {
  position: absolute; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 13px;
}
.float-card.inv { right: -28px; bottom: 34px; width: 240px; animation: bob 6s ease-in-out infinite; }
.float-card.alert { left: -34px; top: 120px; width: 220px; animation: bob 7s ease-in-out infinite -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 1180px) { .float-card.inv { right: 10px; } .float-card.alert { left: 10px; } }
@media (max-width: 560px) { .float-card { display: none; } }
.float-card .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.float-card .amt { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; }
.checks li { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.checks .icon { width: 14px; height: 14px; color: var(--green); }
.ic-badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.ic-badge .icon { width: 15px; height: 15px; }

/* ---------- Franja ---------- */
.strip { padding: 26px 0 10px; }
.strip p { text-align: center; color: var(--faint); font-size: 14px; margin: 0 0 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { height: 36px; padding: 0 16px; font-size: 14px; gap: 8px; }
.marquee .chip .icon { width: 16px; height: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: 120px 0; }
@media (max-width: 640px) { .section { padding: 84px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow .icon { width: 16px; height: 16px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; margin: 18px 0 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate;
  transition: transform 0.3s, border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 3; }
.card.xl { grid-column: span 4; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }
.card .ic-badge { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px; }
.card .ic-badge .icon { width: 21px; height: 21px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .card, .card.wide, .card.xl { grid-column: span 1; } .card.xl { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card.xl { grid-column: span 1; } }
.card-visual { margin-top: 22px; }
.summary-demo { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.summary-demo .row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.summary-demo .row + .row { border-top: 1px dashed var(--line); }
.summary-demo .icon { color: var(--accent); width: 16px; height: 16px; margin-top: 3px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lang { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.lang .from { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 50%, transparent); }
.undo {
  display: flex; align-items: center; gap: 12px; background: #1c1a26; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; width: fit-content; max-width: 100%;
}
.undo b { color: #b7a6ff; }
.undo .bar { width: 60px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.undo .bar i { display: block; height: 100%; background: #b7a6ff; animation: drain 5s linear infinite; }
@keyframes drain { from { width: 100%; } to { width: 0; } }

/* Facturas: pasos */
.invoice-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.steps-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: var(--card); border: 1px solid var(--line); color: var(--faint); transition: all 0.3s; }
.step h3 { font-size: 19px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.step.on { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.step.on .num { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.inv-stage { position: sticky; top: 100px; }
.invoice {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; overflow: hidden; position: relative;
}
.invoice header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.invoice .sup { font-weight: 700; font-size: 18px; }
.invoice .meta { color: var(--faint); font-size: 13.5px; margin-top: 2px; }
.invoice .total { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; text-align: right; line-height: 1; }
.invoice .due { font-size: 13px; color: var(--orange); font-weight: 600; text-align: right; margin-top: 6px; }
.inv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 18px 0; font-size: 14px; }
.inv-fields dt { color: var(--faint); font-size: 12.5px; }
.inv-fields dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-fields .scan { position: relative; }
.inv-fields .scan dd { transition: color 0.3s, background 0.3s; border-radius: 4px; }
.invoice[data-step="2"] .scan dd { background: var(--accent-soft); color: var(--accent); }
.inv-checks { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.inv-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; opacity: 0.35; transform: translateX(-6px); transition: all 0.4s; }
.inv-check .icon { width: 18px; height: 18px; color: var(--green); }
.inv-check.warn .icon { color: var(--red); }
.invoice[data-step="3"] .inv-check, .invoice[data-step="4"] .inv-check { opacity: 1; transform: none; }
.inv-check:nth-child(2) { transition-delay: 0.08s; } .inv-check:nth-child(3) { transition-delay: 0.16s; }
.inv-check:nth-child(4) { transition-delay: 0.24s; } .inv-check:nth-child(5) { transition-delay: 0.32s; }
.inv-alert {
  margin-top: 16px; display: none; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--red) 9%, transparent); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
  font-size: 14px;
}
.invoice[data-step="4"] .inv-alert { display: flex; animation: alertIn 0.45s 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(8px); } }
.inv-alert .icon { color: var(--red); width: 20px; height: 20px; margin-top: 1px; }
.inv-alert b { display: block; }
.inv-tag { position: absolute; top: 18px; right: 18px; }
.scanline {
  position: absolute; left: 0; right: 0; height: 80px; top: -80px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(106, 68, 242, 0.12), transparent);
}
.invoice[data-step="2"] .scanline { animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }

/* Apps */
.apps { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 20px; align-items: end; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }
.device { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mac .mock-body { min-height: 300px; grid-template-columns: 170px 1fr 1.2fr; }
.mac .pane { padding: 18px; border-left: 1px solid var(--line); font-size: 13.5px; }
.mac .pane h4 { margin: 0 0 4px; font-size: 16px; }
.mac .pane .from { color: var(--faint); font-size: 12.5px; margin-bottom: 12px; }
.ai-box { border-radius: 12px; padding: 12px; background: var(--accent-soft); font-size: 13px; }
.ai-box .t { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.ai-box .icon { width: 14px; height: 14px; }
.lines { display: grid; gap: 7px; margin-top: 14px; }
.lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
@media (max-width: 860px) { .mac .mock-body { grid-template-columns: 1fr 1.2fr; } .mac .mock-side { display: none; } }
@media (max-width: 560px) { .mac .mock-body { grid-template-columns: 1fr; } .mac .pane { display: none; } }
.phone { width: min(300px, 100%); margin: 0 auto; border-radius: 44px; padding: 10px; background: #111; box-shadow: var(--shadow-lg); }
.phone .screen { border-radius: 36px; background: var(--card); overflow: hidden; min-height: 520px; }
.phone .notch { width: 96px; height: 26px; background: #111; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone .ph-head { padding: 10px 18px 6px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.phone .mail { padding: 10px 14px; border-radius: 0; border-bottom: 1px solid var(--line); animation: none; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.platforms .icon { width: 17px; height: 17px; }
.platforms em { font-style: normal; color: var(--faint); font-weight: 500; }

/* Seguridad */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-grid .card { grid-column: auto; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color 0.2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--faint); transition: transform 0.3s; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA final */
.cta-box {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 8vw, 96px) 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #8a63ff 0%, #5b3ae6 35%, #2f5bff 75%, #1d3fd6 100%);
  box-shadow: 0 40px 80px -30px rgba(80, 50, 220, 0.6);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, 0.82); font-size: 19px; max-width: 560px; margin: 18px auto 32px; }
.cta-box .btn-primary { background: #fff; color: #3a22c0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.cta-box .btn-ghost { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.cta-box .rings { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; }
.cta-box .rings i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; transform: translate(-50%, -50%); animation: ring 6s ease-out infinite; }
@keyframes ring { from { width: 0; height: 0; opacity: 1; } to { width: 1400px; height: 1400px; opacity: 0; } }
.cta-box .rings i:nth-child(2) { animation-delay: -2s; } .cta-box .rings i:nth-child(3) { animation-delay: -4s; }

/* Pie */
footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: 120px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a, .foot button.link { color: var(--muted); transition: color 0.2s; }
.foot a:hover, .foot button.link:hover { color: var(--text); }
.foot p { color: var(--muted); max-width: 320px; margin: 14px 0 0; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: inherit; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: none; animation: slideUp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
.cookie-banner.show { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } }
.cookie-banner h2 { font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cookie-banner h2 .icon { color: var(--accent); width: 18px; height: 18px; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; justify-content: flex-end; }
.cookie-actions .btn { height: 40px; font-size: 14px; }
.cookie-actions .btn-ghost.plain { border-color: transparent; background: transparent; color: var(--muted); }
@media (max-width: 560px) { .cookie-actions .btn { flex: 1 1 auto; } }
.cookie-prefs { display: none; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.cookie-banner.prefs .cookie-prefs { display: block; }
.cookie-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookie-row b { font-size: 15px; }
.cookie-row p { font-size: 13.5px; margin-top: 2px; }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.2s; border: 1px solid var(--line); }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Páginas legales ---------- */
.legal { padding: 130px 0 40px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin: 10px 0 8px; }
.legal .updated { color: var(--faint); font-size: 14.5px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.legal .toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }
.legal .toc a { text-decoration: none; color: var(--muted); }
.legal .toc a:hover { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); font-weight: 650; background: var(--bg-2); }
.legal .box { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.legal .box p { margin: 0; color: var(--text); }
.tabs-legal { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs-legal a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--card); }
.tabs-legal a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Que el texto sin salto de las maquetas no ensanche las columnas (desbordaba en móvil) */
.hero-grid > *, .bento > *, .steps-grid > *, .apps > *, .mock-body > *, .sec-grid > *, .stats > * { min-width: 0; }
.legal .toc li { margin: 0 0 6px; break-inside: avoid; }
