:root {
  --blanco: #ffffff;
  --oscuro: #0f172a;
  --primario: #359dff;
  --gris-claro: #f1f5f9;
  --fuente-principal: "Lato", sans-serif;
}

/* Base */
html {
  box-sizing: border-box;
  font-size: 62.5%; 
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--fuente-principal);
  margin: 0;
  background-color: #f8fafc;
  color: var(--oscuro);
}

/* Tipografía */
h1 { font-size: 3rem; font-weight: 700; margin: 0; }
h2 { font-size: 2.6rem; text-align: center; }
h3 { font-size: 2rem; text-transform: uppercase; font-weight: 700; }
p { font-size: 1.6rem; line-height: 1.6; color: #475569; }

/* Contenedores */
.contenedor-principal {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.sombra {
  background-color: var(--blanco);
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Hero (Header Negro) */
.hero-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 6rem 1rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

/* Hero Visual (Imagen) */
.hero-visual {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contenido-hero-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 4rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 80rem;
}

.ubicacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--oscuro);
}

/* GRID DE SERVICIOS (Solución a la cuadrícula) */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr; /* Móvil */
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas exactas */
    align-items: start;
  }
}

.servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subtitulo {
  color: var(--primario);
  margin-bottom: 2rem;
}

.icono-circulo {
  height: 14rem;
  width: 14rem;
  background-color: var(--primario);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 15px rgba(53, 157, 255, 0.3);
}

.icono-circulo:hover {
  transform: translateY(-5px);
}

.icono-circulo svg {
  stroke: white;
  width: 6rem;
  height: 6rem;
}

/* Footer */
.footer {
  background-color: var(--oscuro);
  color: white;
  text-align: center;
  padding: 3rem;
  margin-top: 5rem;
  font-size: 1.4rem;
}