/* ============================================================
   Sistema de Control y Trazabilidad de Laboratorio Magistral
   Landing comercial B2B — paleta azul acero (petróleo corregido)
   ============================================================ */

:root {
  --bg: #f6f9fb;
  --bg-alt: #eef5f9;
  --surface: #ffffff;
  --ink: #0e2233;
  --ink-soft: #4d6779;
  --teal-900: #0b2f4a;
  --teal-800: #0e3f60;
  --teal-700: #0f4d73;
  --teal-600: #15628f;
  --teal-500: #1f78ab;
  --teal-100: #dcebf3;
  --teal-50: #eef6fa;
  --border: #d7e4ea;
  --amber: #c98a2b; /* uso mínimo, solo acentos de advertencia/roadmap */
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 34, 51, 0.08);
  --max-w: 1160px;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  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-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}

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

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

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

.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: var(--bg-alt); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  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(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-800); box-shadow: var(--shadow-md); }

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

.btn-ghost {
  background: transparent;
  color: var(--teal-800);
}

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--teal-900);
  font-size: 1.05rem;
}

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

.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(--teal-700); }

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

.nav-toggle { display: none; }

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

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

.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, 3.1rem);
  line-height: 1.12;
  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-weight: 700; color: var(--teal-800); }

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.hero-visual .browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.hero-visual .browser-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--teal-50);
  font-size: 0.85rem;
}

.mock-row strong { color: var(--teal-900); font-size: 0.9rem; }

.mock-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-100);
  color: var(--teal-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mock-tag.done { background: #dff1e4; color: #1f6d3c; }
.mock-tag.pending { background: #fbeed2; color: #92620d; }

/* ---------- 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(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-100);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

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

.card.problem { border-left: 3px solid #c9532b; }
.card.problem .icon { background: #fbe6de; color: #c9532b; }

/* ---------- 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(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}

.step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

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

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

/* ---------- Capacidades ---------- */
.cap-group h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-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: "✓";
  color: var(--teal-600);
  font-weight: 800;
  flex-shrink: 0;
}

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

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

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

.chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-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(--border);
}

.arch-table th {
  color: var(--teal-800);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.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(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.roles-table th {
  background: var(--teal-800);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

/* ---------- Qué no hace ---------- */
.honesty-box {
  background: var(--teal-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-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: 10px;
  font-size: 0.94rem;
}

.honesty-list li::before { content: "—"; color: #6fa8cf; font-weight: 800; }

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

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

.roadmap-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fbeed2;
  color: #92620d;
  white-space: nowrap;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-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(--teal-800); }
.cta-final .btn-primary:hover { background: var(--teal-50); }
.cta-final .btn-secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-final .btn-secondary:hover { background: rgba(255,255,255,0.1); }

.cta-price {
  margin-top: 22px;
  font-size: 0.9rem;
  color: #b8d4e4;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  background: var(--teal-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; }
