/* LicitaBot — Sistema de diseño compartido
   Inspirado en limpieza tipo Stripe / claridad tipo Fintual / seriedad institucional CL
   Sin gradientes, sin sombras dramáticas, sin emojis decorativos.
*/

:root {
  /* Marca */
  --brand: #185FA5;
  --brand-dark: #114676;
  --brand-soft: #E6F1FB;
  --brand-soft-2: #F4F9FD;

  /* Neutros */
  --ink: #0F172A;          /* casi negro, ligero tinte azul */
  --ink-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E2E8F0;
  --line-2: #EEF2F6;
  --bg: #FFFFFF;
  --bg-alt: #FAFBFC;

  /* Estados */
  --ok: #16A34A;
  --warn: #D97706;
  --bad: #DC2626;

  /* Tipografía */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-tight: 920px;
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }
p  { margin: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--brand-soft); }
.section-alt { background: var(--bg-alt); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); text-decoration: none; }
.btn-on-blue { background: #fff; color: var(--brand); }
.btn-on-blue:hover { background: var(--brand-soft); text-decoration: none; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* Inputs */
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12); }
.input-on-blue {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.input-on-blue::placeholder { color: rgba(255,255,255,0.7); }
.input-on-blue:focus { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }

/* Email form (composite) */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
}
.email-form .input { flex: 1; }
.email-form-stack { width: 100%; max-width: 460px; }
.email-form-fineprint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .logo-licita { color: var(--brand); }
.logo .logo-bot { color: var(--ink); }

/* Footer */
.footer {
  background: #0B1B2D;
  color: #B8C5D6;
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer .logo { color: #fff; }
.footer .logo .logo-bot { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #B8C5D6; text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 32px;
  font-size: 13px;
  color: #7E8FA6;
  flex-wrap: wrap;
}
.footer-seo {
  max-width: 720px;
  line-height: 1.7;
}
.footer-seo strong { color: #B8C5D6; font-weight: 500; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-flat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}
.badge-flag {
  width: 16px; height: 12px;
  border-radius: 1px;
  overflow: hidden;
  display: inline-block;
  background: linear-gradient(to bottom, #fff 0% 50%, #D52B1E 50% 100%);
  position: relative;
}
.badge-flag::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 6px;
  background: var(--brand);
}
.badge-flag::after {
  content: "";
  position: absolute;
  left: 1.5px; top: 1.5px;
  width: 3px; height: 3px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.badge-soft { background: var(--brand-soft); color: var(--brand); }
.badge-neutral { background: var(--line-2); color: var(--ink-2); }
.badge-popular {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Checkmark list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z' fill='black'/></svg>") center/contain no-repeat;
}

/* Section heading helper */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 18px; color: var(--muted); line-height: 1.55; }

/* Generic icon box */
.icon-box {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.icon-box svg { width: 20px; height: 20px; }

/* Step number */
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* URL pill */
.url-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--line-2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Utility */
.text-muted { color: var(--muted); }
.text-ink-2 { color: var(--ink-2); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* Responsive */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
