/* Recado Digital 809 — Landing
   Diseño limpio, moderno y poco cargado. Sin frameworks. */

/* Fallback con métricas ajustadas a Inter: evita el reflow (CLS) cuando
   la fuente web carga de forma asíncrona. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.00%;
  size-adjust: 107.12%;
}

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6877;       /* gris atenuado — AA en blanco (~5.7:1) y sobre bg-soft (~5.4:1) */
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --accent: #0070c0;       /* azul del logo */
  --accent-2: #1a86d6;     /* azul claro (hover) */
  --accent-dark: #005a9e;
  --indigo: #024f88;       /* azul profundo para acentos */
  --wa: #0070c0;
  --sms: #f59e0b;
  --mail: #0ea5e9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 30px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12);
  --maxw: 1120px;
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* scroll-padding: al navegar por anclas, deja espacio para el header fijo (78px) */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
::selection { background: rgba(0,112,192,.18); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,112,192,.30); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; min-width: 0; }
.brand img { width: 50px; height: 50px; border-radius: 12px; flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.brand span b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,112,192,.42), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(26,134,214,.30), transparent 55%),
    linear-gradient(160deg, #0a1424 0%, #0d1b30 55%, #06243f 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: #dbeafe; background: rgba(0,112,192,.16); border: 1px solid rgba(0,112,192,.32);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(0,112,192,.28); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 18px; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc 40%, #bae6fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c7d2de; max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 9px 15px; border-radius: 999px;
}
.chip .ic { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px; }
/* En desktop, fuerza 3 columnas: con 6 tarjetas el auto-fit creaba filas 4+2 desbalanceadas */
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease;
}
/* Línea de acento que se revela al pasar el cursor */
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.ico-wa { background: rgba(0,112,192,.12); color: var(--wa); }
.ico-sms { background: rgba(245,158,11,.12); color: var(--sms); }
.ico-mail { background: rgba(14,165,233,.12); color: var(--mail); }
.ico-cobros { background: rgba(0,112,192,.12); color: var(--accent); }
.ico-design { background: rgba(2,79,136,.12); color: var(--indigo); }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Cobros feature ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.feature .badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  color: var(--accent-dark); background: rgba(0,112,192,.10); border: 1px solid rgba(0,112,192,.22);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.feature h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 14px; }
.feature > div > p { color: var(--ink-soft); font-size: 1.05rem; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-2)); color: #fff;
  font-weight: 700; font-size: .9rem; box-shadow: 0 4px 12px rgba(0,112,192,.30);
}
.steps .t strong { display: block; font-size: 1rem; }
.steps .t span { color: var(--muted); font-size: .94rem; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perk {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow);
}
.perk .check { color: var(--accent); font-weight: 800; margin-right: 7px; }
.perk strong { font-size: .98rem; }
.perk span:not(.check) { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }

/* ---------- Lista de beneficios (Cobranza con IA) ---------- */
.bene-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px;
  /* Banda resaltada con fondo distinto para que los beneficios destaquen */
  background: linear-gradient(135deg, rgba(0,112,192,.12), rgba(14,165,233,.08));
  border: 1px solid rgba(0,112,192,.22);
  border-radius: 22px; padding: 26px 22px;
}
.bene {
  display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow);
}
.bene .bcheck { font-size: 1rem; line-height: 1; }

