/* =============================================== */
/* MODAL - Case modal inline */
/* =============================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal--open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 18, 22, 0.92);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: var(--pizarra);
  border: 1px solid var(--linea2);
  border-radius: 0px;
  padding: 2.5rem;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp var(--transition-normal) ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--linea2);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ocre);
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border-radius: 0px;
}

.modal__close:hover {
  border-color: var(--ocre);
  background-color: rgba(196, 151, 43, 0.08);
}

.modal__panel h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--tiza);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.modal__panel h2:first-child {
  margin-top: 0;
}

.modal__panel h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ocre);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.modal__panel p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cuerpo);
  margin-bottom: 1rem;
}

.modal__panel ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal__panel li {
  color: var(--humo);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.modal__panel .button {
  margin-top: 2rem;
}
