/* ═══════════════════════════════════════════════════════════
   KindAI — landing
   Paleta: Solarized Light (crema cálido, tono claude.ai)
   base3 #FDF6E3 · base02 #073642 · base00 #657B83
   azul #268BD2 · cyan #2AA198 · naranja #CB4B16 · amarillo #B58900
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FDF6E3;
  --bg-alt: #F8F1DE;
  --card: #FFFFFF;
  --ink: #073642;
  --ink-soft: #586E75;
  --muted: #93A1A1;
  --line: #E8E0C9;
  --accent: #CB4B16;
  --accent-dark: #B24312;
  --blue: #268BD2;
  --cyan: #2AA198;
  --yellow: #B58900;
  --shadow: 0 1px 2px rgba(7, 54, 66, .05), 0 8px 24px rgba(7, 54, 66, .06);
  --radius: 16px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 227, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font-size: 17px; font-weight: 700;
}
.brand-mark-sm { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--bg) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(42, 161, 152, .1);
  border: 1px solid rgba(42, 161, 152, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -.015em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  max-width: 620px; margin: 22px auto 0;
  font-size: 18.5px; color: var(--ink-soft);
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px;
  font-size: 15.5px; font-weight: 600; font-family: var(--sans);
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.5); }

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600; text-align: center; letter-spacing: -.01em;
}
.section-sub {
  text-align: center; color: var(--ink-soft);
  max-width: 560px; margin: 14px auto 0; font-size: 16.5px;
}

/* ── Proyectos ───────────────────────────────────────────── */
.cards-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 44px;
}
.project-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
}
.project-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--badge); background: color-mix(in srgb, var(--badge) 12%, white);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.project-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.project-card p { color: var(--ink-soft); font-size: 15px; }
.tech-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin-top: 18px;
}
.tech-list li {
  font-size: 12.5px; font-weight: 600; color: var(--blue);
  background: rgba(38, 139, 210, .08);
  border: 1px solid rgba(38, 139, 210, .18);
  padding: 4px 11px; border-radius: 999px;
}

/* ── Servicios ───────────────────────────────────────────── */
.cards-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 44px;
}
.service-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { font-size: 30px; margin-bottom: 14px; }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--ink-soft); }

/* ── Sección del dolor (agitación) ───────────────────────── */
.pain-list { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 780px) {
  .pain-list { grid-template-columns: 1fr 1fr; }
  .pain-item-wide { grid-column: 1 / -1; }
}
.pain-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 22px 24px;
  box-shadow: var(--shadow);
}
.pain-icon {
  flex-shrink: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(203, 75, 22, .09);
  border-radius: 12px; font-size: 22px;
}
.pain-item p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.pain-item strong { color: var(--ink); }
.pain-close {
  margin-top: 34px; text-align: center;
  font-size: 18.5px; color: var(--ink); line-height: 1.65;
}
.pain-close strong { color: var(--accent); }
.pain-cta { text-align: center; margin-top: 26px; }

/* ── Bloque "quién lo construye" ─────────────────────────── */
.who-block {
  margin-top: 44px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 34px 30px;
}
.who-block h3 {
  font-family: var(--serif); font-size: 22px; margin-bottom: 12px;
  text-align: center;
}
.who-block p { color: var(--ink-soft); font-size: 15.5px; }
.who-block strong { color: var(--ink); }

/* ── Nota de urgencia (cierre) ───────────────────────────── */
.urgency-note {
  margin-top: 34px; text-align: center;
  background: rgba(181, 137, 0, .08);
  border: 1px solid rgba(181, 137, 0, .3);
  border-radius: var(--radius); padding: 26px 28px;
}
.urgency-note p { font-size: 15.5px; color: var(--ink); margin-bottom: 16px; }

/* ── Proceso ─────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 44px;
}
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 44px; height: 44px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ── Wizard ──────────────────────────────────────────────── */
.wizard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
  padding: 36px 32px; margin-top: 40px;
}
@media (max-width: 560px) { .wizard { padding: 26px 18px; } }

.wizard-progress {
  height: 6px; border-radius: 999px; background: var(--line);
  overflow: hidden; margin-bottom: 10px;
}
.wizard-progress-bar {
  height: 100%; width: 25%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width .35s ease;
}
.wizard-step-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 24px; }

.wizard-step legend {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  margin-bottom: 6px;
}
.wizard-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

fieldset { border: none; }

.choice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px; margin-bottom: 26px;
}
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex; align-items: center; min-height: 56px;
  padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 14.5px; font-weight: 500;
  cursor: pointer; transition: all .15s ease; background: var(--card);
}
.choice span:hover { border-color: var(--muted); }
.choice input:checked + span {
  border-color: var(--blue); background: rgba(38, 139, 210, .07);
  box-shadow: 0 0 0 1px var(--blue);
}
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.field-label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink); margin: 18px 0 8px;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--card); transition: border-color .15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38,139,210,.12); }
textarea { resize: vertical; min-height: 100px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: all .15s ease;
}
.chip span:hover { border-color: var(--muted); }
.chip input:checked + span {
  border-color: var(--cyan); background: rgba(42, 161, 152, .1);
  box-shadow: 0 0 0 1px var(--cyan); color: var(--ink);
}

.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 28px;
}
.wizard-step > .btn.wizard-next { margin-top: 4px; }

.wizard-privacy {
  margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center;
}

/* honeypot — invisible para humanos */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Estado final */
.wizard-done { text-align: center; padding: 30px 0 14px; }
.done-icon { font-size: 46px; margin-bottom: 12px; }
.wizard-done h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.wizard-done p { color: var(--ink-soft); max-width: 460px; margin: 0 auto; }

/* ── Selector de idioma ──────────────────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.lang-switch:hover { border-color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  font-size: 15.5px; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--muted);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 20px 16px; color: var(--ink-soft); font-size: 14.5px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-soft);
}
.footer-inner strong { font-family: var(--serif); }
.footer-year { color: var(--muted); }
