/* ===========================================================================
   Finzaria — Componentes: botones, header/nav, footer, hero, waitlist, cards,
   comparación, planes, mock de chat, badges. Depende de tokens.css + base.css.
   =========================================================================== */

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--cyan);
  color: #05222a;
  box-shadow: 0 6px 18px rgba(20, 192, 214, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #17cee6;
}
.btn-blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 107, 255, 0.3);
}
.btn-blue:hover {
  transform: translateY(-1px);
  background: #2f5ff2;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--muted-2);
}
.btn-lg {
  padding: 15px 26px;
  font-size: 1.05rem;
}

/* ── Header / navegación ── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan));
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a.link {
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a.link:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.link.active {
  color: var(--blue-600);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botón hamburguesa (solo móvil) */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  padding: 72px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--blue-600), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Waitlist ── */
.waitlist {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  max-width: 460px;
  flex-wrap: wrap;
}
.waitlist input[type='email'] {
  flex: 1 1 240px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.waitlist input[type='email']:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(20, 192, 214, 0.18);
}
.waitlist.is-centered {
  margin: 26px auto 0;
  justify-content: center;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}
.form-ok {
  color: var(--green);
  font-weight: 600;
  margin-top: 14px;
}
.form-ok[hidden] {
  display: none;
}
.section-navy .form-ok {
  color: var(--cyan);
}

/* ── Mock de chat (agent-first) ── */
.phone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  max-width: 380px;
  margin: 0 auto;
}
.phone .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
.phone .bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}
.bubble {
  padding: 11px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  max-width: 82%;
  font-size: 0.95rem;
}
.bubble.user {
  background: var(--blue-600);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: var(--bg-soft2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.bot b {
  color: var(--navy-900);
}
.chip-in {
  color: var(--green);
  font-weight: 700;
}
.chip-out {
  color: var(--red);
  font-weight: 700;
}

/* ── Tarjetas ── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 192, 214, 0.12);
  color: var(--cyan-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  font-size: 0.98rem;
}
.step-n {
  font-family: var(--font-num);
  font-size: 1rem;
  color: var(--blue-600);
  font-weight: 700;
}

/* ── Comparación ── */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compare .col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.compare .col.win {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(20, 192, 214, 0.14);
}
.compare h3 {
  font-size: 1.05rem;
}
.compare .col.win h3 {
  color: var(--blue-600);
}
.compare ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}
.compare li {
  margin-bottom: 8px;
}

/* ── Precios ── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan.featured .flag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--cyan);
  color: #05222a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
}
.price {
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 2px;
}
.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-body);
}
.plan-note {
  color: var(--muted);
  font-size: 0.9rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}
.plan li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
}

/* ── Badges y franjas ── */
.badge-beta {
  display: inline-block;
  background: rgba(20, 192, 214, 0.15);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .big {
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}
.stat .lbl {
  color: #c4d0e4;
  font-size: 0.95rem;
}

/* ── Footer ── */
footer.site {
  background: var(--navy-900);
  color: #c4d0e4;
  padding: 54px 0 34px;
}
footer.site .cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
footer.site .brand {
  color: #fff;
}
footer.site .col-title {
  color: #fff;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}
footer.site a {
  color: #c4d0e4;
  display: block;
  margin-bottom: 8px;
}
footer.site a:hover {
  color: #fff;
}
footer.site .fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8698b5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
  }
  .hero-grid,
  .compare,
  .plans,
  .stat-row {
    grid-template-columns: 1fr;
  }
  .phone {
    margin-top: 12px;
  }
  /* Menú móvil: oculta los enlaces y el CTA; muestra hamburguesa. */
  .nav-links,
  .nav .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  /* Panel desplegable cuando el nav tiene .open (lo controla nav.js) */
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    box-shadow: var(--shadow);
  }
  header.site {
    position: relative;
  }
}
