/* Estilos para el modal */
/*dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}*/

dialog.modal{
  width: clamp(20rem, 13.298rem + 29.787vw, 37.5rem);
  padding: 0;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  border: 0.5px solid var(--main-color);
}

dialog .banner-modal{
    width: 100%;
    height: 230px;
    /*background-size: 100%;*/
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

dialog#modal1 .banner-modal{
  background-image: url(../img/cueca.webp);
}

dialog#modal2 .banner-modal{
  background-image: url(../img/clinico.jpeg);
}

dialog#modal3 .banner-modal{
  background-image: url(../img/cocina.jpeg);
}

dialog#modal4 .banner-modal{
  background-image: url(../img/);
}

dialog::backdrop {
  /* Estilos para el fondo del modal */
  background-color: rgba(0, 0, 0, 0.5);
}

dialog[open] {
  /* Mostrar el modal cuando se hace clic en el botón de abrir */
  display: flex;
}

/* Estilos para el botón de cerrar */
#cerrar-modal {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 8px;
}

#cerrar-modal:hover{
  background-color: var(--second-color);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

dialog p {
  padding: 0 8px;
}