/* Centrado de la ventana modal */
.modal {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: all 500ms ease;
  opacity: 0;
  visibility: hidden;
}

/* Mostrar la ventana modal cuando el checkbox está activado */
#btn-modal:checked ~ .modal {
  opacity: 1;
  visibility: visible;
}

.contenedor {
  width: 400px;
  height: 150px;
  margin: auto;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;

  background: #fff;
  box-shadow: 1px 7px 25px rgba(0, 0, 0, 0.6);
  transition: all 500ms ease;
  position: relative;
  transform: translateY(-30%);
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.1);
 
}

/* Animación de aparición */
#btn-modal:checked ~ .modal .contenedor {
  transform: translateY(0%);
}

.contenedor header {
  padding: 10px;
  background: #00B2B2;
  color: #fff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.contenedor label {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.contenido {
  width: 100%;
  padding: 10px;
}

.contenido h3 {
  margin-bottom: 10px;
}

.contenido p {
  margin-bottom: 7px;
}

#btn-modal {
  display: none;
}

/* Botón para abrir el modal */
.lbl-modal {
  background: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive */
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .contenedor {
    width: 95%;
  }
}