:root {
  --brand: #2b8474;
  --brand-dark: #1f6457;
  --brand-soft: #e7f2ef;
  --ink: #17231f;
  --muted: #55645f;
  --line: #dfe7e4;
  --bg: #fbfcfb;
  --card: #ffffff;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--brand-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  transition: background 0.15s;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
nav .btn { padding: 8px 16px; font-size: 0.9rem; color: #fff; }
nav a.lang { font-weight: 700; font-size: 0.85rem; border: 1.5px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--ink); }
nav a.lang:hover { border-color: var(--brand); }
@media (max-width: 640px) { nav a.lang { display: inline-block; margin-left: 8px; } }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--brand-dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; margin: 12px 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* Chat mockup */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(23, 35, 31, 0.10); overflow: hidden; max-width: 380px; justify-self: center; width: 100%;
}
/* Réplica estática del chat real (mismos colores, medidas e iconos) */
.mock svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mock-head {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.mock-logo {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #fff; color: var(--brand);
  display: grid; place-items: center;
}
.mock-logo svg { width: 26px; height: 26px; stroke-width: 2.6; }
.mock-title { flex: 1; min-width: 0; line-height: 1.3; }
.mock-title strong { display: block; font-size: 0.98rem; }
.mock-title small { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; opacity: 0.92; }
.mock-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.mock-close { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.9; }
.mock-body { padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; background: #f4f6f8; }
.msg { padding: 10px 14px; border-radius: 18px; max-width: 88%; font-size: 0.88rem; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid #e4e7ec; border-bottom-left-radius: 6px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.mock-extras { background: #fff; border-top: 1px solid #e4e7ec; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 2px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0;
  font-size: 0.76rem; border: 1px solid #e4e7ec; color: var(--ink); border-radius: 999px;
  padding: 6px 10px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand); }
.mock-dates {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  color: var(--brand-dark); font-size: 0.8rem; font-weight: 600;
}
.mock-dates svg { width: 17px; height: 17px; }
.mock-dates .mock-chevron { margin-left: auto; }
.mock-input { display: flex; align-items: center; gap: 8px; padding: 2px 12px 8px; }
.mock-input > span:first-child {
  flex: 1; border: 1px solid #e4e7ec; border-radius: 999px; padding: 10px 16px;
  color: #98a2b3; font-size: 0.85rem; background: #f4f6f8;
}
.mock-send {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; opacity: 0.55;
  display: grid; place-items: center; flex-shrink: 0;
}
.mock-send svg { width: 18px; height: 18px; }
.mock-foot { padding: 0 10px 10px; text-align: center; font-size: 0.68rem; color: #98a2b3; }

/* Sections */
section { padding-block: 64px; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 1.2rem; }

.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
}

/* Demo */
.demo-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .demo-box { grid-template-columns: 1fr; } }
.demo-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-questions li {
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 16px 16px 16px 4px;
  padding: 12px 16px; font-size: 0.97rem;
}
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* Pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 36px 28px; border: 2px solid var(--brand); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 24px 0; }
.price-card li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.badge-fundador {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 0.85rem;
}
.fundador-txt { margin: 14px auto 0; max-width: 30em; font-size: 0.95rem; color: var(--muted); }
.precio-tachado { white-space: nowrap; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Contact */
.contact { text-align: center; }
.contact .mail { font-size: 1.3rem; font-weight: 700; }

/* Footer */
footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 16px; }
footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding-block: 48px 72px; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: #2c3a35; }
