/* Overlay y modal centrado */
.ccy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  outline: none;
}
.ccy-modal.active {
  display: flex;
}
.ccy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999998;
}
.ccy-modal-dialog {
  position: relative;
  z-index: 999999;
  width: 90%;
  max-width: 1000px;
  background: transparent;
  box-sizing: border-box;
  margin: 0 auto;
}
.ccy-modal-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Proporción 16:9 */
  height: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.ccy-modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ccy-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 1000000;
  background: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-weight: 300;
}
.ccy-modal-close:hover {
  background: #ff0000;
  color: #fff;
  transform: rotate(90deg);
}
body.ccy-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .ccy-modal-dialog {
    width: 95%;
    max-width: 95%;
  }
  .ccy-modal-close {
    top: -40px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .ccy-modal-body {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .ccy-modal-dialog {
    width: 98%;
  }
  .ccy-modal-close {
    top: -35px;
    right: -5px;
  }
}