/* =====================================================================
   COTIZADOR ASISTENTE 4 PASOS - ESTILOS OFICIALES GRUPO GRADUM SAC
   Modal blanco con cabecera azul oscuro (#111827), acento ámbar (#F59E0B)
===================================================================== */

/* Overlay y Modal */
.wzd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wzd-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.wzd-overlay[hidden] {
  display: none !important;
}

.wzd-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wzd-overlay.active .wzd-modal {
  transform: translateY(0) scale(1);
}

/* Cabecera Azul Oscuro (#111827) con Acento Ámbar (#F59E0B) */
.wzd-header {
  background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.wzd-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.wzd-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 0.02em;
}

.wzd-logo-title {
  color: #F59E0B;
}

.wzd-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94A3B8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.wzd-close-btn * {
  pointer-events: none;
}

.wzd-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

/* Indicador de pasos 1-2-3-4 */
.wzd-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.wzd-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.wzd-step-dot:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.wzd-step-dot.active {
  background: #F59E0B;
  color: #111827;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.wzd-step-dot.completed {
  background: #10B981;
  color: #ffffff;
}

.wzd-step-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease;
}

.wzd-step-line.completed {
  background: #10B981;
}

.wzd-step-label-row {
  text-align: center;
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Cuerpo con scroll propio */
.wzd-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
  flex: 1;
}

.wzd-panel {
  display: none;
}

.wzd-panel.is-active {
  display: block;
  animation: wzdFadeIn 0.25s ease-out;
}

@keyframes wzdFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wzd-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.35rem;
}

.wzd-panel-sub {
  font-size: 0.9rem;
  color: #64748B;
  margin: 0 0 1.25rem;
}

/* Paso 1: Grilla de 3 Columnas de Carreras */
.wzd-career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .wzd-career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wzd-chip {
  padding: 0.65rem 0.75rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.wzd-chip:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
}

.wzd-chip.active,
.wzd-chip.selected {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Paso 2: Nivel Académico */
.wzd-level-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wzd-level-card-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
}

.wzd-level-card-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.wzd-level-card-btn.active,
.wzd-level-card-btn[aria-checked="true"] {
  background: #EFF6FF;
  border-color: #2563EB;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.wzd-level-card-icon {
  font-size: 1.85rem;
  flex-shrink: 0;
}

.wzd-level-card-content {
  flex: 1;
}

.wzd-level-card-content strong {
  display: block;
  font-size: 0.98rem;
  color: #0F172A;
  font-weight: 700;
}

.wzd-level-card-content small {
  display: block;
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.wzd-level-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wzd-level-card-btn.active .wzd-level-check,
.wzd-level-card-btn[aria-checked="true"] .wzd-level-check {
  background: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
}

/* Paso 3: Servicios y Matriz Tarifaria */
.wzd-level-active-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.85rem;
}

.wzd-level-active-badge strong {
  color: #1E293B;
  font-weight: 700;
}

.wzd-link-change {
  background: none;
  border: none;
  color: #2563EB;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.wzd-services-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.wzd-service-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wzd-service-card:hover:not(.disabled) {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.wzd-service-card.selected {
  background: #EFF6FF;
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.wzd-service-card.disabled {
  opacity: 0.45;
  background: #F1F5F9;
  cursor: not-allowed;
  pointer-events: none;
}

.wzd-svc-checkbox-col {
  padding-top: 2px;
  flex-shrink: 0;
}

.wzd-svc-chk {
  width: 18px;
  height: 18px;
  accent-color: #2563EB;
  cursor: pointer;
  pointer-events: none;
}

.wzd-svc-info-col {
  flex: 1;
  min-width: 0;
}

.wzd-svc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.wzd-svc-name {
  font-size: 0.94rem;
  color: #0F172A;
  font-weight: 700;
}

.wzd-svc-badge-exclusive {
  font-size: 0.7rem;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wzd-svc-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1E3A8A;
  background: #DBEAFE;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}

.wzd-service-card.selected .wzd-svc-price {
  background: #2563EB;
  color: #ffffff;
}

.wzd-svc-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
}

.wzd-step3-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0F172A;
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.wzd-step3-preview-label {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wzd-step3-preview-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F59E0B;
}

/* Paso 4: Formulario y Consentimiento Ley 29733 */
.wzd-contact-form {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 1.25rem;
  border-radius: 14px;
  margin-bottom: 0.5rem;
}

.wzd-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 540px) {
  .wzd-form-row {
    grid-template-columns: 1fr;
  }
}

.wzd-form-group {
  margin-bottom: 0.65rem;
}

.wzd-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.wzd-form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.wzd-form-group input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wzd-req {
  color: #DC2626;
  font-weight: 700;
}

.wzd-consent-group {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.wzd-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.wzd-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563EB;
  margin-top: 2px;
  flex-shrink: 0;
}

.wzd-consent-text {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.4;
}

.wzd-consent-text a {
  color: #2563EB;
  text-decoration: underline;
  font-weight: 600;
}

.wzd-alert-error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

/* Pantalla de Resultado Oficial */
.wzd-result-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wzd-folio-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  background: #FEF3C7;
  border: 1.5px solid #F59E0B;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  font-family: monospace, sans-serif;
}

.wzd-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065F46;
  background: #D1FAE5;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.wzd-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

@media (max-width: 540px) {
  .wzd-summary-grid {
    grid-template-columns: 1fr;
  }
}

.wzd-summary-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
}

.wzd-sum-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 600;
}

.wzd-sum-val {
  display: block;
  font-size: 0.88rem;
  color: #0F172A;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wzd-breakdown-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.wzd-breakdown-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.03em;
}

.wzd-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wzd-breakdown-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #1E293B;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 0.35rem;
}

.wzd-breakdown-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wzd-breakdown-list strong {
  color: #0F172A;
  font-weight: 700;
}

.wzd-total-card {
  background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
  color: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 0.85rem;
}

.wzd-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FBBF24;
  font-weight: 700;
}

.wzd-total-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.35rem 0;
  letter-spacing: -0.02em;
}

.wzd-total-disclaimer {
  font-size: 0.72rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.35;
}

.wzd-email-copy-note {
  font-size: 0.8rem;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.wzd-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Botones y Acciones */
.wzd-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.wzd-hint {
  font-size: 0.8rem;
  color: #64748B;
}

.wzd-btn-primary {
  background: #2563EB;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wzd-btn-primary:hover:not(:disabled) {
  background: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wzd-btn-primary:disabled {
  background: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
}

.wzd-btn-outline {
  background: transparent;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wzd-btn-outline:hover {
  border-color: #94A3B8;
  background: #F1F5F9;
}

.wzd-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wzd-btn-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wzd-btn-full {
  width: 100%;
}

.wzd-restart-btn {
  background: none;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0.5rem auto 0;
  display: block;
  text-decoration: underline;
  padding: 0.4rem;
}

.wzd-restart-btn:hover {
  color: #0F172A;
}
