/* Atendible — páginas estáticas de marketing (funciones, revendedores).
   Sin framework. Tokens alineados con la portada Next (app/src/app/landing.css):
   marfil #f6f3ec, tinta #17212a, azul #244ed8 y la misma Inter, servida por la app. */
@font-face { font-family: AtendibleInter; src: url('/atendible/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --primary: #244ed8;
  --primary-dark: #183cab;
  --ink: #17212a;
  --muted: #55606b;
  --bg: #f6f3ec;
  --bg-soft: #efece4;
  --border: #e4dfd4;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: AtendibleInter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ── Botones ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 84px 0 64px; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: #e6e2d7; color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* ── Secciones ───────────────────────────────────── */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .15s;
}
.card:hover { border-color: #d9d3c6; box-shadow: 0 6px 20px rgba(23,33,42,.06); }
.card p { color: var(--muted); font-size: 15px; }
.icon-chip {
  width: 44px; height: 44px; border-radius: 12px; background: #dce4ff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px;
}

/* ── Pasos ───────────────────────────────────────── */
.steps { counter-reset: paso; }
.step { position: relative; padding-left: 58px; margin-bottom: 28px; }
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.step p { color: var(--muted); font-size: 15px; }

/* ── Placeholder de imagen (se sustituye al recibir el asset) ── */
.img-ph {
  border: 2px dashed #c9d6f2; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f8faff, #f8faff 12px, #f2f6ff 12px, #f2f6ff 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #7d8bb0; font-size: 14px; font-weight: 600; text-align: center; padding: 18px;
  min-height: 220px;
}
.img-ph small { font-weight: 400; margin-top: 4px; }

/* ── Pricing ─────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(36,78,216,.12); }
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-list { list-style: none; margin: 18px 0 24px; flex: 1; }
.price-list li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 26px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* ── Formulario ──────────────────────────────────── */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(36,78,216,.35); border-color: var(--primary);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; padding: 12px 16px; border-radius: 10px; }
.form-msg.ok { display: block; background: #e8f8ee; color: #14713d; }
.form-msg.err { display: block; background: #fdeeee; color: #a02020; }

/* ── Tabla comparativa ───────────────────────────── */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.compare td:first-child { font-weight: 600; }

/* ── Footer ──────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 34px; }
  .hero-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
  .nav-inner { gap: 10px; }
  .nav .brand { margin-right: auto; }
  .nav-links a { padding: 10px 0; width: 100%; }
}
@media (max-width: 560px) {
  .price-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .section { padding: 52px 0; }
}

/* Iconos de línea (mismos SVG que la portada) dentro de .icon-chip. */
.icon-chip img { width: 24px; height: 24px; }
.nav-login { color: var(--ink); font-size: 15px; font-weight: 500; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 60; background: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.nav-links a[aria-current="page"] { color: var(--primary); }
