:root {
  --primary: #2563eb;
  --dark: #020617;
  --gray: #475569;
  --light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.container.narrow {
  max-width: 800px;
}

.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 36px;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.hero {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: white;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

.hero h1 span {
  color: #93c5fd;
}

.hero h1 { max-width: 900px; }

.hero-text {
  margin: 1.5rem 0 2.5rem;
  max-width: 650px;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.section-title.light {
  color: white;
}

.services-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card,
.process-step {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-dark .process-step {
  background: #0f172a;
}

.process-step span {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

.company-text {
  text-align: center;
  font-size: 1.08rem;
  color: #334155;
}

.cta {
  background: var(--primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta p {
  margin: 1rem 0 2rem;
}

.contact-email a {
  font-size: 1.2rem;
  color: #93c5fd;
  text-decoration: none;
}

.footer {
  background: #020617;
  color: #cbd5f5;
  text-align: center;
  padding: 2rem 0;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  border: 1px solid white;
  color: white;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
/* CONTACT MODAL */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal h3 {
  margin-bottom: 0.5rem;
}

.modal p {
  margin-bottom: 2rem;
  color: #475569;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-email {
  background: #2563eb;
  color: white;
}

.modal-close {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
}

/* Subtítulos consistentes */
.section-subtitle {
  max-width: 860px;
  margin: 10px auto 28px;
  text-align: center;
  opacity: .85;
  line-height: 1.6;
}

/* HERO badges (en tu captura se ven pegados) */
.hero-badges {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

/* Grids para Especialidades y Tecnologías */
.features-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.tech-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
}

.feature-card h3,
.tech-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.feature-card p,
.tech-card p {
  margin: 0 0 8px;
  opacity: .9;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1100px) {
  .features-grid,
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .features-grid,
  .tech-grid { grid-template-columns: 1fr; }
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

.contact-email {
  text-align: center;
  margin-top: 10px;
}

/* =========================
   CONSISTENCIA VISUAL PRO
   Pegar al final del styles.css
   ========================= */

/* 1) Sección clara (en tu HTML la usas y no estaba definida) */
.section-light {
  background: var(--light);
}

/* 2) Cards: unifica estilo para TODAS las tarjetas */
.service-card,
.process-step,
.feature-card,
.tech-card {
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Ajuste fino para textos en cards */
.service-card h3,
.feature-card h3,
.tech-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.service-card p,
.feature-card p,
.tech-card p {
  opacity: .9;
  line-height: 1.6;
}

/* 3) Cards en sección oscura: consistente */
.section-dark .service-card,
.section-dark .feature-card,
.section-dark .tech-card,
.section-dark .process-step {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
}

/* Texto en dark */
.section-dark .service-card,
.section-dark .feature-card,
.section-dark .tech-card,
.section-dark .process-step {
  color: white;
}

.section-dark .service-card p,
.section-dark .feature-card p,
.section-dark .tech-card p,
.section-dark .process-step p {
  color: rgba(255,255,255,0.78);
}

/* 4) Subtítulo: más “premium” */
.section-subtitle {
  font-size: 1.02rem;
  color: rgba(2, 6, 23, 0.72);
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.78);
}

/* 5) Hero badges: que se vean mejor (más “chip”) */
.badge {
  backdrop-filter: blur(6px);
}

/* 6) Scroll a anchors sin quedar tapado por el header sticky */
section[id] {
  scroll-margin-top: 90px;
}

/* 7) Botones: hover sutil (se siente más profesional) */
.btn {
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}

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

.btn:active {
  transform: translateY(0);
  opacity: .9;
}

/* 8) CTA: centrado perfecto y con mejor legibilidad */
.cta h2 {
  margin-bottom: .5rem;
}

.cta p {
  max-width: 760px;
  margin: 1rem auto 2rem;
  opacity: .95;
}

/* 9) Contacto: tamaño y alineación */
.section-dark .contact-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
}

.contact-actions .btn {
  min-width: 140px;
  text-align: center;
}

/* 10) Tecnologías: separa párrafos y mejora jerarquía */
.tech-card p {
  margin-bottom: .5rem;
}
.tech-card p:last-child {
  margin-bottom: 0;
}
