/* Campus Romero Popup Styles */
.crp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.crp-popup-overlay.crp-show {
  opacity: 1;
  visibility: visible;
}

.crp-popup-container {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crp-popup-overlay.crp-show .crp-popup-container {
  transform: scale(1) translateY(0);
}

/* Botón cerrar mejorado */
.crp-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crp-close-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.crp-close-btn svg {
  color: #666;
  transition: color 0.2s ease;
}

.crp-close-btn:hover svg {
  color: #333;
}

.crp-popup-content {
  display: flex;
  flex-direction: row;
  min-height: 400px;
}

.crp-popup-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.crp-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.crp-popup-text {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.crp-popup-icon {
  margin-bottom: 25px;
  animation: bounce 2s infinite;
}

.crp-popup-icon img {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.crp-popup-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d9488;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crp-popup-description {
  margin-bottom: 35px;
  color: #374151;
  line-height: 1.6;
  font-size: 1.05rem;
}

.crp-popup-description strong {
  font-weight: 700;
  color: #1f2937;
}

.crp-cta-button {
  background: #0d9488;
  color: white;
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crp-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
  filter: brightness(1.1);
}

.crp-cta-button:active {
  transform: translateY(0);
}

/* Animaciones */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .crp-popup-container {
    width: 95%;
    margin: 10px;
    max-height: 95vh;
  }

  .crp-popup-content {
    flex-direction: column;
    min-height: auto;
  }

  .crp-popup-image {
    min-height: 200px;
    max-height: 250px;
  }

  .crp-popup-text {
    padding: 30px 25px;
  }

  .crp-popup-title {
    font-size: 1.6rem;
  }

  .crp-popup-description {
    font-size: 0.95rem;
  }

  .crp-cta-button {
    padding: 12px 35px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .crp-popup-text {
    padding: 25px 20px;
  }

  .crp-popup-title {
    font-size: 1.4rem;
  }

  .crp-popup-icon img {
    width: 50px;
    height: 50px;
  }

  .crp-cta-button {
    padding: 10px 30px;
    font-size: 1rem;
  }
}

/* Prevenir scroll del body */
body.crp-popup-open {
  overflow: hidden;
}

/* Efectos adicionales */
.crp-popup-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
