/* AxisOne — hoja de estilos de las micro-landings por módulo.
 *
 * ESPEJO EXACTO del sistema visual del hub (`AxisOne-Landing/src/landing.css`): tokens de tema,
 * cabecera, escala tipográfica, botones, pie y banner de cookies están copiados VERBATIM para que
 * una micro-landing y el hub se vean como el mismo producto. Si el hub cambia su base, esta hoja
 * se re-sincroniza — no se improvisa una variante.
 *
 * Después de la base compartida vienen los bloques propios de una micro-landing (PAS, lista de
 * documentos, planes, FAQ, franja legal).
 */

/* ══════════════════ BASE COMPARTIDA CON EL HUB (verbatim) ══════════════════ */

:root {
  --bg: #F5F5F7;
  --fg: #1D1D1F;
  --fg-mid: rgba(29,29,31,0.62);
  --fg-dim: rgba(29,29,31,0.38);
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.08);
  --card: rgba(255,255,255,0.72);
  --card-solid: #FFFFFF;
  --pill: rgba(0,0,0,0.03);
  --dot: #E2E8F0;
  --nav-bg: rgba(245,245,247,0.72);
  --accent: #0071E3;
  --accent-2: #0055B0;
  --green: #34C759;
  --orange: #FF9F0A;
  --purple: #BF5AF2;
  --cyan: #30D5C8;
  --pink: #FF375F;
}
[data-theme="dark"] {
  --bg: #0A0A0C;
  --fg: #F5F5F7;
  --fg-mid: rgba(245,245,247,0.78);
  --fg-dim: rgba(245,245,247,0.55);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.12);
  --card: rgba(28,28,32,0.7);
  --card-solid: #17171B;
  --pill: rgba(255,255,255,0.04);
  --dot: #1A1A1F;
  --nav-bg: rgba(10,10,12,0.72);
  --accent: #0A84FF;
  --accent-2: #0064D0;
}

* { box-sizing: border-box; }
/* Paridad con el hub: el hub carga el preflight de Tailwind, que fija line-height 1.5 en html.
   Sin esto la cabecera queda 4px más baja y los botones pequeños no coinciden. */
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 240ms ease, color 240ms ease;
  font-size: 14px;
}
body {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
}
body::before {
  content: ''; position: fixed; top: -20%; left: -10%; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(10,132,255,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; height: auto; }

.page { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* -------- Nav -------- */
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  margin: 0 -28px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; flex-shrink: 0; transition: background-color 180ms; }
.logo img { height: 34px; width: auto; display: block; }
[data-theme="dark"] .top-nav .logo {
  background: rgba(245, 245, 247, 0.92);
  border-radius: 8px;
  padding: 4px 10px;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--fg-mid); text-decoration: none; transition: color 150ms; }
.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--card); color: var(--fg-mid); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 150ms, transform 200ms;
  font-family: inherit;
}
.theme-toggle:hover { color: var(--accent); transform: scale(1.05); }

.btn-sm {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border: none; border-radius: 999px; padding: 10px 20px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 12px rgba(10,132,255,0.3); font-family: inherit;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-sm:hover { transform: scale(1.02); }

.hamburger {
  display: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-strong); cursor: pointer;
  align-items: center; justify-content: center; color: var(--fg-mid);
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--bg); padding: 80px 28px 28px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 600; color: var(--fg); text-decoration: none;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
}
.mobile-menu .close-btn {
  position: absolute; top: 18px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--card); border: 1px solid var(--border-strong);
  color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu .btn-primary { margin-top: 20px; }

/* -------- Sections -------- */
.section { padding: 80px 0; }
.section.hero { padding: 72px 0 48px; text-align: center; max-width: 780px; margin: 0 auto; }
.sect-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--accent); background: rgba(10,132,255,0.08);
  padding: 6px 16px; border-radius: 20px; letter-spacing: 0.12em;
  border: 1px solid rgba(10,132,255,0.2); margin-bottom: 18px;
}
h1 {
  font-size: clamp(32px, 5.2vw, 56px); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; color: var(--fg);
}
h1 .accent { color: var(--accent); }
h2 {
  font-size: clamp(26px, 3.2vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; margin: 10px 0 10px; color: var(--fg); text-wrap: balance; line-height: 1.2;
}
h2 .muted { color: var(--fg-dim); font-weight: 600; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
h4 { font-size: 14px; font-weight: 700; }
p  { font-size: 15px; line-height: 1.65; color: var(--fg-mid); }

.lede {
  font-size: 17px; color: var(--fg-mid); line-height: 1.55;
  max-width: 560px; margin: 0 auto 30px; text-wrap: pretty; font-weight: 500;
}

/* -------- Buttons -------- */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border: none; border-radius: 999px; padding: 15px 34px; min-height: 48px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 30px rgba(10,132,255,0.4); font-family: inherit;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary.large { padding: 18px 48px; font-size: 15px; }
.btn-primary:hover { transform: scale(1.02); }
.btn-secondary {
  background: var(--card); backdrop-filter: blur(12px);
  color: var(--fg); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 14px 28px; min-height: 48px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:hover { transform: scale(1.02); }

.trust-badges {
  margin-top: 24px; font-size: 13px; color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}

/* -------- Footer -------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding: 32px 0 36px;
  background: var(--card); backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; width: auto; display: block; }
[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1); }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--fg-mid);
  background: rgba(10,132,255,0.06); border: 1px solid rgba(10,132,255,0.18);
  padding: 6px 12px; border-radius: 999px;
}
.footer-legal { display: flex; gap: 10px; font-size: 13px; color: var(--fg-dim); flex-wrap: wrap; margin-left: auto; align-items: center; }
.footer-legal a { color: var(--fg-mid); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--fg-dim); }

/* -------- Cookie banner -------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto;
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 18px 20px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: cookieSlideIn 380ms cubic-bezier(.2,.7,.2,1) both;
}
[data-theme="dark"] .cookie-banner { box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
@keyframes cookieSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner p { font-size: 14px; color: var(--fg-mid); line-height: 1.55; margin: 0; flex: 1 1 260px; }
.cookie-banner a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border: none; border-radius: 999px; padding: 10px 22px; min-height: 40px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 12px rgba(10,132,255,0.3);
  transition: transform 200ms;
}
.cookie-banner button:hover { transform: scale(1.02); }

/* ══════════════════ BLOQUES PROPIOS DE UNA MICRO-LANDING ══════════════════ */

/* --- Barra de números --- */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 900px; margin: 0 auto; padding: 0 4px;
}
.number { text-align: center; padding: 18px 10px; border-right: 1px solid var(--border); }
.number:last-child { border-right: none; }
.number b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--fg); line-height: 1.1; }
.number span { display: block; margin-top: 4px; font-size: 13px; color: var(--fg-mid); line-height: 1.35; }

