/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul: #1a4a8a;
  --azul-claro: #2563b0;
  --texto: #1a1a2e;
  --texto-suave: #555;
  --fondo: #ffffff;
  --fondo-alt: #f7f8fc;
  --borde: #e2e6f0;
  --radio: 8px;
  --sombra: 0 2px 12px rgba(26,74,138,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { height: 44px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
nav a:hover { color: var(--azul); }

/* Animaciones */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d2d5e 0%, #1a4a8a 60%, #2563b0 100%);
  color: #fff;
  padding: 80px 24px;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  animation: fadeUp .7s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
  animation: fadeUp .7s ease .15s both;
}

.hero p {
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 36px;
  animation: fadeUp .7s ease .28s both;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--azul);
  animation: fadeUp .7s ease .4s both;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radio);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* Secciones genéricas */
section { padding: 88px 24px; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 52px;
  color: var(--texto);
}

/* Servicios */
.servicios { background: var(--fondo-alt); }

.grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--sombra); transform: translateY(-3px); }

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--azul);
  margin-bottom: 18px;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p { color: var(--texto-suave); font-size: .95rem; }

.card-ai { border-color: var(--azul-claro); border-style: dashed; }

.badge {
  font-size: .68rem;
  font-weight: 600;
  background: var(--azul);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Nosotros */
.nosotros { background: var(--fondo); }

.nosotros-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.nosotros-content h2 { margin-bottom: 24px; }

.nosotros-content p {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Contacto */
.contacto { background: var(--fondo-alt); text-align: center; }

.contacto-sub {
  color: var(--texto-suave);
  margin-top: -32px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.contacto-opciones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-wa, .btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radio);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,211,102,.25);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-wa svg { width: 22px; height: 22px; }

.btn-email {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 2px 12px rgba(26,74,138,.2);
}
.btn-email:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,74,138,.3); }
.btn-email svg { width: 20px; height: 20px; }

/* Footer */
footer {
  background: var(--texto);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 28px 24px;
  font-size: .875rem;
}

/* Responsive */
@media (max-width: 600px) {
  nav ul { gap: 20px; }
  nav ul li:first-child { display: none; }
  .hero { min-height: 75vh; }
  section { padding: 64px 20px; }
}
