/* Quorker — Home (one page). Usa ../marca/kit-tokens.css y ../marca/kit-ui.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--kit-bg); color: var(--kit-ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.bg-paper { background: var(--kit-paper); border-block: 1px solid var(--kit-line); }

/* ---------- Hero: widget de reserva + panel en vivo ---------- */
.hero { position: relative; overflow: hidden; }
.hero .kit-hero__title { font-size: clamp(2.75rem, 5.2vw + .5rem, 5rem); }
.hero-checks { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-6) 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.hero-checks li { display: flex; gap: .5em; align-items: center; }
.hero-checks .kit-icon { width: 18px; height: 18px; }

.demo-stage { position: relative; display: grid; gap: var(--sp-4); }
.booking { max-width: 360px; }
.booking .kit-screen__body { gap: var(--sp-4); }
.booking__space { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--kit-line); border-radius: var(--radius-sm); }
.booking__space b { display: block; font-size: .9375rem; }
.booking__days, .booking__slots { display: grid; gap: 6px; }
.booking__days { grid-template-columns: repeat(5, 1fr); }
.booking__slots { grid-template-columns: repeat(3, 1fr); }
.booking button.opt { font: inherit; font-size: .8125rem; padding: .55em 0; border: 1px solid var(--kit-line); background: var(--kit-paper); border-radius: 10px; cursor: pointer; color: var(--kit-ink); display: grid; line-height: 1.25; }
.booking button.opt small { font-size: .6875rem; color: var(--kit-detail); }
.booking button.opt:hover { border-color: var(--kit-ink); }
.booking button.opt.is-active { background: var(--kit-ink); color: var(--kit-paper); border-color: var(--kit-ink); }
.booking button.opt.is-active small { color: color-mix(in srgb, var(--kit-paper) 70%, transparent); }
.booking button.opt[disabled] { background: var(--kit-soft); border-color: var(--kit-soft); color: var(--kit-detail); cursor: not-allowed; text-decoration: line-through; }
.booking__pay { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.booking__pay .kit-screen__muted { line-height: 1.3; }

.booking { position: relative; z-index: 2; }
.panel-live { max-width: 400px; justify-self: end; width: 100%; margin-top: -36px; position: relative; z-index: 1; padding-top: 0; }
.kit-footer { padding-bottom: 88px; }
.panel-live .kit-screen__row { transition: background .6s; }
.panel-live .is-new { background: color-mix(in srgb, var(--kit-accent) 30%, var(--kit-paper)); border-radius: 10px; animation: pop .5s ease; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } }
.demo-hint { margin: 0; font-size: .75rem; color: var(--kit-detail); line-height: 1.4; justify-self: end; max-width: 400px; width: 100%; }
@media (max-width: 900px) { .panel-live { margin-top: 0; justify-self: stretch; max-width: none; } .booking { max-width: none; } .demo-hint { justify-self: stretch; max-width: none; } }

/* ---------- Prueba social (a producir) ---------- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.proof__logo { display: grid; place-items: center; min-height: 72px; border: 1px dashed var(--kit-line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .6875rem; color: var(--kit-detail); text-align: center; padding: var(--sp-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Problema ---------- */
.kit-compare h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; margin: var(--sp-2) 0 0; }

/* ---------- Dos caras del producto ---------- */
.faces__tabs { margin-bottom: var(--sp-6); }
.faces__panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.faces__panel[hidden] { display: none; }
.faces__list { margin: var(--sp-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--sp-4); }
.faces__list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); align-items: start; }
.faces__list .kit-icon-box { width: 40px; height: 40px; }
.faces__list b { display: block; font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
.faces__list span { color: var(--color-text-soft); font-size: .9375rem; }
.faces__screens { display: grid; gap: var(--sp-4); }
.space-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.space-card { border: 1px solid var(--kit-line); border-radius: 12px; overflow: hidden; }
.space-card__img { aspect-ratio: 4 / 3; background: var(--kit-soft); display: grid; place-items: center; font-size: .6875rem; color: var(--kit-detail); text-align: center; padding: 6px; }
.space-card__body { padding: 8px 10px; font-size: .8125rem; }
.space-card__body b { display: block; }
.hours { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-3); }
.hours__n { font-family: var(--font-serif); font-weight: 600; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; }
@media (max-width: 900px) { .faces__panel { grid-template-columns: 1fr; } }

