/* ====== Estilos generales ====== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* ====== Sección de servicios ====== */
.servicios {
  text-align: center;
  padding: 60px 20px;
  
}

.servicios h2 {
  color: #1d4e89;
  font-size: 2rem;
  margin-bottom: 50px;
}

/* ====== Contenedor de tarjetas ====== */
.contenedor-servicios {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 3 columnas */
  grid-gap: 30px; /* espacio entre tarjetas */
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== Tarjetas individuales ====== */
.tarjeta {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ====== Iconos ====== */
.icono {
  width: 60px;
  height: 60px;
  background-color: #1d4e89;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  border-radius: 5px;
  margin: 0 auto 20px;
}

/* ====== Títulos y texto ====== */
.tarjeta h3 {
  color: #e89b06; /* Naranja */
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.tarjeta p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .contenedor-servicios {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 600px) {
  .contenedor-servicios {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}
