/* ABZ · Automation Business Zone — hoja de estilos */
:root {
  --navy: #12143f;
  --blue: #2e31cf;
  --blue-soft: #4a4fe0;
  --cyan: #22d3ee;
  --lav: #eff2ff;
  --ink: #1e2430;
  --muted: #5b6472;
  --border: #e4e8f2;
  --bg-alt: #f7f8fb;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(18, 20, 63, .05), 0 14px 34px rgba(18, 20, 63, .10);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Navegación ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a.active { background: var(--lav); color: var(--blue); }
.nav-links a.cta { background: var(--blue); color: #fff; font-weight: 600; }
.nav-links a.cta:hover { background: var(--blue-soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ── Hero ───────────────────────────────────── */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(46, 49, 207, .35); filter: blur(60px);
}
.hero::before { width: 480px; height: 480px; top: -220px; right: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -200px; left: -140px; }
.hero-inner { position: relative; padding: 96px 0 88px; max-width: 780px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.15; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--cyan); }
.hero p.sub { margin-top: 20px; font-size: 1.15rem; color: #c9d2ff; max-width: 560px; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}

/* ── Botones ────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: all .2s;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-soft); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ── Secciones ──────────────────────────────── */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.section.dark .section-head .eyebrow { color: var(--cyan); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 10px; letter-spacing: -0.4px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: #c9d2ff; }

/* ── Grillas de tarjetas ────────────────────── */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card.tint { background: var(--lav); border: 0; box-shadow: none; }
.card h3 { font-size: 1.06rem; margin: 14px 0 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.chip-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--lav);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.card.tint .chip-icon { background: #fff; }

/* ── Antes / Con ABZ ────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--radius); padding: 30px; }
.compare-col.before { background: var(--bg-alt); }
.compare-col.after { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.compare-col h3 {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.compare-col.before h3 { color: var(--muted); }
.compare-col.after h3 { color: var(--cyan); }
.compare-col ul { list-style: none; }
.compare-col li { padding: 9px 0; display: flex; gap: 12px; align-items: baseline; font-size: 1rem; }
.compare-col.before li { color: var(--muted); }
.compare-col.after li { font-weight: 600; }
.mark { font-weight: 700; }
.compare-col.before .mark { color: #c2434b; }
.compare-col.after .mark { color: #2ee6a8; }

/* ── Stats ──────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { background: var(--navy); border-radius: var(--radius); padding: 26px; color: #fff; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow); }
.stat:nth-child(2) { background: var(--blue); }
.stat .n { font-size: 2.6rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat .l { font-size: .98rem; color: #e6eaff; }

/* ── Flujo de pasos ─────────────────────────── */
.flow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.flow-step {
  background: #fff; border-radius: 12px; padding: 14px 18px; text-align: center;
  box-shadow: var(--shadow); min-width: 128px; flex: 1;
}
.flow-step .num { font-size: .75rem; font-weight: 700; color: var(--blue); }
.flow-step .name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.flow-step.hl { background: var(--cyan); }
.flow-arrow { align-self: center; color: var(--cyan); font-weight: 700; font-size: 1.2rem; }
.quote-band {
  margin-top: 40px; background: rgba(46, 49, 207, .55); border-radius: var(--radius);
  padding: 26px 34px; text-align: center; font-style: italic; font-size: 1.1rem; color: #fff;
}

/* ── Proceso numerado (conciliación) ────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-card .icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px;
}
.step-card h3 { color: var(--cyan); font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: .9rem; color: #dfe4ff; }

/* ── Chips de beneficios ────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.chip {
  background: var(--lav); color: var(--navy); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px;
}
.chip.dark { background: var(--navy); color: #fff; }
.chip.dark .tag { color: var(--cyan); font-weight: 700; font-size: .78rem; letter-spacing: .08em; margin-right: 8px; }

/* ── Capturas ───────────────────────────────── */
.shot { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.shot img { border-radius: 10px; width: 100%; }
.shot figcaption { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 10px 6px 4px; }
.split { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; }
.split .side-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.split .side-list li { display: flex; gap: 10px; align-items: baseline; font-size: .98rem; }
.split .side-list .mark { color: var(--blue); }

/* ── Centralización (diagrama) ──────────────── */
.central { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.central .box { border-radius: 14px; padding: 18px; text-align: center; font-weight: 700; font-size: .95rem; }
.central .src { background: var(--lav); color: var(--navy); margin-bottom: 12px; }
.central .core { background: var(--navy); color: var(--cyan); padding: 30px 20px; box-shadow: var(--shadow); }
.central .core small { display: block; color: #fff; font-weight: 400; font-size: .8rem; margin-top: 6px; }
.central .out { background: var(--bg-alt); border: 1px solid var(--border); color: var(--navy); margin-bottom: 12px; }
.central .arrow { color: var(--blue); font-size: 1.5rem; font-weight: 700; text-align: center; }

/* ── Mapa funcional ─────────────────────────── */
.fmap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fmap-col { border-radius: var(--radius); padding: 30px; }
.fmap-col.light { background: var(--lav); }
.fmap-col.dark { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.fmap-col h3 { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px; }
.fmap-col.light h3 { color: var(--blue); }
.fmap-col.dark h3 { color: var(--cyan); }
.fmap-col ul { list-style: none; }
.fmap-col li { padding: 8px 0 8px 22px; position: relative; font-size: .96rem; }
.fmap-col li::before { content: "•"; position: absolute; left: 4px; color: var(--cyan); font-weight: 700; }
.fmap-col.light li::before { color: var(--blue); }

/* ── Cita ───────────────────────────────────── */
.bigquote {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 44px;
  text-align: center; box-shadow: var(--shadow);
}
.bigquote p { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-style: italic; max-width: 640px; margin: 0 auto; }
.bigquote .mark-q { color: var(--cyan); font-size: 3rem; font-weight: 800; line-height: 0; }
.bigquote footer { margin-top: 18px; color: #8fa0e8; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Contacto ───────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .chip-icon { flex-shrink: 0; }
.contact-list b { display: block; font-size: .95rem; }
.contact-list span { color: var(--muted); font-size: .95rem; }
form .field { margin-bottom: 16px; }
form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff;
}
form input:focus, form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* ── CTA final ──────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 700px; margin: 0 auto; }
.cta-final p { color: #c9d2ff; margin: 18px auto 30px; max-width: 560px; }

/* ── Footer ─────────────────────────────────── */
.footer { background: var(--navy); color: #8fa0e8; padding: 44px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { height: 22px; }
.footer a { color: #c9d2ff; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .central { grid-template-columns: 1fr; }
  .central .arrow { transform: rotate(90deg); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--border); padding: 12px 20px 20px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .grid.cols-3, .grid.cols-2, .compare, .stats, .steps, .fmap, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 68px 0 60px; }
  .section { padding: 60px 0; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