/* --- Agitación (tarjetas) --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--card); backdrop-filter: blur(12px); border: 1px solid var(--border);
  border-radius: 22px; padding: 26px;
}
.card p { margin: 0; font-size: 14px; }

/* --- Lista de documentos --- */
.doclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; font-size: 14px;
  color: var(--fg-mid); line-height: 1.5;
}
.doc b { color: var(--accent); font-size: 13px; letter-spacing: 0.04em; flex-shrink: 0; min-width: 82px; }

/* --- Planes --- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 14px; justify-content: center; align-items: stretch; }
.plan {
  background: var(--card-solid); border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 32px 26px; text-align: center; position: relative;
  display: flex; flex-direction: column;
}
.plan.destacado { border-color: rgba(10,132,255,0.35); box-shadow: 0 6px 28px rgba(10,132,255,0.12); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-nombre { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-top: 8px; }
.plan.destacado .plan-nombre { color: var(--accent); }
.plan-precio { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--fg); margin: 12px 0 2px; }
.plan-docs { font-size: 13px; color: var(--accent); font-weight: 600; }
.plan-archivos { font-size: 13px; color: var(--fg-mid); font-weight: 600; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.plan li { font-size: 14px; color: var(--fg-mid); padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
/* El botón es el ÚLTIMO elemento de la tarjeta y absorbe el espacio sobrante:
   así queda anclado al fondo y alinea entre tarjetas aunque las notas midan distinto. */
.plan .plan-cta { margin-top: auto; display: flex; width: 100%; }
.plan-nota { font-size: 13px; color: var(--fg-dim); margin: 0 0 14px; }

/* --- Garantía --- */
.guarantee {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  max-width: 620px; margin: 22px auto 0; padding: 14px 20px;
  border: 1px solid rgba(52,199,89,0.3); border-radius: 14px; background: rgba(52,199,89,0.07);
  font-size: 14px; color: var(--fg-mid); line-height: 1.5; text-align: left;
}
.guarantee b { color: var(--fg); }

/* --- Origen del producto (despersonalizado) --- */
.origen {
  max-width: 820px; margin: 0 auto;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); border-radius: 24px; padding: 38px 34px;
}
.origen h2 { margin-bottom: 14px; }
.origen p { margin: 0; }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--fg);
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 20px; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--fg-mid); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* --- Cierre --- */
.final { text-align: center; padding: 72px 0; }
.final h2 { margin-bottom: 24px; }

/* --- Franja legal: fuera del pie, ancho completo, discreta --- */
/* 11px por indicación expresa de Donaldson (2026-07-28). Es la ÚNICA regla del proyecto por
   debajo de 13px; el resto del barrido tipográfico sigue vigente. */
.legal-strip {
  width: 100%; border-top: 1px solid var(--border);
  background: transparent; padding: 18px 0;
}
.legal-strip p {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  font-size: 11px; line-height: 1.6; color: var(--fg-dim); text-align: center;
}

/* -------- Responsive (mismos cortes que el hub) -------- */
@media (max-width: 820px) {
  body { background-size: 28px 28px; }
  .page { padding: 0 20px; }
  .top-nav { padding: 12px 20px; margin: 0 -20px; }
  .nav-links { display: none; }
  .nav-right .btn-sm { display: none; }
  .hamburger { display: inline-flex; }
  .section { padding: 56px 0; }
  .section.hero { padding: 44px 0 32px; }
  h1 { font-size: clamp(28px, 8vw, 40px); }
  .lede { font-size: 15px; margin-bottom: 24px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn-primary, .cta-row .btn-secondary { width: 100%; }
  .cards, .doclist, .pricing { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .number:nth-child(2) { border-right: none; }
  .sect-head { margin-bottom: 28px; }
  .final { padding: 56px 0; }
  .footer-inner { padding: 0 20px; }
  .footer-legal { margin-left: 0; width: 100%; }
  .legal-strip p { padding: 0 20px; }
}
@media (max-width: 480px) {
  h2 { font-size: 22px; }
  h1 { font-size: 32px; }
  .card, .origen { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
