/* ========== YADONDE MODAL ========== */
.yd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* se activa con .is-open */
}

.yd-modal.is-open {
  display: block;
}

.yd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.yd-modal__dialog {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 6vh auto;
  background: #111;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: translateY(10px);
  opacity: 0;
  transition: 220ms ease;
}

/* animación al abrir */
.yd-modal.is-open .yd-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}

/* Fondo “foto” tipo tu imagen (puedes cambiar URL) */
.yd-modal__content {
  padding: 34px 28px 26px;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("/ruta/a/tu/imagen-fondo.jpg") center/cover no-repeat;
}

.yd-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.yd-modal__close:hover {
  background: rgba(255,255,255,0.2);
}

.yd-modal__topline {
  letter-spacing: .28em;
  font-size: 12px;
  opacity: .9;
  text-align: center;
  margin-bottom: 18px;
}

.yd-modal__title {
  text-align: center;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 600;
}

.yd-modal__text {
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 560px;
  opacity: .95;
}

.yd-modal__form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.yd-modal__label {
  font-size: 13px;
  opacity: .9;
}

.yd-modal__input {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.yd-modal__input:focus {
  border-color: rgba(255,255,255,0.55);
}

.yd-modal__btn {
  height: 50px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
  letter-spacing: .25em;
  cursor: pointer;
}

.yd-modal__btn:hover {
  opacity: .92;
}

.yd-modal__small {
  text-align: center;
  opacity: .9;
  margin-top: 10px;
}

.yd-modal__link {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .yd-modal__content { padding: 28px 18px 22px; }
  .yd-modal__title { font-size: 24px; }
  .yd-modal__text { font-size: 16px; }
}
