:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0e8;
  --surface: #ffffff;
  --text: #1c2130;
  --muted: #566070;
  --line: #e3e0d6;
  --accent: #0b6e53;
  --accent-strong: #095a44;
  --accent-text: #ffffff;
  --accent-soft: #e0f1ea;
  --bubble-in: #ffffff;
  --bubble-out: #d9f3dc;
  --chat-bg: #efeae2;
  --shadow: 0 24px 60px -24px rgba(20, 30, 40, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151b;
    --bg-alt: #171c24;
    --surface: #1b212b;
    --text: #e9ecf1;
    --muted: #a3acba;
    --line: #28303c;
    --accent: #3fc79a;
    --accent-strong: #66d8b3;
    --accent-text: #08130f;
    --accent-soft: #14312a;
    --bubble-in: #232b36;
    --bubble-out: #0f4a3b;
    --chat-bg: #0e1418;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.marca .logo { width: 32px; height: 32px; display: block; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav a.boton { color: var(--accent-text); }

.boton {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .15s;
}
.boton:hover { background: var(--accent-strong); }
.boton:active { transform: translateY(1px); }
.boton.chico { padding: 8px 16px; font-size: 14px; }
.boton.suave { background: transparent; color: var(--text); border: 1px solid var(--line); }
.boton.suave:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.etiqueta { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); }
.hero .sub { font-size: 19px; color: var(--muted); margin: 18px 0 28px; max-width: 520px; }
.hero .acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .nota { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Maqueta del chat */
.telefono { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; max-width: 380px; margin: 0 auto; width: 100%; }
.chat-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: var(--accent-text); }
.chat-cab .av { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--accent-text) 22%, transparent); display: grid; place-items: center; font-weight: 800; }
.chat-cab strong { display: block; line-height: 1.2; }
.chat-cab span { font-size: 12px; opacity: .85; }
.chat-cuerpo { background: var(--chat-bg); padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.burbuja { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.burbuja.in { background: var(--bubble-in); align-self: flex-start; border-top-left-radius: 4px; }
.burbuja.out { background: var(--bubble-out); align-self: flex-end; border-top-right-radius: 4px; }
.burbuja b { font-weight: 700; }
.chat-pie { padding: 10px 16px 14px; font-size: 12px; color: var(--muted); text-align: center; background: var(--surface); border-top: 1px solid var(--line); }

/* Secciones */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.encabezado { max-width: 640px; margin-bottom: 36px; }
.encabezado h2 { font-size: clamp(26px, 3.6vw, 36px); }
.encabezado p { color: var(--muted); font-size: 18px; margin-top: 12px; }

.grilla { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tarjeta .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.tarjeta .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta h3 { font-size: 18px; margin-bottom: 6px; }
.tarjeta p { color: var(--muted); font-size: 15.5px; }

.rubros { display: flex; flex-wrap: wrap; gap: 10px; }
.rubros li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.rubros { padding: 0; margin: 0; }

.pasos { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: paso; padding: 0; margin: 0; list-style: none; }
.pasos li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; counter-increment: paso; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 14px; }
.pasos h3 { font-size: 18px; margin-bottom: 6px; }
.pasos p { color: var(--muted); font-size: 15.5px; }

.control { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.control .tarjeta h3 { font-size: 17px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; }

.cierre { text-align: center; }
.cierre .caja { background: var(--accent); color: var(--accent-text); border-radius: 24px; padding: 56px 24px; }
.cierre h2 { font-size: clamp(26px, 4vw, 38px); }
.cierre p { margin: 12px auto 26px; max-width: 520px; opacity: .9; font-size: 18px; }
.cierre .boton { background: var(--accent-text); color: var(--accent); }
.cierre .boton:hover { background: color-mix(in srgb, var(--accent-text) 88%, var(--accent)); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer .enlaces { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grilla, .pasos { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .top nav a:not(.boton) { display: none; }
  .marca { font-size: 16px; }
  .grilla, .pasos, .control { grid-template-columns: 1fr; }
  .hero .sub { font-size: 17px; }
  .cierre .caja { padding: 40px 20px; }
}
