/*********************************************************************************/
/* SECCION ECOMED */
/*********************************************************************************/

body {
  position: relative;
}

.section-pharmedic {
  background-color: #fff;
  max-width: 150rem;
  width: 100vw;
  margin: 0 auto;
}

.img-pharmedic {
  width: 100%;
}

.section-pharmedic-buscador {
  max-width: 150rem;
  width: 100vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 4rem 7rem;
  background-image: url(../img/pharmedic/Bloque\ Ético.webp);
}

.boton-regresar:link,
.boton-regresar:visited {
  display: inline-block; /* para que pueda tomar el padding especificado y ocupe solamente el espacio necesario*/
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2.4rem;
  font-weight: 600;
  padding: 1.6rem 1.6rem;
  border-radius: 9px;
  border: 3px solid #fff;

  /* PARA EL .BTN DEL FORMULARIO NADA MAS */
  cursor: pointer;

  /* PONERLO SIEMPRE EN EL ESTADO ORIGINAL DEL BOTON EN ESTE CASO*/
  transition: all 0.3s;
  background-color: none;
  color: #fff;
}

.boton-regresar:hover,
.boton-regresar:active {
  background-color: #fff;
  color: #0055b8;
}

.input-container {
  display: flex;
  position: relative;
  width: 50%;
}

.input-buscador {
  display: inline-block;
  align-self: flex-end;
  width: 100%;
  font-size: 2.4rem;
  border: none;
  border-bottom: 2px solid #fff;
  outline: none;
  background-color: transparent;
  color: #fff;
  padding-left: 4rem; /* Espacio para el icono */
}

.icono-lupa {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  color: #fff;
}

.icon {
  width: 3.2rem;
  height: 3.2rem;
}

.section-pharmedic {
  position: relative;
}

.pharmedic-descripcion {
  position: absolute;
  top: 50%;
  left: 29%;
  transform: translate(-50%, -50%);
  line-height: 1.2;
  text-align: center;
}

.pharmedic-text {
  display: inline-block;
  color: #fff;
  font-size: 6rem;
  /* text-align: center; */
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.pharmedic-text-2 {
  display: inline-block;
  color: #0055b8;
  font-size: 3.5rem;
  /* text-align: center; */

  font-weight: 400;
  text-transform: uppercase;
}

.pharmedic-text-gradient {
  display: inline-block;
  color: #fff;
  font-size: 4.5rem;
  /* text-align: center; */
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  background: linear-gradient(to right, #0055b8, rgba(255, 255, 255, 0.05));
  padding: 1.8rem 3.2rem;
}

/*********************************************************************************/
/* SECCION MEDICAMENTOS */
/*********************************************************************************/
.section-medicamentos {
  background-color: #fff;
  max-width: 150rem;
  width: 100vw;
  margin: 0 auto;
}

.section-tema {
  background-color: #fff;
  color: #98999b;
  max-width: 150rem;
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  font-size: 6rem;
  padding: 10rem;
  text-transform: uppercase;
}

.medicamentos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 1rem;
}

.informacion-medicamento {
  position: relative;
  margin-top: 10rem;
  margin-bottom: 10rem;
}

.img-producto {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.img-normal {
  width: 100%;
}

.img-larga {
  width: 85%;
  margin-bottom: 5.5rem;
}

.producto-descripcion {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  gap: 1rem;
  width: 30rem;
  height: 20rem;
  background-color: rgba(0, 85, 184, 0.25);
}

.producto-descripcion h3 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000;
}

.producto-descripcion p {
  font-size: 1.5rem;
  font-weight: 500;
}

.producto-descripcion span {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.producto-boton {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.btn-mostrar-informacion {
  display: inline-block; /* para que pueda tomar el padding especificado y ocupe solamente el espacio necesario*/
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2rem;
  padding: 1rem;
  border-radius: 9px;
  border: 2px solid #0055b8;

  /* PARA EL .BTN DEL FORMULARIO NADA MAS */
  cursor: pointer;

  /* PONERLO SIEMPRE EN EL ESTADO ORIGINAL DEL BOTON EN ESTE CASO*/
  transition: all 0.3s;
  background-color: #fff;
  color: #0055b8;
}

.btn-mostrar-informacion:hover {
  background-color: #0055b8;
  color: #fff;
  border: 2px solid #a7bdf8;
}

/*********************************************************************************/
/* SECCION MODAL */
/*********************************************************************************/

.modal {
  position: fixed;
  top: 17%;
  left: 12.5%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: auto;

  background-color: #e6eaf4;
  padding: 1rem 0;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;

  animation: myAnim 2s ease 0s 1 normal forwards;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.contenido-modal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  color: #000;
}

.col-img-titulo {
  grid-column: span 2/3;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #a7bdf8;
  height: 75%;
  padding: 0 2.5rem 0 8rem;
}

.col-img-titulo div {
  line-height: 1.5;
}

.modal-img-normal {
  width: 100%;
}

.col-img-titulo div h1 {
  line-height: 1;
  font-size: 4.5rem;
  font-weight: 700;
}

.col-img-titulo div p {
  font-size: 3rem;
  font-weight: 500;
}

.col-img-titulo div span {
  font-size: 2.5rem;
  font-style: italic;
}

.col-descripcion {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.col-descripcion p {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-top: 1rem;
}

.col-descripcion hr {
  border: none;
  border-top: 2px solid #000;
}

.titulo-seccion {
  font-weight: 700;
  text-transform: uppercase;
}

.lista-presentacions li {
  font-size: 1.8rem;
  margin-left: 2rem;
  margin-top: 1rem;
}

@keyframes myAnim {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
