/* ============================================================
   Sistema de Control y Trazabilidad de Laboratorio Magistral
   Landing comercial B2B — identidad "rótulo de preparado"
   Paper claro + azul prusia + ámbar (frasco de vidrio ámbar)
   ============================================================ */

:root {
  --paper: #f6f7f2;
  --paper-alt: #eef1e8;
  --surface: #ffffff;
  --ink: #12232b;
  --ink-soft: #4c616b;
  --line: #d9ded2;

  --blue-900: #0a2c40;
  --blue-800: #0d3b54;
  --blue-700: #135577;
  --blue-600: #1b6b92;
  --blue-500: #2a87ac;
  --blue-100: #dceaf0;
  --blue-50: #f0f7fa;

  --amber-700: #8f5410;
  --amber-600: #ad6a18;
  --amber-500: #c1811f;
  --amber-100: #f1dfb9;
  --amber-50: #fbf3e3;

  --green-ink: #1f6d3c;
  --green-bg: #dff1e4;

  --radius-sm: 6px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 34, 48, 0.07);
  --shadow-md: 0 10px 28px rgba(10, 34, 48, 0.1);
  --max-w: 1160px;

  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  display: inline-block;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-bottom: 12px;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0;
}

p { margin: 0 0 12px; color: var(--ink-soft); }

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { font-size: 1.05rem; }

.alt-bg {
  background-color: var(--paper-alt);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    var(--line) 27px,
    var(--line) 28px
  );
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-800); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-600);
}
.btn-secondary:hover { background: var(--blue-50); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.08rem;
}

.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--blue-700); }

.nav-cta { display: flex; gap: 10px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(circle at 84% 0%, var(--blue-100) 0%, transparent 55%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.14;
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-trust {
  margin-top: 34px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-trust span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-800);
}

/* ---------- Hero visual: rótulo de preparado ---------- */
.hero-visual {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.hero-visual-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.hero-visual-head svg { flex-shrink: 0; }

.rx-ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding-top: 9px;
}
.rx-ticket:last-child { margin-bottom: 0; }

.rx-ticket::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 9px;
  background-image: radial-gradient(circle at 7px 4px, var(--blue-50) 4px, transparent 4.3px);
  background-size: 14px 9px;
  background-repeat: repeat-x;
}

.rx-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.rx-ticket-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 6px 14px 12px;
}

.rx-ticket-body strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-900);
  font-size: 0.92rem;
  display: block;
}

.rx-ticket-body .rx-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.rx-stamp {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px dashed currentColor;
  border-radius: 20px;
  display: inline-block;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.rx-stamp--recibido { color: var(--amber-700); background: var(--amber-50); }
.rx-stamp--proceso { color: var(--blue-700); background: var(--blue-50); }
.rx-stamp--listo { color: var(--green-ink); background: var(--green-bg); }
.rx-stamp--generado { color: var(--ink-soft); background: var(--paper-alt); }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

.card p:last-child { margin-bottom: 0; }

.card.problem { border-left: 3px solid var(--amber-600); }
.card.problem .icon { background: var(--amber-50); color: var(--amber-700); }

/* ---------- Cómo funciona (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-700);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 20px 18px 22px;
}

.step .num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  margin-bottom: 12px;
}

.step p { font-size: 0.92rem; margin-bottom: 0; }

.steps-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--blue-800);
}

/* ---------- Capacidades ---------- */
.cap-group h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  margin-bottom: 14px;
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-list li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink);
  align-items: flex-start;
}

.cap-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Producto real (capturas) ---------- */
.screen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.screen-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.screen-card-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  flex-shrink: 0;
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-caption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.screen-featured {
  margin-bottom: 28px;
}

.screen-grid {
  margin-top: 0;
}

.screen-grid .screen-card {
  margin-bottom: 0;
}

.screen-grid-item p.screen-caption {
  margin-top: 10px;
  font-size: 0.88rem;
}

/* ---------- Arquitectura ---------- */
.arch-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.arch-block img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 18px 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
}

.arch-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}

.arch-table th, .arch-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.arch-table th {
  font-family: var(--font-mono);
  color: var(--blue-800);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-foot {
  margin-top: 16px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Roles ---------- */
.roles-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.roles-table th, .roles-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.roles-table th {
  background: var(--blue-800);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roles-table tr:last-child td { border-bottom: none; }

/* ---------- Qué no hace ---------- */
.honesty-box {
  background: var(--blue-900);
  color: #e7eef4;
  border-radius: var(--radius);
  padding: 40px;
}

.honesty-box h2 { color: #fff; }
.honesty-box .section-head p { color: #a9c3d6; }
.honesty-box .section-head { margin-bottom: 32px; }
.honesty-box .eyebrow { color: var(--amber-500); }
.honesty-box .eyebrow::before { background: var(--amber-500); }

.honesty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .honesty-list { grid-template-columns: 1fr; } }

.honesty-list li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.honesty-list li::before {
  content: "—";
  font-family: var(--font-mono);
  color: var(--amber-500);
  font-weight: 700;
}

/* ---------- Roadmap ---------- */
.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.94rem;
}

.roadmap-tag {
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border: 1.5px dashed var(--blue-700);
  border-radius: 20px;
  color: var(--blue-700);
  background: var(--blue-50);
  white-space: nowrap;
  transform: rotate(-2deg);
  display: inline-block;
}

.roadmap-tag--optin {
  border-color: var(--amber-600);
  color: var(--amber-700);
  background: var(--amber-50);
  transform: rotate(2deg);
}

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.cta-final h2 { color: #fff; }
.cta-final p { color: #cfe3ee; max-width: 620px; margin: 0 auto 28px; }

.cta-final .btn-row { justify-content: center; }

.cta-final .btn-primary { background: #fff; color: var(--blue-800); }
.cta-final .btn-primary:hover { background: var(--blue-50); }

.cta-price {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #b8d4e4;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  background: var(--blue-900);
  color: #9db8cc;
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-row a { text-decoration: none; color: #cbe0ec; }

.footer-logo {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.small { font-size: 0.85rem; }
