:root {
  --primary: #0f3d5c;
  --primary-dark: #0a2d45;
  --accent: #13616b;
  --accent-light: #eef7f8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --licita: #13616b;
  --secaudit: #b71c1c;
  --signalsale: #4f46e5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(19, 97, 107, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(15, 61, 92, 0.06), transparent),
    var(--bg);
}

.hero-inner {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(19, 97, 107, 0.2);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  max-width: 720px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost:hover {
  background: rgba(15, 61, 92, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* Colores por sistema en los botones de las tarjetas */
.licita-link:hover {
  border-color: #13616b;
  color: #13616b;
  background: rgba(19, 97, 107, 0.04);
}

.secaudit-link:hover {
  border-color: #b71c1c;
  color: #b71c1c;
  background: rgba(183, 28, 28, 0.04);
}

.signalsale-link:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 48px auto 0;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Secciones ---------- */
.products,
.process {
  padding: 88px 0;
}

.why {
  padding: 88px 0;
  background: var(--bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.section-head p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-header {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-header.licita {
  background: linear-gradient(135deg, #13616b, #0a2d45);
}

.product-card-header.secaudit {
  background: linear-gradient(135deg, #b71c1c, #7f0000);
}

.product-card-header.signalsale {
  background: linear-gradient(135deg, #4f46e5, #312e81);
}

.product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.product-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.product-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #312e81);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

.title-licita {
  color: #13616b !important;
}

.title-secaudit {
  color: #b71c1c !important;
}

.title-signalsale {
  color: #4f46e5 !important;
}

.product-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.product-features {
  list-style: none;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.product-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Por qué ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Proceso ---------- */
.process {
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
}

.step-num {
  display: inline-block;
  font-size: 40px;
  font-weight: 800;
  color: rgba(19, 97, 107, 0.25);
  letter-spacing: -0.03em;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 12px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- CTA ---------- */
.cta {
  padding: 40px 0 88px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-card p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 17px;
  opacity: 0.9;
}

.cta-actions {
  margin-top: 32px;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 16px;
  }

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

  .why-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .cta-card {
    padding: 48px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}