body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f4f6f8;
  color: #333;
}

.header {
  background-color: #0f3d57;
  color: white;
  text-align: center;
  padding: 60px 20px 30px;
}

.header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tarjeta-servicio {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
}

.tarjeta-servicio h2 {
  color: #0f3d57;
  margin-bottom: 10px;
}

.tarjeta-servicio p {
  color: #555;
  margin-bottom: 20px;
}

.tarjeta-servicio a {
  display: inline-block;
  background-color: #00aaff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.tarjeta-servicio a:hover {
  background-color: #0077aa;
}

.footer {
  background-color: #0f3d57;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}











.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.tarjeta-servicio {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
}

.tarjeta-servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #ccc;
}

.tarjeta-servicio h2 {
  margin: 15px 0 5px;
  color: #0c1f2c;
}

.tarjeta-servicio p {
  font-size: 0.9em;
  padding: 0 15px;
  margin-bottom: 15px;
}

.tarjeta-servicio a {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 20px;
  background: #0c1f2c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;   
}

.tarjeta-servicio a:hover {
  background: #12334a;
}
