/* ============================================
   VENTANA EMERGENTE IFRAME
   ============================================ */

.ifventana-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(2px);
}

.ifventana-overlay.active {
  display: block;
}

.ifventana-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 600px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.ifventana-popup.active {
  display: block;
  animation: ifventanaSlideIn 0.3s ease-out;
}

@keyframes ifventanaSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.ifventana-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ifventana-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.ifventana-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ifventana-link {
  color: #B94A48 !important;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.ifventana-link:hover {
  color: #8B3634 !important;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .ifventana-popup {
    width: 95%;
    height: 90vh;
    max-height: none;
  }
}
