/* Zilia — landing. v2.16: look neutro con la estructura que propuso la agencia (13/10): fondo papel, tarjetas claras,
   el verde solo como color de marca (botones, íconos y barras). Letras Bricolage Grotesque (títulos ligeros con la parte
   importante en negritas, como la referencia) + Instrument Sans. Colores en :root (claude/zilia_identidad.md). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fuentes/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fuentes/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #f6f5f1; --bg-2: #efede8; --card: #ffffff; --ink: #17201d; --ink-2: #45504b; --tenue: #5d6661;
  --borde: #e5e2dc; --borde-2: #d2cfc6; --salvia: #e3e8e2; --salvia-2: #d5ddd5;
  --osc: #173a33; --osc-2: #21483f; --acento: #2a5b4f; --jade: #3a7d6a; --rojo: #c2261f; --ambar: #b45309;
  --radio: 18px; --sombra: 0 1px 2px rgba(23,28,26,.04), 0 12px 32px -12px rgba(23,28,26,.14);
  --titulo: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* un botón sin número de WhatsApp no aparece */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titulo); }
h1 b, h2 b { font-weight: 700; }
a { color: inherit; }
.tenue { color: var(--tenue); }
svg { flex: none; }

/* ---------- navegación ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav.con-borde { border-bottom-color: var(--borde); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500; font-size: 26px; letter-spacing: -.01em; text-transform: lowercase; color: var(--osc); text-decoration: none; }
.marca.chica { font-size: 18px; gap: 8px; }
/* v2.16.2: logo de la agencia (13/10): la «Z» (static/zilia-z.svg) como máscara, en el gris verde de la agencia */
.logo { width: 30px; height: 30px; flex: none; background: #374a44; -webkit-mask: url("/static/zilia-z.svg") center / contain no-repeat; mask: url("/static/zilia-z.svg") center / contain no-repeat; }
.marca.chica .logo { width: 22px; height: 22px; }
.links { display: flex; gap: 32px; }
.links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.links a:hover { color: var(--ink); }
.nav-acc { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.entrar { text-decoration: none; font-weight: 550; font-size: 15px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 550; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, box-shadow .15s; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn.osc { background: var(--osc); color: #fff; }
.btn.osc:hover { background: #0f2a25; }
.btn.clr { background: var(--card); color: var(--ink); border-color: var(--borde-2); }
.btn.clr:hover { box-shadow: var(--sombra); }
.btn.ancho { width: 100%; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.flecha { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* ---------- hero ---------- */
main { overflow: hidden; }
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pastilla { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--salvia); font-size: 14px; font-weight: 500; color: var(--osc); }
h1 { margin: 0 0 22px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 300; letter-spacing: -.03em; }
.lead { margin: 0 0 30px; max-width: 520px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }

/* beneficios a la derecha del título (v2.16.1: sin imagen, solo texto) */
.beneficios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.beneficios li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--borde); }
.beneficios li > span:last-child { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.beneficios b { display: block; color: var(--ink); font-weight: 600; }
.palomita { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--osc); color: #fff; flex: none; }
.palomita svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tres pastillas ---------- */
.trio { max-width: 1200px; margin: 0 auto; padding: 24px 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pieza { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); }
.pieza p { margin: 0; color: var(--ink-2); line-height: 1.35; }
.pieza b { display: block; color: var(--ink); font-weight: 600; }
.ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--borde); color: var(--osc); flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.chico { width: 40px; height: 40px; }
.ico.chico svg { width: 20px; height: 20px; }
.ico .sat { font-family: var(--titulo); font-size: 13px; letter-spacing: .02em; }

/* ---------- captura ---------- */
.captura { max-width: 1040px; margin: 0 auto; padding: 96px 24px 0; text-align: center; }
.marco { margin-top: 32px; border-radius: 20px; padding: 8px; background: var(--card); border: 1px solid var(--borde); box-shadow: 0 30px 70px -30px rgba(23,28,26,.3); }
.marco img { display: block; width: 100%; height: auto; border-radius: 13px; }
.nota { color: var(--ink-2); font-size: 15px; margin: 18px auto 0; max-width: 640px; }

/* ---------- franja ---------- */
.franja { max-width: 1200px; margin: 0 auto; padding: 64px 24px 0; text-align: center; }
.franja p { margin: 0 0 14px; color: var(--tenue); font-size: 14px; }
.franja ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.franja li { font-family: var(--titulo); font-weight: 700; font-size: 24px; color: var(--tenue); letter-spacing: -.01em; }
.franja li.otro { font-family: inherit; font-weight: 500; font-size: 15px; align-self: center; }

/* ---------- secciones ---------- */
.seccion { max-width: 1200px; margin: 0 auto; padding: 104px 24px 0; }
.seccion.estrecha { max-width: 820px; }
h2 { margin: 0 0 14px; text-align: center; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 300; letter-spacing: -.025em; }
h2.izq { text-align: left; }
.sub { margin: 0 auto 40px; max-width: 620px; text-align: center; color: var(--ink-2); font-size: 18px; }
.etiqueta { display: inline-block; margin: 0 0 22px; padding: 6px 16px; border-radius: 999px; background: var(--salvia); color: var(--osc); font-size: 14px; font-weight: 500; }
.centro { text-align: center; margin-top: 40px; }

/* el problema */
.problema { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problema h2 { font-size: clamp(30px, 3.6vw, 44px); }
.dolores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dolores li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); }

/* cómo funciona */
.intro { margin: 0 0 40px; max-width: 760px; font-size: 20px; color: var(--ink-2); }
.intro b { color: var(--ink); font-weight: 600; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: paso; }
.pasos li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pasos li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: calc(50% + 44px); right: calc(-50% + 36px); height: 1px; background: var(--borde-2); }
.circulo { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--osc); color: #fff; }
.circulo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pasos h3 { margin: 12px 0 14px; font-size: 20px; font-weight: 600; }
.paso-caja { flex: 1; width: 100%; padding: 18px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--borde); display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.paso-caja p { margin: 0; font-size: 15px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chips span { padding: 3px 12px; border-radius: 999px; background: var(--bg-2); color: var(--osc); font-size: 13px; font-weight: 600; }

/* funciones */
.rejilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.tarjeta { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px 26px; }
.estado { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--borde); }
.estado > div { flex: 1; min-width: 0; }
.e-t { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.e-f { margin: 8px 0 0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--tenue); }
.barra { height: 6px; border-radius: 99px; background: var(--bg-2); display: flex; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--jade); }
.barra i.b2 { background: #2c5d8a; }
.barra i.b3 { background: var(--rojo); }
.barra i.b4 { background: var(--ambar); }
.ok { color: var(--acento); font-weight: 600; }
.warn { color: var(--ambar); font-weight: 600; }
.bad { color: var(--rojo); font-weight: 600; }
.tarjeta h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tarjeta > p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* negocio y despacho */
.importa h2 { max-width: 900px; }
.importa-txt { max-width: 760px; color: var(--ink-2); font-size: 17px; }
.importa-txt p { margin: 8px 0 14px; }
.lista { margin: 0; padding-left: 20px; }
.lista li { margin: 4px 0; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.lado { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lado-t { margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--salvia); color: var(--osc); font-weight: 600; font-size: 15px; }
.lado p:not(.lado-t) { margin: 0 0 6px; color: var(--ink-2); font-size: 17px; }

/* precios */
.periodo { display: flex; gap: 4px; width: max-content; margin: 0 auto 28px; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.periodo button { border: 0; border-radius: 9px; padding: 8px 18px; font: inherit; font-size: 14px; background: transparent; color: var(--ink-2); cursor: pointer; }
.periodo button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .precio { margin: 4px 0; color: var(--ink-2); }
.plan .precio b { font-family: var(--titulo); font-size: 40px; color: inherit; letter-spacing: -.03em; }
.plan .btn { margin-top: auto; }
.plan.destacado { background: var(--osc); color: #fff; border-color: var(--osc); }
.plan.destacado .precio, .plan.destacado p { color: #c9d3cf; }
.plan.destacado .precio b { color: #fff; }

/* preguntas */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.faq details { background: var(--card); border: 1px solid var(--borde); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-weight: 550; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--acento); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* pide tu demo */
.demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; padding-bottom: 32px; }
.demo-txt p { color: var(--ink-2); font-size: 18px; margin: 0 0 22px; }
.demo-caja { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); }
.campo { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.campo label, legend { display: block; font-weight: 550; font-size: 14px; margin-bottom: 6px; padding: 0; }
.opc { font-weight: 400; color: var(--tenue); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #faf9f7; border: 1px solid var(--borde-2); border-radius: 12px; padding: 11px 14px; min-height: 48px; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--acento); }
textarea { resize: vertical; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.op { position: relative; display: block !important; margin: 0 !important; font-weight: 500 !important; }
.op input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.op span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--borde-2); background: #faf9f7; cursor: pointer; font-size: 15px; }
.op input:checked + span { background: var(--osc); border-color: var(--osc); color: #fff; }
.op input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.acepto { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 15px; }
.acepto input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--osc); flex: none; }
.acepto a { color: var(--ink); }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--rojo); margin: 0 0 14px; font-weight: 550; }
.gracias h3 { margin: 0 0 6px; font-size: 22px; }
.gracias p { margin: 0 0 18px; color: var(--ink-2); }

/* pie */
.pie { max-width: 1200px; margin: 64px auto 0; padding: 32px 24px 48px; border-top: 1px solid var(--borde); display: flex; gap: 20px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.pie a { text-decoration: none; }

/* aparecer al bajar (landing.js; hoy solo lo usa quien lo pida con la clase «aparece») */
.js .aparece { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .aparece.vista { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .aparece { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* aviso de privacidad */
.top { max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 56px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; text-align: left; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 32px 0 10px; text-align: left; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.borrador { background: #fdf3e2; color: #8a4b08; border: 1px solid #f2d7a6; border-radius: 12px; padding: 12px 14px; font-size: 15px; }

/* ---------- celular y tableta ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .trio { grid-template-columns: 1fr; }
  .problema, .demo { grid-template-columns: 1fr; gap: 28px; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .pasos li::after { display: none; }
  .planes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-in { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .links, .entrar { display: none; }
  .hero { padding: 32px 16px 24px; }
  .acciones .btn { flex: 1 1 100%; }
  .trio, .captura, .franja, .seccion { padding-left: 16px; padding-right: 16px; }
  .captura, .seccion { padding-top: 72px; }
  .marco { padding: 5px; border-radius: 14px; }
  .marco img { border-radius: 10px; }
  .pasos, .rejilla, .dos-col, .planes, .dos { grid-template-columns: 1fr; }
  .franja li { font-size: 20px; }
  .tarjeta, .lado, .demo-caja { padding: 20px; }
  .centro .btn { width: 100%; }
  .pie { padding: 28px 16px 40px; justify-content: center; text-align: center; }
}
