/* Sección de contacto */
.contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #02aca1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 50px;
  margin-top: 10px;
  overflow: auto;
}

.contact-text {
    flex: 1;
    text-align: left;
    text-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.contact-text h4 {
  font-size: 3rem ;
  margin-bottom: 10px;
  color: #ffff;
  font-weight: bolder;
}

.contact-text p {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ffff;
}

.contact-action {
  flex: 0 0 auto;
}

.contact-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #218838;
}

/* Estilo general para servicios y contactos */
#contacts {
  text-align: center;
  padding: 20px;
}

#contacts h3 {
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: bold;
  color: #0e0d0d;
}

/* Contenedores específicos */
#contacts .contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Estilo individual de cada servicio/contacto */
#contacts .contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

#contacts .contact .icon {
  margin-bottom: 10px;
}

#contacts .contact h4 {
  font-size: 1.4em;
  margin-bottom: 5px;
}

#contacts .contact p {
  font-size: 2rem;
  color: #000000;
}

.atribuciones {
  background-color: #02aca1;
  padding: 20px;
  font-size: 0.8rem;
}

.atribuciones p {
  color: #ffffff; 
  margin: 0; 
}

/* Diseño adaptativo en filas de máximo 3 elementos */
@media (min-width: 768px) {
  #contacts .contact {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: left;
    display: flex;
    flex-direction: row;
  }

  #contacts .contact .icon {
    margin-right: 15px;
    margin-bottom: 0;
  }

  #contacts .contact .text {
    display: flex;
    flex-direction: column;
  }

  #contacts .contact h4 {
    margin-bottom: 5px;
  }
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-action {
    margin-top: 20px;
  }
}
