:root {
  --color-primary: #0080ff;
  --color-primary-dark: #003366;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-text: #1a1a1a;
  --color-muted: #555555;
  --color-border: #e0e4ef;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* Layout base */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 228, 239, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 30%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.btn-nav {
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* HERO */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.hero-subtitle {
  margin-top: 0;
  color: var(--color-muted);
  max-width: 560px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.hero-bullets li::before {
  content: "• ";
  color: var(--color-primary);
}

/* Visual hero */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-metric {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.metric-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-chart {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  height: 140px;
  margin-bottom: 0.75rem;
}

.hero-chart .bar {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--color-primary), #b4d9ff);
}

.bar-1 { height: 40%; }
.bar-2 { height: 75%; }
.bar-3 { height: 55%; }
.bar-4 { height: 90%; }

.hero-chart-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Secciones genéricas */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* Grids */

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.02);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card-compact {
  padding: 1.3rem 1.2rem;
}

/* Pasos */

.steps .step {
  position: relative;
  padding-top: 2.5rem;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Tecnología */

.tech-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--color-muted);
}

.checklist li {
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: "✔ ";
  color: var(--color-primary);
  font-weight: 600;
}

.tech-panel {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
}

/* CTA final */

.final-cta {
  background: radial-gradient(circle at top left, #e7f1ff 0, #ffffff 45%, #f5f7fb 100%);
}

.final-cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.final-cta-inner h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.final-cta-inner p {
  margin: 0;
  color: var(--color-muted);
}

.final-cta-actions {
  text-align: left;
}

.final-cta-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-logo .logo-mark {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
}

.footer-text {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .final-cta-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-card {
    max-width: 320px;
  }

  .final-cta-actions {
    text-align: left;
  }
}
