/* DMS MCP · HITECH LAB — hoja de estilos única (sin estilos en línea: la CSP solo permite este origen).
   Identidad tomada del logo y de hitech.com.co: verde azulado #339989, verde oscuro #123e35, menta y crema.
   Tipografías Manrope (títulos) y DM Sans (texto), alojadas en este mismo origen. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/dmsans-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --cream: #f6f7f3;
  --mint: #dcebe4;
  --ink: #182e2b;
  --muted: #657570;
  --line: #dfe5de;
  --dark: #123e35;
  --dark-2: #0d2e27;
  --green: #227f6e;
  --teal: #339989;
  --teal-soft: #e3f2ee;
  --ok: #0a7a4b;
  --warn: #9a5b00;
  --bad: #b3261e;
  --lilac: #cdbdf7;
  --shadow: 0 1px 2px rgb(18 62 53 / 6%), 0 10px 28px rgb(18 62 53 / 8%);
  --radius: 14px;
  --maxw: 1120px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading: "Manrope", "DM Sans", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--teal); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 90%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-hitech img { height: 26px; width: auto; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.brand-product { white-space: nowrap; font-family: var(--heading); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.btn-small { padding: 6px 12px; font-size: .88rem; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Héroe */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--cream), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }

/* Ejemplo de conversación: tarjeta verde oscuro, como en hitech.com.co */
.chat { background: var(--dark); color: #e9f3ef; border-radius: 20px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 24px 60px rgb(18 62 53 / 28%); }
.chat .q, .chat .a { padding: 12px 15px; border-radius: 12px; max-width: 94%; font-size: .96rem; }
.chat .q { background: var(--lilac); color: #1d1540; justify-self: end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat .a { background: rgb(255 255 255 / 9%); border-bottom-left-radius: 4px; }
.chat .a b { color: #fff; }
.chat .tag { font-size: .72rem; color: #9fc4b9; text-align: center; letter-spacing: .04em; text-transform: uppercase; }

/* Secciones y tarjetas */
section { padding: 60px 0; }
section.alt { background: var(--cream); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { box-shadow: none; }
.card .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--green); font-family: var(--heading); font-weight: 800; margin-bottom: 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; font-family: var(--heading); font-weight: 700; margin-bottom: 14px; }

/* Planes */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.plan .badge { align-self: flex-start; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.plan .price { font-family: var(--heading); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan .price small { font-family: var(--font); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 24px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.pill { font-size: .7rem; background: var(--mint); color: var(--dark); padding: 1px 9px; border-radius: 999px; margin-left: 6px; font-weight: 600; white-space: nowrap; }

/* Preguntas frecuentes */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details p { color: var(--muted); }

/* Formularios */
.form-card { max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .94rem; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid #cdd7d0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; }
.err { color: var(--bad); font-size: .87rem; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.choice span b { display: block; }
.choice input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); background: var(--teal-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--green); }
.notice { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--cream); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, #fff); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, #fff); }

/* Consola del operador */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status.active { background: color-mix(in srgb, var(--ok) 14%, #fff); color: var(--ok); }
.status.suspended { background: color-mix(in srgb, var(--warn) 16%, #fff); color: var(--warn); }
.status.cancelled { background: color-mix(in srgb, var(--bad) 12%, #fff); color: var(--bad); }
.bar { height: 6px; background: var(--mint); border-radius: 999px; overflow: hidden; margin-top: 6px; min-width: 110px; }
.bar > i { display: block; height: 100%; background: var(--teal); }
.bar > i.w0 { width: 0; } .bar > i.w10 { width: 10%; } .bar > i.w20 { width: 20%; } .bar > i.w30 { width: 30%; }
.bar > i.w40 { width: 40%; } .bar > i.w50 { width: 50%; } .bar > i.w60 { width: 60%; } .bar > i.w70 { width: 70%; }
.bar > i.w80 { width: 80%; } .bar > i.w90 { width: 90%; background: var(--warn); } .bar > i.w100 { width: 100%; background: var(--bad); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input { max-width: 340px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(8 24 20 / 55%); }
dialog menu { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 18px 0 0; }
.hist { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--muted); }

/* Pie */
footer { background: var(--dark); color: #cfe3dc; padding: 44px 0 36px; font-size: .92rem; }
footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 40%); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
footer .foot-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
footer p { color: #a9c9be; margin-bottom: .5em; }
footer .foot-links { display: grid; gap: 6px; align-content: start; }
footer .legal-line { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 14%); padding-top: 18px; color: #8fb4a8; font-size: .85rem; }
.legal { max-width: 78ch; }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.draft { border-left: 4px solid var(--warn); padding: 10px 16px; background: color-mix(in srgb, var(--warn) 9%, #fff); border-radius: 8px; margin-bottom: 24px; }

@media (max-width: 1120px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans, .grid.c3, .grid.c4, .row2, .choices { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  .brand-hitech img { height: 22px; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Mi cuenta */
.space-top { margin-top: 36px; }
.price-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; word-break: break-all; }
.code-block { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; background: var(--dark); color: #dff1ea; border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 0; }

/* Formularios de acceso (ingresar, establecer contraseña, autorizar) */
.narrow { max-width: 460px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.linklike:hover { text-decoration: none; }
