/* HERO MOLECULAS */
.hero-moleculas {
  position: relative;
  height: 80vh;
  background-image: url('../assets/img/doctor-operando-2.png'); /* Puedes cambiarla por otra */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-moleculas .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.hero-moleculas h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero-moleculas p {
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* DESCRIPCIÓN GENERAL */
.descripcion-moleculas {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.descripcion-moleculas .container {
  max-width: 900px;
  margin: 0 auto;
}

.descripcion-moleculas p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* SECCIÓN MOLECULAS */
.seccion-moleculas {
  padding: 4rem 2rem;
  background-color: #f5f8ff;
  text-align: center;
}

.seccion-moleculas h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #002b8a;
}

.seccion-moleculas .subtitulo {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.tarjetas-moleculas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tarjeta-molecula {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-molecula img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tarjeta-molecula h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #002b8a;
}

.tarjeta-molecula p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1.2rem;
}

.tarjeta-molecula .boton-destacado {
  align-self: center;
  padding: 0.5rem 1rem;
  background-color: #002b8a;
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.tarjeta-molecula .boton-destacado:hover {
  background-color: #001f60;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-moleculas h1 {
    font-size: 2.2rem;
  }

  .hero-moleculas p {
    font-size: 1rem;
  }

  .tarjeta-molecula {
    max-width: 90%;
    margin: 0 auto;
  }
}
