/* Sitio de Atajo Software: páginas estáticas, sin dependencias. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --border: #dde1ea;
  --text: #161922;
  --muted: #5d6578;
  --accent: #4a6cf7;
  --accent-ink: #ffffff;
  --hot: #e5483a;
  --ok: #1fa56d;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #20242e;
    --border: #2b303c;
    --text: #e9ebf1;
    --muted: #8b93a7;
    --accent: #6c8cff;
    --accent-ink: #0f1115;
    --hot: #ff6b5b;
    --ok: #36c98a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* La cabecera fija no debe tapar el título al saltar a #precios u otra sección. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #7b96ff, #4a5fe0); color: #fff; font-weight: 800; font-size: 17px;
}
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.langs { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.langs a { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }

/* Barra propia de cada producto, bajo la cabecera común (que es igual en todo el sitio). */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 18px 0 0; font-size: 15px; }
.subnav b { color: var(--text); padding-right: 14px; border-right: 1px solid var(--border); }
.subnav a { color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--text); }
.subnav + .hero { padding-top: 48px; }

/* Secciones */
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero-app { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.hero-app img { width: 112px; height: 112px; }
@media (max-width: 640px) { .hero-app { grid-template-columns: 1fr; } .hero-app img { width: 80px; height: 80px; } }
section { padding: 40px 0; }
h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.2; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.note { font-size: 14px; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 26px; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.product img { width: 64px; height: 64px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Precios */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan.pro { border: 2px solid var(--accent); }
.price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.plan li { margin: 4px 0; }
/* Selector anual/mensual, sin JavaScript: el anual viene marcado. */
.billing { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: 4px 0 10px; align-self: flex-start; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.billing input:checked + label { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.billing input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing .save { font-size: 12px; color: var(--ok); margin-left: 4px; }
.founder-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.price del { font-size: .5em; font-weight: 600; color: var(--muted); margin-right: 4px; }
.by-month { display: none; }
.plan:has(#bill-month:checked) .by-month { display: block; }
.plan:has(#bill-month:checked) .by-year { display: none; }
.founder { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 14px; }

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

/* Páginas legales */
.legal { max-width: 760px; padding: 48px 0 24px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); margin: 0 0 24px; }

/* Novedades por correo */
.news { max-width: 620px; padding: 56px 0 24px; }
.news h1 { font-size: clamp(30px, 5.5vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.news .lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.news-form { display: grid; gap: 12px; }
.news-form > label { font-weight: 700; }
.news-form input[type="email"] {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.news-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.news-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; }
.news-form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.news-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.news-form .btn:disabled { opacity: .6; }
.news-msg { margin: 0; font-size: 15px; font-weight: 600; }
.news-msg:empty { display: none; }
.news-msg[data-kind="ok"] { color: var(--ok); }
.news-msg[data-kind="error"] { color: var(--hot); }

/* Pie */
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
