/**
 * Estilos para el Modal de Personalización en Lote (B2B / Egresados)
 * Proyecto: Personalizador Alter
 */

.batch-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  animation: batchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes batchFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.batch-modal {
  background: #ffffff;
  border-radius: 1.35rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 580px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafaf9;
}

.batch-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.batch-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: #e0f2fe;
  border-radius: 0.85rem;
}

.batch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.batch-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}

.batch-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.batch-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.batch-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.batch-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.batch-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.batch-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.batch-count-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.78rem;
}

.batch-text-selector-row {
  display: flex;
  gap: 0.5rem;
}

.batch-select {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

.batch-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.batch-btn-add-text {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.batch-btn-add-text:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.batch-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.batch-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  font-family: monospace, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

.batch-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.batch-quick-presets {
  display: flex;
  gap: 0.5rem;
}

.batch-preset-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.batch-pricing-card {
  background: #f8fafc;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.batch-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #475569;
}

.batch-discount-tag {
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.78rem;
}

.batch-pricing-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

.batch-pricing-total {
  font-size: 1rem;
  color: #0f172a;
}

.batch-pricing-total strong {
  font-size: 1.2rem;
  color: #0284c7;
  font-weight: 800;
}

.batch-savings-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  text-align: center;
  margin-top: 0.25rem;
}

.batch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fafaf9;
  border-top: 1px solid #f1f5f9;
  gap: 0.75rem;
}

.batch-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.batch-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.batch-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.batch-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
