body {
  font-family: Arial;
  margin: 0;
  background: #f4faf4;
}

header {
  background: linear-gradient(45deg, #3a2e7d, #28c6ac, #fdd835);
  color: white;
  text-align: center;
  padding: 40px;
}

.volver {
  display: inline-block;
  margin-bottom: 10px;
  padding: 10px 20px;
  background-color: #4C92B7;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.volver:hover {
  background-color: yellowgreen;
  color: white;
}


.contenedor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px;
}

.card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  padding: 12px;
  color: #2e7d32;
}

.card p {
  padding: 0 12px;
  color: #555;
}
.titulo{
  text-align: center;
}

/* BOTONES GRANDES */

.contacto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.contacto a {
  display: block;
  background: #5dc628;
  color: rgb(40, 11, 11);
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  transition: 0.2s;
}

.contacto a:hover {
  background: #4f2e7d;
}
/*numero de telefono sin linea*/
a {
  text-decoration: none;
}

/* FOOTER CENTRADO */

footer {
  background-color: #114e4e;
  color: #fff;
  text-align: center;
  padding: 20px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  /* centra el botón y texto */
}

.btn-inicio {
  display: inline-block;
  margin-bottom: 10px;
  padding: 10px 20px;
  background-color: #4C92B7;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-inicio:hover {
  background-color: yellowgreen;
  color: white;
}

/* RESPONSIVE TABLET */

@media (max-width: 1000px) {
  .contenedor {
    grid-template-columns: repeat(2, 1fr);
    padding: 25px;
  }
}

/* RESPONSIVE CELULAR */

@media (max-width: 600px) {
  header {
    padding: 25px;
  }

  header h1 {
    font-size: 24px;
  }

  .contenedor {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .card img {
    height: 240px;
  }

  .contacto a {
    padding: 16px;
    font-size: 16px;
  }
}
