:root {
    --ground: #f1f3f0;
    --surface: #ffffff;
    --surface-2: #f7f8f6;
    --ink: #16202a;
    --ink-soft: #4c5964;
    --ink-faint: #8493a0;
    --primary: #2c5b79;
    --primary-ink: #21486a;
    --accent: #ec6316;
    --accent-ink: #c14e0c;
    --line: #dde1dd;
    --line-strong: #c7cdc7;
    --good: #2e7d59;
    --plate: #16202a;
    --hazard: repeating-linear-gradient(-45deg, #ec6316 0 14px, #16202a 14px 28px);
    --shadow: 0 1px 2px rgba(22,32,42,.06), 0 12px 30px -14px rgba(22,32,42,.22);
    --shadow-lift: 0 2px 4px rgba(22,32,42,.08), 0 24px 48px -20px rgba(22,32,42,.35);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #12161a;
      --surface: #1a2026;
      --surface-2: #212831;
      --ink: #eef2f4;
      --ink-soft: #aeb9c1;
      --ink-faint: #7d8a94;
      --primary: #64a0c8;
      --primary-ink: #8ab9d9;
      --accent: #ff7a33;
      --accent-ink: #ff924f;
      --line: #2a333c;
      --line-strong: #38434e;
      --good: #4bbb87;
      --plate: #05090c;
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -16px rgba(0,0,0,.66);
      --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 26px 54px -22px rgba(0,0,0,.8);
    }
  }
  :root[data-theme="dark"] {
    --ground: #12161a;
    --surface: #1a2026;
    --surface-2: #212831;
    --ink: #eef2f4;
    --ink-soft: #aeb9c1;
    --ink-faint: #7d8a94;
    --primary: #64a0c8;
    --primary-ink: #8ab9d9;
    --accent: #ff7a33;
    --accent-ink: #ff924f;
    --line: #2a333c;
    --line-strong: #38434e;
    --good: #4bbb87;
    --plate: #05090c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -16px rgba(0,0,0,.66);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 26px 54px -22px rgba(0,0,0,.8);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: "Saira Condensed", "IBM Plex Sans", sans-serif; text-wrap: balance; margin: 0; line-height: 1.02; letter-spacing: .002em; }
  a { color: inherit; }
  .wrap { width: min(1120px, 92vw); margin: 0 auto; }
  .eyebrow {
    font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
  }
  .mono { font-family: "IBM Plex Mono", monospace; }

  /* ---- buttons ---- */
  .btn { display: inline-flex; align-items: center; gap: .5em; font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600; font-size: 15.5px; text-decoration: none; padding: 13px 22px; border-radius: 9px;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
  .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 var(--accent-ink), 0 10px 22px -10px var(--accent); }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 var(--accent-ink), 0 14px 26px -10px var(--accent); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn-ghost:hover { border-color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .btn-lg { padding: 16px 30px; font-size: 17px; }

  /* ---- header ---- */
  header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Saira Condensed", sans-serif;
    font-weight: 800; font-size: 25px; letter-spacing: .01em; text-decoration: none; color: var(--ink); }
  .brand .mk { width: 30px; height: 30px; border-radius: 7px; background: var(--primary); color: #fff;
    display: grid; place-items: center; font-size: 17px; box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 22%, transparent); }
  .nav-actions { display: flex; align-items: center; gap: 14px; }
  .nav-actions .signin { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
  .nav-actions .signin:hover { color: var(--ink); }

  /* ---- hero ---- */
  .hero { padding: 66px 0 40px; position: relative; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
  .hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 800; text-transform: uppercase; }
  .hero h1 .hl { color: var(--accent); }
  .hero .lede { font-size: 19.5px; color: var(--ink-soft); max-width: 30ch; margin: 22px 0 30px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
  .hero-note b { color: var(--ink-soft); font-weight: 600; }

  /* ---- work order mock ---- */
  .mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift);
    overflow: hidden; transform: rotate(-1.1deg); }
  .mock-top { background: var(--hazard); height: 8px; }
  .mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
  .plate { font-family: "IBM Plex Mono", monospace; font-weight: 500; letter-spacing: .12em; font-size: 17px;
    background: #fff; color: #0f1a16; border: 2px solid var(--plate); border-radius: 6px; padding: 5px 10px 4px;
    position: relative; box-shadow: inset 0 8px 0 -6px var(--primary); }
  .pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; letter-spacing: .02em;
    background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink);
    border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); white-space: nowrap; }
  .mock-veh { padding: 0 18px 12px; }
  .mock-veh .v { font-weight: 600; font-size: 16px; }
  .mock-veh .k { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink-faint); }
  .mock-items { border-top: 1px dashed var(--line-strong); padding: 12px 18px; display: flex; flex-direction: column; gap: 9px; }
  .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
  .row .d { color: var(--ink-soft); }
  .row .a { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
  .mock-tot { border-top: 1px solid var(--line); padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
  .mock-tot .row .d { color: var(--ink-faint); font-size: 13px; }
  .mock-tot .total { font-size: 17px; font-weight: 700; }
  .mock-tot .total .a { color: var(--accent-ink); }

  /* ---- section frame ---- */
  section { padding: 64px 0; }
  .sec-head { max-width: 40ch; margin-bottom: 40px; }
  .sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; text-transform: uppercase; margin-top: 12px; }
  .sec-head p { color: var(--ink-soft); font-size: 18px; margin: 14px 0 0; }

  /* ---- paper→app band ---- */
  .band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: stretch; }
  .compare .col { border-radius: 14px; padding: 26px; border: 1px solid var(--line); background: var(--surface-2); }
  .compare .before { }
  .compare .after { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
  .compare h3 { font-family: "IBM Plex Sans", sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
  .compare .after h3 { color: var(--primary-ink); }
  .compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .compare li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-soft); }
  .compare li .ic { flex: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
  .before li .ic { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-faint); }
  .after li .ic { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
  .compare .arrow { align-self: center; font-size: 26px; color: var(--accent); }

  /* ---- features ---- */
  .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feat { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 24px; box-shadow: var(--shadow); }
  .feat .fi { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 21px;
    background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-ink); margin-bottom: 14px; }
  .feat h3 { font-family: "IBM Plex Sans", sans-serif; font-size: 17.5px; font-weight: 700; }
  .feat p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

  /* ---- pricing ---- */
  .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
  .plan { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
  .plan.feat-plan { border-color: var(--accent); box-shadow: var(--shadow-lift); position: relative; }
  .plan.soon { opacity: .72; }
  .plan.soon .pname, .plan.soon .pprice { color: var(--ink-faint); }
  .plan .tag.soon-tag { background: var(--ink-faint); }
  .btn-disabled { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-faint);
    border-color: var(--line); cursor: not-allowed; pointer-events: none; }
  .plan .tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 11.5px;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; }
  .plan .pname { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 28px; text-transform: uppercase; }
  .plan .pprice { font-family: "IBM Plex Mono", monospace; font-size: 30px; font-weight: 500; margin: 6px 0 2px; letter-spacing: -.01em; }
  .plan .pprice small { font-size: 14px; color: var(--ink-faint); font-weight: 400; }
  .plan .pdesc { color: var(--ink-soft); font-size: 14.5px; min-height: 42px; }
  .plan ul { list-style: none; margin: 18px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
  .plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
  .plan li .ck { color: var(--good); flex: none; font-weight: 700; }
  .plan .btn { margin-top: auto; justify-content: center; }
  .plan-foot { text-align: center; color: var(--ink-faint); font-size: 14px; margin-top: 22px; }

  /* ---- trust ---- */
  .trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .trust .t { display: flex; gap: 12px; align-items: flex-start; }
  .trust .t .ti { font-size: 20px; }
  .trust .t b { display: block; font-weight: 600; font-size: 15px; }
  .trust .t span { color: var(--ink-soft); font-size: 13.5px; }

  /* ---- final cta ---- */
  .final { background: var(--ink); color: #f4f7f9; border-radius: 20px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
  :root[data-theme="dark"] .final, :root:not([data-theme="light"]) .final { background: #0c1013; }
  .final::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--hazard); }
  .final h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; text-transform: uppercase; color: #fff; }
  .final p { color: #b9c4cc; font-size: 18px; max-width: 44ch; margin: 16px auto 30px; }
  .final .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }
  .final .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
  .final-contact { margin: 24px 0 0; color: #9fb0b9; font-size: 14.5px; }
  .final-contact a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

  footer.site { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }
  /* Especificidad footer.site .wrap para ganarle a la regla del header (.site .wrap height:66px). */
  footer.site .wrap { height: auto; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
  footer .brand { font-size: 20px; }
  footer .mono { word-break: break-all; }
  @media (max-width: 620px) {
    footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .mock { max-width: 400px; margin: 0 auto; transform: rotate(-.8deg); }
    .compare { grid-template-columns: 1fr; gap: 12px; }
    .compare .arrow { transform: rotate(90deg); justify-self: center; align-self: center; margin: 4px 0; }
    .feat-grid, .price-grid { grid-template-columns: 1fr; }
    .trust { grid-template-columns: 1fr 1fr; }
    .final { padding: 40px 22px; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Isotipo en el brand */
  .brand-ico { width: 30px; height: 30px; border-radius: 7px; vertical-align: middle; margin-right: 2px; }
  .brand .mk { display: none; }

  /* FAQ (acordeón nativo) */
  .faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
  .faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq p { margin: 0 0 16px; color: var(--ink-soft); }

  /* Botón flotante de WhatsApp */
  .wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #0b2e17; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 999px;
    font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px -6px rgba(0,0,0,.4); }
  .wa-float svg { width: 26px; height: 26px; flex: none; }
  .wa-float .wa-txt { white-space: nowrap; }
  @media (max-width: 560px) { .wa-float { padding: 14px; } .wa-float .wa-txt { display: none; } }

/* Enlace 'ver más' en tarjetas de features (páginas SEO) */
.feat-more { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Tarjeta de función completa como enlace (páginas SEO) */
a.feat { text-decoration: none; color: inherit; display: block;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.feat:hover { box-shadow: var(--shadow-lift); border-color: var(--accent); transform: translateY(-2px); }
a.feat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Breadcrumb visual (páginas SEO de funcionalidades) */
.crumbs { font-size: 13px; padding: 12px 0 2px; }
.crumbs .wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-faint); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
