/* ========================================
   MODAL DE CONSULTA CON 3 OPCIONES
   WhatsApp | Telegram | Email
   Diseño profesional en tono marca
   ======================================== */

/* Backdrop oscuro del modal */
.consulta-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

/* Contenedor principal del modal */
.consulta-modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Caja principal del modal */
.consulta-modal-box {
  background: linear-gradient(180deg, #1a3a47 0%, #172f3e 100%);
  border: 2px solid rgba(227, 208, 67, 0.3);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(227, 208, 67, 0.2);
  max-width: 500px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Botón cerrar */
.consulta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.consulta-modal-close:hover {
  background: rgba(227, 208, 67, 0.15);
  color: var(--accent);
  transform: rotate(90deg);
}

/* Encabezado */
.consulta-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.consulta-modal-header h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.consulta-modal-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Sección del formulario */
.consulta-form-section {
  margin-bottom: 32px;
}

.consulta-form-section h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.consulta-form-section label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 6px 0;
}

.consulta-form-section input,
.consulta-form-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(227, 208, 67, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.consulta-form-section input:focus,
.consulta-form-section textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(227, 208, 67, 0.2);
}

.consulta-form-section textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Poppins', sans-serif;
}

.consulta-form-section input::placeholder,
.consulta-form-section textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Sección de opciones de contacto */
.consulta-options-section {
  margin-top: 28px;
}

.consulta-options-section h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Contenedor de botones de opciones */
.consulta-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Botón individual de opción */
.consulta-option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid rgba(227, 208, 67, 0.25);
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.08) 0%, rgba(227, 208, 67, 0.03) 100%);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.consulta-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 208, 67, 0.2), transparent);
  transition: left 0.5s ease;
}

.consulta-option-btn:hover::before {
  left: 100%;
}

.consulta-option-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.18) 0%, rgba(227, 208, 67, 0.08) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 208, 67, 0.25);
}

.consulta-option-btn.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(227, 208, 67, 0.25) 0%, rgba(227, 208, 67, 0.12) 100%);
  box-shadow: 0 8px 20px rgba(227, 208, 67, 0.3);
}

/* Icono del botón */
.consulta-option-icon {
  font-size: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Texto y subtítulo de la opción */
.consulta-option-content {
  text-align: left;
  flex: 1;
}

.consulta-option-title {
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-size: 15px;
}

.consulta-option-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 2px 0 0 0;
  font-weight: 400;
}

/* Checkbox/selección (marcador visual) */
.consulta-option-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(227, 208, 67, 0.3);
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consulta-option-btn.active .consulta-option-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #172f3e;
}

.consulta-option-check::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.consulta-option-btn.active .consulta-option-check::after {
  opacity: 1;
}

/* Botón de envío */
.consulta-send-btn {
  width: 100%;
  padding: 14px 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  border-radius: 12px;
  color: #172f3e;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(227, 208, 67, 0.3);
  position: relative;
  overflow: hidden;
}

.consulta-send-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s ease;
}

.consulta-send-btn:hover::before {
  left: 100%;
}

.consulta-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227, 208, 67, 0.4);
}

.consulta-send-btn:active {
  transform: translateY(0);
}

/* Mensaje de validación / feedback */
.consulta-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.consulta-feedback.success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

.consulta-feedback.error {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: block;
}

/* Estado oculto */
.consulta-modal-hidden {
  display: none;
  visibility: hidden;
}

/* Responsive mobile */
@media (max-width: 640px) {
  .consulta-modal-box {
    padding: 28px 20px;
    max-width: 95vw;
    border-radius: 14px;
  }

  .consulta-modal-header h2 {
    font-size: 22px;
  }

  .consulta-modal-header p {
    font-size: 14px;
  }

  .consulta-form-section h3,
  .consulta-options-section h3 {
    font-size: 14px;
  }

  .consulta-option-btn {
    padding: 14px 16px;
    gap: 12px;
    font-size: 14px;
  }

  .consulta-option-icon {
    font-size: 20px;
  }

  .consulta-option-title {
    font-size: 14px;
  }

  .consulta-option-desc {
    font-size: 11px;
  }

  .consulta-send-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .consulta-modal-box {
    padding: 24px 16px;
  }

  .consulta-modal-header h2 {
    font-size: 20px;
  }

  .consulta-form-section,
  .consulta-options-section {
    margin-bottom: 20px;
  }

  .consulta-form-section input,
  .consulta-form-section textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .consulta-option-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  .consulta-option-check {
    width: 18px;
    height: 18px;
  }
}
