/* Layout: hero azul pleno con la pantalla del ERP asomando sobre el fondo claro (como el login de BHK Contable);
   debajo, secciones anchas y aireadas con pantallas del producto recreadas en HTML. */
:root {
  --blue: #4689c9;        /* azul de marca (login del ERP) */
  --blue-deep: #2f6aa5;   /* links / hover */
  --blue-ink: #1d4470;    /* hero y bloque de contacto */
  --blue-wash: #e6eff8;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #2b3440;
  --ink-soft: #5b6878;
  --line: #d9e0e8;
  --ok: #1f8a5b;
  --ok-wash: #e2f4ec;
  --wait: #9a6a00;
  --wait-wash: #fbf0d6;
  --wa: #1fa855;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(20, 45, 80, .35), 0 2px 6px rgba(20, 45, 80, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
:focus-visible { outline: 3px solid #ffb84d; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 600; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--blue-ink); }
.btn-light:hover { background: var(--blue-wash); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; padding: .6em 1.2em; font-size: .92rem; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-link { color: #fff; padding-inline: .4em; text-decoration: underline; text-underline-offset: 5px; }
.btn-send { background: var(--blue); color: #fff; width: 100%; font-size: 1.05rem; }
.btn-send:hover { background: var(--blue-deep); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 1.05rem; }
.btn-wa:hover { background: #17924a; }
.btn-send:disabled { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-ink) 0, var(--blue-deep) 55%, var(--blue) 100%);
  color: #fff;
  margin-bottom: 110px; /* la pantalla asoma por debajo */
}
.nav { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.nav-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: end;
  padding-top: 64px;
}
.hero-copy { display: grid; gap: 24px; padding-bottom: 88px; min-width: 0; }
.hero .eyebrow { color: #cfe2f5; }
.lead { font-size: 1.15rem; max-width: 34em; color: #e7f0fa; }
.lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.hero-shot { position: relative; margin-bottom: -80px; min-width: 0; }

/* Pantallas recreadas */
.window { background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.window-bar img { height: 18px; width: auto; }
.window-co { font-size: .78rem; color: var(--ink-soft); }
.window-body { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.shot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shot-title { font: 600 1rem var(--f-display); }

.grid { width: 100%; border-collapse: collapse; font-size: .82rem; }
.grid th { text-align: left; font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 10px 8px 0; white-space: nowrap; }
.grid td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.grid .num { text-align: right; }
.grid th:last-child, .grid td:last-child { padding-right: 0; }
.table-scroll { overflow-x: auto; }

.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.pill-blue { background: var(--blue-wash); color: var(--blue-deep); }
.pill-ok { background: var(--ok-wash); color: var(--ok); }
.pill-wait { background: var(--wait-wash); color: var(--wait); }

.float-card {
  position: absolute; left: -36px; bottom: -34px;
  display: grid; gap: 2px; padding: 16px 20px;
  background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.float-label { font-size: .74rem; color: var(--ink-soft); }
.float-value { font-size: 1.3rem; font-weight: 500; }
.float-sub { font-size: .76rem; color: var(--wait); font-weight: 600; }

/* Secciones */
.section { padding-block: 96px; }
.section-tint { background: var(--surface); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.section-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }
.product-logo { height: 26px; width: auto; }

.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.offer article { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--ink); }
.offer p { color: var(--ink-soft); }
.offer a { font-weight: 600; text-underline-offset: 4px; }

/* Módulos del ERP */
.modules { display: grid; gap: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  font: 600 .98rem var(--f-body); color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .55em 1.25em; cursor: pointer;
}
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.module-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start;
  background: var(--bg); border-radius: 24px; padding: 40px;
}
.module-copy { display: grid; gap: 16px; min-width: 0; }
.module-copy h3 { font-size: 1.7rem; }
.module-copy p { color: var(--ink-soft); }
.module-shot { min-width: 0; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.flow:empty { display: none; }
.flow span { padding: .3em .75em; border-radius: 6px; background: var(--bg); }
.flow span.on { background: var(--blue); color: #fff; }
.flow i { font-style: normal; color: var(--line); }
.fineprint { font-size: .82rem; color: var(--ink-soft); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}

.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 72px; }
.traits div { display: grid; gap: 8px; align-content: start; }
.traits h3 { font-size: 1.1rem; }
.traits p { color: var(--ink-soft); font-size: .98rem; }

/* Facturación con IA */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ai-copy { display: grid; gap: 20px; min-width: 0; }
.ai-shot { display: grid; gap: 18px; min-width: 0; }
.bubble {
  justify-self: end; max-width: 30em; display: flex; gap: 14px; align-items: center;
  background: var(--blue-ink); color: #fff; padding: 18px 22px; border-radius: 22px 22px 4px 22px;
  font-size: 1.02rem; line-height: 1.45;
}
.wave { display: flex; gap: 3px; align-items: center; height: 26px; flex: none; }
.wave i { width: 3px; border-radius: 2px; background: #9cc4ec; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 10px; } .wave i:nth-child(2) { height: 22px; animation-delay: .15s; }
.wave i:nth-child(3) { height: 14px; animation-delay: .3s; } .wave i:nth-child(4) { height: 26px; animation-delay: .45s; }
.wave i:nth-child(5) { height: 12px; animation-delay: .6s; }
@keyframes wave { 50% { transform: scaleY(.45); } }
.draft { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.draft-meta, .totals { margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.draft-meta div, .totals div { display: flex; justify-content: space-between; gap: 16px; }
.draft-meta dt, .totals dt { color: var(--ink-soft); }
.draft-meta dd, .totals dd { margin: 0; }
.totals { justify-self: end; min-width: 240px; }
.totals .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; font-size: 1.05rem; }
.totals .total dt { color: var(--ink); }
.draft-btn { justify-self: end; background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem; padding: .6em 1.3em; border-radius: 999px; }

/* Contacto */
.contact { background: var(--blue-ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-copy { display: grid; gap: 20px; min-width: 0; }
.contact .eyebrow { color: #cfe2f5; }
.contact .section-lead { color: #dbe8f5; }
.contact-mail { color: #dbe8f5; }
.contact-mail a { color: #fff; font-weight: 600; }
.contact-form { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 32px; display: grid; gap: 20px; min-width: 0; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input:not([type="radio"]), .field textarea {
  width: 100%; font: 400 1rem var(--f-body); color: var(--ink);
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; resize: vertical;
}
.field input:not([type="radio"]):focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .5em 1.05em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; }
.chips input:checked + span { background: var(--blue-wash); border-color: var(--blue); color: var(--blue-ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid #ffb84d; outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-done { gap: 12px; }
#contact-done p { color: var(--ink-soft); }
.form-error { color: #b3261e; font-size: .9rem; font-weight: 500; }

/* Footer */
.footer { background: var(--surface); padding-block: 32px; font-size: .9rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero { margin-bottom: 70px; }
  .hero-body, .module-panel, .ai, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-body { gap: 40px; padding-top: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-shot { margin-bottom: -50px; }
  .float-card { left: 16px; }
  .offer, .traits { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding-block: 72px; }
  .module-panel { padding: 24px; gap: 28px; }
  .ai, .contact-grid { gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .nav-links { display: none; }
  .nav .btn-ghost { margin-left: auto; }
  .hero-shot .grid th:nth-child(2), .hero-shot .grid td:nth-child(2) { display: none; }
  .window-co { display: none; }
  .hero-shot .window-body { padding: 14px; }
  .hero-shot .grid { font-size: .7rem; }
  .hero-shot .grid td { padding-right: 6px; }
  .hero-shot .pill { font-size: .62rem; padding-inline: .55em; }
  .contact-form { padding: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .module-panel { padding: 18px; border-radius: 18px; }
  .totals { min-width: 0; width: 100%; }
  .footer-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
  .btn { transition: none; }
}
