/* ===== MODAL CÁLCULO DE PAQUETE - DISEÑO DE MARCA ===== */
/* Colores de marca: Amarillo #e3d043, Azul Marino #172f3e, Blanco #ffffff */

/* BOTÓN PARA ABRIR MODAL */
.paquete-open-btn {
  background: linear-gradient(135deg, #172f3e 0%, #1a3a4a 100%);
  color: #ffffff;
  padding: 16px 32px;
  border: 2px solid #e3d043;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.paquete-open-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.paquete-open-btn:hover::before {
  width: 300px;
  height: 300px;
}

.paquete-open-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(227, 208, 67, 0.5);
}

.paquete-open-btn span {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
}

/* BACKDROP DEL MODAL */
.paquete-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 47, 62, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.paquete-modal-backdrop.paquete-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* CONTENEDOR DEL MODAL */
.paquete-modal-container {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(23, 47, 62, 0.4);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s ease;
}

.paquete-modal-backdrop.paquete-modal-visible .paquete-modal-container {
  opacity: 1;
  transform: scale(1);
}

@keyframes slideUpContainer {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* HEADER DEL MODAL */
.paquete-modal-header {
  background: linear-gradient(135deg, #172f3e 0%, #1a3a4d 100%);
  padding: 40px 30px 30px;
  border-radius: 20px 20px 0 0;
  color: #ffffff;
  position: relative;
}

.paquete-modal-header h2 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: #e3d043;
  letter-spacing: 1.5px;
}

.paquete-modal-header p {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}

/* BOTÓN CERRAR */
.paquete-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(227, 208, 67, 0.2);
  border: 2px solid #e3d043;
  color: #e3d043;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-weight: bold;
}

.paquete-modal-close:hover {
  background: #e3d043;
  color: #172f3e;
  transform: rotate(90deg);
}

/* CONTENIDO DEL MODAL */
.paquete-modal-content {
  padding: 35px;
  color: #172f3e;
}

/* SELECTOR DE CURSOS */
.course-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.course-card {
  padding: 18px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card:hover {
  border-color: #e3d043;
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.25);
  background: #fffef5;
}

.course-card.selected {
  background: linear-gradient(135deg, #fffef5, #fffcf0);
  border-color: #e3d043;
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.35);
}

.course-card.selected::after {
  content: '✓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: #e3d043;
  font-weight: bold;
}

.course-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #172f3e;
  flex: 1;
}

.course-price {
  color: #172f3e;
  font-weight: 900;
  font-size: 1.3rem;
}

/* RESUMEN DEL PAQUETE */
.paquete-summary {
  background: linear-gradient(135deg, #f5f5f5, #f9f8f0);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 28px;
  border-left: 5px solid #e3d043;
  border-right: 1px solid #e0e0e0;
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #172f3e;
  margin-bottom: 14px;
  display: none;
}

.summary-title.show {
  display: block;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #333;
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-price {
  color: #172f3e;
  font-weight: 700;
}

.total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 3px solid #e3d043;
  border-bottom: 3px solid #e3d043;
  font-size: 1.25rem;
  font-weight: 900;
  color: #172f3e;
  margin-top: 14px;
  margin-bottom: 0;
}

.total-amount {
  color: #e3d043;
  font-size: 1.7rem;
}

.empty-state {
  text-align: center;
  color: #999;
  font-size: 1rem;
  padding: 12px 0;
}

/* BOTONES DE ENVÍO */
.button-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.btn-send {
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(23, 47, 62, 0.15);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.btn-send::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: 0;
}

.btn-send:hover::before {
  width: 300px;
  height: 300px;
}

.btn-send span {
  position: relative;
  z-index: 1;
}

.btn-send.btn-whatsapp {
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.2) 0%, rgba(227, 208, 67, 0.08) 100%);
  border: 3px solid #e3d043;
  color: #172f3e;
}

.btn-send.btn-whatsapp:hover {
  transform: translateY(-4px);
  border-color: #f4e066;
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.35) 0%, rgba(227, 208, 67, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.25);
}

.btn-send.btn-email {
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.2) 0%, rgba(227, 208, 67, 0.08) 100%);
  border: 3px solid #e3d043;
  color: #172f3e;
}

.btn-send.btn-email:hover {
  transform: translateY(-4px);
  border-color: #f4e066;
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.35) 0%, rgba(227, 208, 67, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.25);
}

.btn-send.btn-telegram {
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.2) 0%, rgba(227, 208, 67, 0.08) 100%);
  border: 3px solid #e3d043;
  color: #172f3e;
}

.btn-send.btn-telegram:hover {
  transform: translateY(-4px);
  border-color: #f4e066;
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.35) 0%, rgba(227, 208, 67, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.25);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-send:disabled:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(23, 47, 62, 0.15);
}

.btn-send-icon {
  font-size: 1.8rem;
}

.btn-send-text {
  font-size: 0.85rem;
  font-weight: 700;
}

/* VALIDACIÓN */
.validation-msg {
  color: #d32f2f;
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
  display: none;
  padding: 12px;
  background: #ffebee;
  border-radius: 8px;
  border-left: 4px solid #d32f2f;
}

.validation-msg.show {
  display: block;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .paquete-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .paquete-modal-header {
    padding: 20px 20px 20px 20px;
  }

  .paquete-modal-header h2 {
    font-size: 1.5rem;
  }

  .paquete-modal-header p {
    font-size: 0.9rem;
  }

  .paquete-modal-content {
    padding: 20px;
  }

  .button-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-send {
    padding: 14px 12px;
    flex-direction: row;
    justify-content: center;
  }

  .btn-send-text {
    font-size: 0.75rem;
  }

  .course-card {
    padding: 12px;
    font-size: 0.9rem;
  }

  .paquete-open-btn {
    padding: 14px 24px;
    font-size: 1.1rem;
  }

  .course-price {
    font-size: 1.1rem;
  }

  .btn-send-icon {
    font-size: 1.4rem;
  }
}