/* ---------- Tech strip ---------- */
/* Banda oscura "tech" */
.tech-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 360px at 85% -10%, rgba(0,112,192,.32), transparent 60%),
    radial-gradient(700px 380px at 0% 115%, rgba(56,189,248,.16), transparent 55%),
    linear-gradient(160deg, #0a1424 0%, #0d1b30 60%, #06243f 100%);
}
.tech-dark::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}
.tech-dark .container { position: relative; z-index: 1; }
.tech-dark .section-head .kicker { color: #38bdf8; }
.tech-dark .section-head h2 { color: #fff; }
.tech-dark .section-head p { color: #c2d2e2; }

.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech .item {
  position: relative; text-align: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 18px;
  padding: 30px 18px 26px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech .item:hover {
  transform: translateY(-6px);
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 18px 50px rgba(0,112,192,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.tech .item .tech-ico {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  display: grid; place-items: center; color: #7dd3fc;
  background: linear-gradient(135deg, rgba(0,112,192,.40), rgba(56,189,248,.16));
  border: 1px solid rgba(56,189,248,.32);
}
.tech .item .tech-ico svg { width: 26px; height: 26px; }
.tech .big {
  font-size: clamp(2.1rem, 4.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 8px; color: #fff;
}
.tech .big .accent {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc 50%, #a7f3d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tech .item span { color: #9fb3c8; font-size: .92rem; font-weight: 500; }

/* ---------- Clientes ---------- */
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.client-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 26px; box-shadow: var(--shadow); height: 92px; min-width: 160px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.client-logo img {
  max-height: 52px; max-width: 150px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .72; transition: filter .2s ease, opacity .2s ease;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #06243f, #00538f 55%, #0070c0);
  border-radius: 26px; padding: 60px 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
/* Brillo + textura decorativa */
.cta-band::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; pointer-events: none;
  background: radial-gradient(circle, rgba(56,189,248,.30), transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem;
  color: #e0f2fe; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { color: #dbeafe; margin: 0 auto 28px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-cta-wa {
  background: #25d366; color: #073b22;
  box-shadow: 0 12px 30px rgba(37,211,102,.45); font-size: 1rem; padding: 15px 26px;
}
.btn-cta-wa svg { width: 22px; height: 22px; }
.btn-cta-wa:hover { background: #20c15c; box-shadow: 0 16px 38px rgba(37,211,102,.55); }
.btn-cta-light {
  background: #fff; color: var(--accent-dark); font-size: 1rem; padding: 15px 26px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.btn-cta-light:hover { background: #eaf3fb; }
.cta-note { color: #b9d4ec !important; font-size: .85rem; margin: 22px auto 0 !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--bg-soft); }
.footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { font-size: 1.05rem; }
.footer p { color: var(--muted); font-size: .92rem; margin: 12px 0 0; max-width: 320px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: .94rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .tech { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .hero .container { padding-top: 36px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav { height: 70px; }
  .brand { font-size: 1.02rem; gap: 10px; }
  .brand img { width: 42px; height: 42px; border-radius: 10px; }
  /* En móvil basta el botón de menú; el CTA vive en el menú y en el hero. */
  .nav-cta .btn { display: none; }
  .nav-links.open { top: 70px; }
  /* Servicios: ícono y título en la misma línea; descripción debajo */
  #servicios .card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
  }
  #servicios .card .ico { margin-bottom: 0; width: 46px; height: 46px; }
  #servicios .card .ico svg { width: 23px; height: 23px; }
  #servicios .card h3 { margin: 0; }
  #servicios .card p { grid-column: 1 / -1; }
  /* Automatización: ícono y título en la misma línea; descripción debajo */
  #automatizacion .card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
  }
  #automatizacion .card .ico { margin-bottom: 0; width: 46px; height: 46px; }
  #automatizacion .card .ico svg { width: 23px; height: 23px; }
  #automatizacion .card h3 { margin: 0; }
  #automatizacion .card p { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .brand span { display: none; } /* pantallas muy estrechas: solo el isotipo */
}

/* ============================================================
   FASE 1 — Mejoras de diseño
   ============================================================ */

/* ---------- Hero a 2 columnas + mockup ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }

/* Mockup de chat del agente IA */
.hero-visual { display: flex; justify-content: center; }
.chat-mock {
  width: 100%; max-width: 380px;
  background: #0b1f17; border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.chat-top {
  display: flex; align-items: center; gap: 12px;
  background: #075e54; padding: 14px 16px; color: #fff;
}
.chat-avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: #128c7e; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.chat-id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat-id strong { font-size: .98rem; }
.chat-id span { font-size: .78rem; color: #cdeee3; display: flex; align-items: center; gap: 6px; }
.chat-id .online { width: 8px; height: 8px; border-radius: 50%; background: #25d366; display: inline-block; }
.chat-wa { width: 22px; height: 22px; margin-left: auto; color: #25d366; }
.chat-body {
  padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
  background:
    linear-gradient(rgba(11,31,23,.92), rgba(11,31,23,.92)),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.bubble {
  max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .9rem;
  line-height: 1.45; color: #e9f5ef;
}
.bubble b { color: #fff; }
.bubble.in { align-self: flex-start; background: #1f2c33; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #056162; border-top-right-radius: 4px; }
.bubble.meta {
  align-self: center; max-width: 100%; text-align: center; font-size: .8rem;
  color: #a7f3d0; background: rgba(37,211,102,.10); border: 1px solid rgba(37,211,102,.25);
}
.bubble .check2 { color: #34d399; font-weight: 700; margin-right: 5px; }

/* ---------- Banda de métricas ---------- */
.metrics-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.metric { text-align: center; padding: 0 14px; position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 46px; width: 1px; background: var(--line);
}
.m-num {
  display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-lbl { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ---------- Franja de confianza legal ---------- */
.trust-band {
  background: linear-gradient(135deg, #06243f, #00538f 60%, #0070c0); color: #fff;
}
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 30px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 30px; height: 30px; flex: 0 0 auto; color: #bae6fd; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { display: block; font-size: .86rem; color: #d4e6f5; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #073b22; font-weight: 700; font-size: .95rem;
  padding: 13px 18px 13px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .18s ease, box-shadow .2s ease;
}
.wa-float svg { width: 26px; height: 26px; color: #073b22; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37,211,102,.55); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- FAQ (acordeón) ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-ico { flex: 0 0 auto; width: 18px; height: 18px; position: relative; transition: transform .3s ease; }
.faq-item[open] .faq-ico { transform: rotate(180deg); }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .2s ease;
}
.faq-ico::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-ico::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item[open] .faq-ico::after { transform: scaleY(0); }
.faq-a { padding: 0 22px 20px; color: #475569; font-size: .97rem; }
.faq-a p { margin: 0; }
.faq-a strong { color: var(--ink-soft); }

/* Animación de apertura/cierre del acordeón.
   Usa ::details-content e interpolate-size (Chrome 129+, Safari/Firefox recientes);
   en navegadores sin soporte el acordeón abre/cierra al instante, como antes. */
@media (prefers-reduced-motion: no-preference) {
  html { interpolate-size: allow-keywords; } /* permite animar block-size hasta "auto" */
  .faq-item::details-content {
    opacity: 0; block-size: 0; overflow: clip;
    transition:
      content-visibility .35s allow-discrete,
      opacity .3s ease,
      block-size .35s ease;
  }
  .faq-item[open]::details-content { opacity: 1; block-size: auto; }
}

/* ---------- Scroll-spy (enlace activo) ---------- */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-links a { position: relative; }

/* ---------- Reveal al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  /* Flotación suave del mockup de chat (en el wrapper, para no chocar con .reveal) */
  .hero-visual { animation: chatFloat 7s ease-in-out infinite; }
  @keyframes chatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
}

/* ---------- Formulario de leads (CTA) ---------- */
.cta-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  text-align: left; align-items: center;
}
.cta-grid .cta-copy p { margin-left: 0; }
.cta-grid .cta-actions { justify-content: flex-start; }
.cta-grid .cta-note { margin-left: 0 !important; }

.lead-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  color: var(--ink); border-radius: 22px;
  padding: 30px 30px 24px;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 0 6px rgba(255,255,255,.10);
}
/* Barra de acento superior que conecta la tarjeta con la marca */
.lead-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), #38bdf8 55%, #7dd3fc);
}
.lead-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(0,112,192,.08);
  border: 1px solid rgba(0,112,192,.20);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.lead-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}
.lead-card h3 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.lead-card .lead-sub { color: var(--muted) !important; font-size: .95rem; margin: 0 0 20px !important; max-width: none; }
.lead-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); }
.lead-form input, .lead-form select {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  border: 1.5px solid #d6dfea; border-radius: 12px;
  font: inherit; font-size: 1rem; /* ≥16px: evita el zoom automático en iOS */
  color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input::placeholder { color: #9aa7b5; }
.lead-form input:hover, .lead-form select:hover { border-color: #b6c6d8; }
.lead-form input:focus, .lead-form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,112,192,.14);
}
.btn-lead {
  width: 100%; justify-content: center; margin-top: 6px;
  padding: 16px 24px; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 12px 30px rgba(0,112,192,.45);
}
.btn-lead svg { width: 20px; height: 20px; transition: transform .18s ease; }
.btn-lead:hover { box-shadow: 0 16px 38px rgba(0,112,192,.55); filter: brightness(1.07); }
.btn-lead:hover svg { transform: translateX(4px); }
.btn-lead:disabled { opacity: .65; cursor: wait; transform: none; }
.form-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--muted) !important; font-size: .82rem; text-align: center;
  margin: 2px 0 0 !important; max-width: none;
}
.form-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }
.hp { display: none !important; }
/* Oculta el flotante de WhatsApp mientras la sección de contacto está en pantalla
   (ahí ya hay CTA de WhatsApp y formulario; el flotante tapaba los campos en móvil) */
body.contacto-visible .wa-float { opacity: 0; pointer-events: none; transform: translateY(14px); }
.wa-float { transition: transform .25s ease, box-shadow .2s ease, opacity .25s ease; }

.form-status { border-radius: 12px; padding: 16px 18px; font-size: .97rem; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status.error a { text-decoration: underline; }

/* ---------- Responsive Fase 1 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: 2; }
  .chat-mock { max-width: 340px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .metric:nth-child(3)::before, .metric:nth-child(odd)::before { display: none; }
  .trust { grid-template-columns: 1fr; gap: 18px; }
  .cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .lead-card { padding: 26px 20px 20px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 600px) {
  .wa-float-txt { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .metrics { padding: 24px 0; }
}