/* ---------- Módulos ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-4); }

/* ---------- CRM ---------- */
.crm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.crm .kit-heading__title { color: var(--kit-paper); }
.crm-list { margin: var(--sp-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--sp-3); color: color-mix(in srgb, var(--kit-paper) 80%, transparent); }
.crm-list li { display: flex; gap: .7em; align-items: baseline; }
.crm-list li::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--kit-accent); transform: translateY(-.05em); }
.segment { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--sp-4); align-items: center; padding: var(--sp-4); border: 1px solid var(--kit-line); border-radius: var(--radius-sm); }
.segment b { font-size: .9375rem; }
.segment .n { grid-row: span 2; font-family: var(--font-serif); font-weight: 600; font-size: 2rem; letter-spacing: -.04em; }
.segment.is-hot { border-color: var(--kit-ink); background: color-mix(in srgb, var(--kit-accent) 12%, var(--kit-paper)); }
.segment__action { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--kit-line); font-size: .8125rem; }
@media (max-width: 900px) { .crm { grid-template-columns: 1fr; } }

/* ---------- Comparación ---------- */
.vs { width: 100%; border-collapse: collapse; background: var(--kit-paper); border: 1px solid var(--kit-line); font-size: .9375rem; min-width: 640px; }
.vs-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.vs th, .vs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--kit-line); vertical-align: top; }
.vs thead th { font-size: .875rem; font-weight: 600; color: var(--kit-detail); background: var(--kit-bg); }
.vs thead th.is-us { background: var(--kit-ink); color: var(--kit-paper); }
.vs td.is-us { background: color-mix(in srgb, var(--kit-accent) 14%, var(--kit-paper)); font-weight: 500; }
.vs tbody th { font-weight: 600; width: 22%; }
.vs tr:last-child > * { border-bottom: 0; }
.vs .no { color: var(--kit-detail); }

/* ---------- Cómo se cobra ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); align-items: stretch; }
.pricing .kit-plan { box-shadow: var(--shadow-paper); border: 2px solid var(--kit-ink); }
.pricing__side { display: grid; gap: var(--sp-4); align-content: start; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Mostrar/ocultar para el formulario enviado */
.form-ok { display: grid; gap: var(--sp-3); align-content: center; justify-items: start; }

/* ---------- Ajustes de revisión ---------- */
.hero.kit-hero { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.faces__panel { align-items: start; }
.faces__panel > div:first-child { padding-top: var(--sp-4); }
@media (min-width: 901px) { .faq-wrap > .kit-heading { position: sticky; top: 100px; } }

/* Tabla: el borde y las esquinas van en el contenedor */
.vs-wrap { border: 1px solid var(--kit-line); border-radius: var(--radius-md); background: var(--kit-paper); }
.vs { border: 0; }

@media (max-width: 700px) {
  .sec-head { margin-bottom: var(--sp-6); }
  .faces__tabs { margin-bottom: 0; }
  .faces__panel { gap: var(--sp-5); }
  .faces__panel > div:first-child { padding-top: 0; }

  /* Módulos compactos: ícono a la izquierda */
  .modules-grid { grid-template-columns: 1fr; gap: 10px; }
  .modules-grid .kit-feature { grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .modules-grid .kit-icon-box { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
  .modules-grid .kit-feature__title { margin: 0; font-size: 1.0625rem; }
  .modules-grid .kit-feature__text { font-size: .875rem; }

  /* Tabla comparativa como tarjetas */
  .vs-wrap { border: 0; background: transparent; overflow: visible; }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; min-width: 0; width: auto; }
  .vs thead { display: none; }
  .vs { background: transparent; }
  .vs tr { background: var(--kit-paper); border: 1px solid var(--kit-line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
  .vs tbody th { width: auto; padding: 14px 16px 6px; border: 0; font-family: var(--font-serif); font-size: 1.0625rem; }
  .vs td { padding: 8px 16px; border: 0; font-size: .9375rem; }
  .vs td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--kit-detail); margin-bottom: 2px; }
  .vs td.is-us { margin: 0 8px; border-radius: 10px; padding: 10px 12px; }
  .vs td.is-us::before { color: var(--kit-ink); }
  .vs td:last-child { padding-bottom: 14px; }
}
