/**
 * Wizard Styles - Portal de Avisos Legales
 * Basado en modelo funcional de BioBioChile Legales
 */

:root {
  --al-primary: #e87322;
  --al-primary-hover: #d06316;
  --al-accent: #333333;
  --al-success: #10b981;
  --al-success-hover: #059669;
  --al-border: #e2e8f0;
  --al-bg-light: #f8fafc;
  --al-text-dark: #333333;
  --al-text-muted: #64748b;
  --al-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --al-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --al-radius: 10px;
}

.al-wizard-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--al-text-dark);
}

/* Stepper Header */
/* Stepper Header */
.al-stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 18px 26px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
  border: 1px solid var(--al-border);
}

.al-step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.al-step-indicator .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  font-size: 14.5px;
  transition: all 0.25s ease;
}

.al-step-indicator.active {
  color: #1e293b;
  font-weight: 800;
}

.al-step-indicator.active .step-num {
  background: var(--al-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(232, 115, 34, 0.18);
}

.al-step-indicator.completed {
  color: #334155;
}

.al-step-indicator.completed .step-num {
  background: #333333;
  color: #ffffff;
}

.al-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
  border-radius: 2px;
}

/* Wizard Layout */
.al-wizard-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
  align-items: start;
}

.al-wizard-main {
  background: #ffffff;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--al-border);
}

/* Step Panes */
.al-step-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

.al-step-pane.active {
  display: block;
}

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

.al-step-title {
  font-size: 25px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.al-step-subtitle {
  font-size: 15.5px;
  color: #64748b;
  margin: 0 0 28px 0;
  line-height: 1.55;
}

/* Type Selector Grid */
.al-type-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}

.al-type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 2px solid var(--al-border);
  border-radius: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Visually hide native radio input but keep it fully accessible */
.al-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.al-type-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.al-type-card.selected {
  border-color: var(--al-primary);
  background: #fffbf7;
  box-shadow: 0 0 0 1px var(--al-primary), 0 8px 20px rgba(232, 115, 34, 0.08);
}

/* Card Top Bar: Minimalist SVG icon + custom radio indicator */
.al-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.al-card-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.al-type-card:hover .al-card-icon-badge {
  color: var(--al-primary);
  background: #fff7ed;
  border-color: #fed7aa;
}

.al-type-card.selected .al-card-icon-badge {
  background: var(--al-primary);
  color: #ffffff;
  border-color: var(--al-primary);
}

.al-card-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
  flex-shrink: 0;
}

.al-card-radio-circle .radio-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.al-type-card.selected .al-card-radio-circle {
  border-color: var(--al-primary);
}

.al-type-card.selected .al-card-radio-circle .radio-inner-dot {
  background: var(--al-primary);
  transform: scale(1);
}

/* Card Content: Title & Description */
.al-card-content {
  margin-bottom: 20px;
}

.al-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.al-card-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* Card Price Panel: Clear, Prominent Values */
.al-card-price-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.al-type-card.selected .al-card-price-panel {
  background: #ffffff;
  border-color: #fed7aa;
  box-shadow: 0 2px 6px rgba(232, 115, 34, 0.05);
}

.al-card-price-val {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}

.al-card-price-val .currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--al-primary);
}

.al-card-price-val .number {
  font-size: 30px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.5px;
  line-height: 1;
}

.al-card-price-val .unit {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

.al-card-price-note {
  display: block;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.45;
}

/* Form Controls */
.al-form-group {
  margin-bottom: 22px;
}

.al-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.al-label {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.al-label-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.al-live-counter-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.al-live-counter-badge strong {
  font-weight: 700;
}

.al-input,
.al-select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--al-primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.al-input:focus,
.al-select:focus {
  outline: none;
  border-color: var(--al-primary);
  box-shadow: 0 0 0 4px rgba(232, 115, 34, 0.18);
}

.al-input-center {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.al-help-text {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

.req {
  color: #e53e3e;
}

/* Rich Text Editor */
.al-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffaf5;
  border: 2px solid var(--al-primary);
  border-bottom: 1px solid rgba(232, 115, 34, 0.25);
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
}

.toolbar-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--al-text-dark);
  transition: background 0.15s ease;
}

.toolbar-btn:hover {
  background: #e2e8f0;
}

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 4px;
}

.al-rich-editor {
  min-height: 220px;
  max-height: 450px;
  overflow-y: auto;
  border: 2px solid var(--al-primary);
  border-radius: 0 0 8px 8px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  background: #ffffff;
  box-sizing: border-box;
}

.al-rich-editor:focus {
  outline: none;
  border-color: var(--al-primary);
  box-shadow: 0 0 0 4px rgba(232, 115, 34, 0.18);
}

.al-rich-editor[placeholder]:empty:before {
  content: attr(placeholder);
  color: #94a3b8;
  font-style: italic;
}

/* File Dropzone */
.al-file-dropzone {
  border: 2px dashed var(--al-primary);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  background: #fffbf7;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.al-file-dropzone:hover,
.al-file-dropzone.dragover {
  border-color: var(--al-primary-hover);
  background: #fff5ed;
}

.al-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--al-text-dark);
  margin: 0 0 4px 0;
}

.dropzone-title span {
  color: var(--al-accent);
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 12px;
  color: var(--al-text-muted);
  margin: 0;
}

.file-chosen-name {
  margin-top: 14px;
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

/* Stepper Input */
.al-stepper-input {
  display: flex;
  align-items: center;
  max-width: 170px;
}

.stepper-btn {
  background: #fff5ed;
  color: var(--al-primary);
  border: 2px solid var(--al-primary);
  font-size: 20px;
  font-weight: 700;
  width: 44px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.stepper-btn:hover {
  background: var(--al-primary);
  color: #ffffff;
}

#btn-page-minus {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

#btn-page-plus {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.al-stepper-input input {
  margin: 0;
  border-radius: 0;
  height: 46px;
  border-left: 2px solid var(--al-primary);
  border-right: 2px solid var(--al-primary);
}

/* Buttons and Actions */
.al-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--al-border);
}

.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  line-height: 1.2;
}

.al-btn-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  flex-shrink: 0;
}

.al-btn-icon-pill svg {
  display: block;
}

.al-btn-icon-flat {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.al-btn:hover:not(:disabled) .al-btn-icon-flat {
  transform: scale(1.08);
}

.al-btn-primary:hover:not(:disabled) .al-btn-icon-pill,
.al-btn-success:hover:not(:disabled) .al-btn-icon-pill {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.35);
}

.al-btn-secondary .al-btn-icon-pill.prev {
  background: rgba(71, 85, 105, 0.1);
  border-color: rgba(71, 85, 105, 0.2);
  color: #475569;
}

.al-btn-secondary:hover:not(:disabled) .al-btn-icon-pill.prev {
  transform: translateX(-4px);
  background: rgba(71, 85, 105, 0.18);
}

.al-btn-primary {
  background: var(--al-primary);
  color: #ffffff;
}

.al-btn-primary:hover:not(:disabled) {
  background: var(--al-primary-hover);
  box-shadow: var(--al-shadow);
}

.al-btn-primary:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.7;
}

.al-btn-primary:disabled .al-btn-icon-pill {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.al-btn-secondary,
button.al-btn-secondary,
.btn-prev-step,
#btn-edit-aviso {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.al-btn-secondary:hover,
button.al-btn-secondary:hover,
.btn-prev-step:hover,
#btn-edit-aviso:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px) !important;
}

.al-btn-success {
  background: var(--al-success);
  color: #ffffff;
  font-size: 16px;
  padding: 14px 28px;
}

.al-btn-success:hover {
  background: var(--al-success-hover);
  box-shadow: var(--al-shadow-lg);
  transform: translateY(-1px);
}

/* Preview Card - Gazeta / Boletín Estilo Prensa */
.al-preview-card {
  border: 2px solid #333333;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--al-shadow-lg);
  margin-bottom: 26px;
  overflow: hidden;
}

.al-preview-masthead {
  background: #333333;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}

.masthead-badge {
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #333333;
  padding: 2px 8px;
  border-radius: 4px;
}

.masthead-brand {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.al-preview-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.preview-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  font-weight: 600;
  color: var(--al-text-muted);
}

.meta-value {
  font-weight: 700;
  color: var(--al-primary);
}

.meta-badge-pending {
  background: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.al-preview-content-box {
  padding: 28px;
}

.prev-title-display {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.prev-divider {
  border: 0;
  height: 2px;
  background: #000000;
  margin: 12px 0 20px 0;
}

.prev-text-display {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a202c;
  text-align: justify;
}

.prev-text-display p {
  margin-bottom: 12px;
}

.prev-pdf-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
}

.prev-pdf-notice .pdf-icon {
  font-size: 36px;
}

.prev-pdf-notice .pdf-info strong {
  font-size: 16px;
  color: var(--al-primary);
  display: block;
}

.prev-pdf-notice .pdf-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--al-text-muted);
}

.al-preview-footer-box {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--al-text-muted);
}

.footer-solicitante {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.al-preview-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1.5px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
}

.al-btn-pay,
#btn-submit-wizard {
  background: #e87322 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 13px 24px !important;
  border-radius: 8px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(232, 115, 34, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.al-btn-pay:hover:not(:disabled),
#btn-submit-wizard:hover:not(:disabled) {
  background: #d15f12 !important;
  box-shadow: 0 6px 18px rgba(232, 115, 34, 0.45) !important;
  transform: translateY(-1px) !important;
}

.al-btn-pay-label {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.al-btn-price-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Sidebar - Sticky Live Pricing Card */
.al-pricing-sticky-card {
  position: sticky;
  top: 30px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--al-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.al-pricing-sticky-card .card-header {
  background: #333333;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--al-primary);
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.header-title-wrap svg {
  color: var(--al-primary);
}

.al-pricing-sticky-card .card-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.iva-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.al-pricing-sticky-card .card-body {
  padding: 22px 20px;
}

.pricing-format-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-format-tag .format-label-text {
  color: #64748b;
  font-weight: 500;
}

.pricing-format-tag strong {
  background: #fff5ed;
  color: var(--al-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ffedd5;
}

.pricing-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
}

.breakdown-item .item-desc {
  color: #64748b;
  font-size: 14px;
}

.breakdown-item .item-val {
  font-weight: 700;
  color: #1e293b;
  font-size: 15.5px;
}

.pricing-meter-box {
  background: #f8fafc;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.meter-labels span {
  color: #64748b;
  font-weight: 500;
}

.meter-labels strong {
  color: #1e293b;
  font-weight: 700;
}

.meter-bar-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: var(--al-primary);
  transition: width 0.25s ease, background 0.25s ease;
  border-radius: 4px;
}

.meter-bar-fill.excess {
  background: #ef4444;
}

.pricing-total-box {
  background: #fff8f2;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 18px;
}

.total-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.total-amount {
  font-size: 32px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.pricing-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  padding: 11px 13px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.pricing-guarantee svg {
  color: var(--al-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Modal Overlay for Loading */
.al-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.al-modal-box {
  background: #ffffff;
  padding: 36px 48px;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--al-shadow-lg);
}

.al-modal-box h3 {
  font-size: 18px;
  margin: 16px 0 8px 0;
  color: var(--al-primary);
}

.al-modal-box p {
  font-size: 13px;
  color: var(--al-text-muted);
  margin: 0;
}

.al-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--al-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .al-wizard-layout {
    grid-template-columns: 1fr;
  }
  .al-stepper-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .al-step-line {
    display: none;
  }
  .al-type-selector-grid {
    grid-template-columns: 1fr;
  }
  .al-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Modern Calendar System (Flatpickr Theme)
   ========================================================================== */
.al-datepicker-wrapper {
  position: relative;
  width: 100%;
}

.al-datepicker-wrapper .al-input.al-datepicker-input {
  padding-right: 48px;
  cursor: pointer;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  text-transform: capitalize;
}

.al-datepicker-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--al-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}

.al-datepicker-icon:hover {
  color: var(--al-primary-hover);
  transform: translateY(-50%) scale(1.1);
}

/* Modern Flatpickr Popup */
.flatpickr-calendar {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 0 0 1.5px rgba(232, 115, 34, 0.25) !important;
  border: none !important;
  font-family: var(--font-main, 'Montserrat', sans-serif) !important;
  padding: 12px !important;
  width: 320px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #ffffff !important;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  border-top-color: #ffffff !important;
}

.flatpickr-months {
  align-items: center !important;
  padding: 8px 4px 10px !important;
  background: #fffaf5 !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
}

.flatpickr-months .flatpickr-month {
  color: #1e293b !important;
  fill: #1e293b !important;
  height: 38px !important;
}

.flatpickr-current-month {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  padding: 6px 0 0 0 !important;
}

.flatpickr-current-month .cur-month {
  font-weight: 800 !important;
  text-transform: capitalize !important;
  color: #0f172a !important;
}

.flatpickr-current-month input.cur-year {
  font-weight: 700 !important;
  color: var(--al-primary) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  padding: 6px !important;
  border-radius: 8px !important;
  transition: all 0.18s ease !important;
  fill: #475569 !important;
  height: 32px !important;
  width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: #fff5ed !important;
  fill: var(--al-primary) !important;
}

span.flatpickr-weekday {
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.flatpickr-days {
  width: 100% !important;
}

.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  justify-content: space-around !important;
}

.flatpickr-day {
  border-radius: 8px !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  height: 38px !important;
  line-height: 38px !important;
  margin: 2px 0 !important;
  transition: all 0.15s ease !important;
}

.flatpickr-day:hover {
  background: #fff5ed !important;
  color: var(--al-primary) !important;
  border-color: #fed7aa !important;
}

.flatpickr-day.today {
  border-color: var(--al-primary) !important;
  color: var(--al-primary) !important;
  font-weight: 800 !important;
  background: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
  background: var(--al-primary) !important;
  border-color: var(--al-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(232, 115, 34, 0.4) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
 * Días de Publicación (Selector y Chips)
 * -------------------------------------------------------------------------- */
.al-dias-selector-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 6px;
}

.al-dias-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.al-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.al-chip-btn:hover {
  border-color: var(--al-primary);
  color: var(--al-primary);
  background: #fff7ed;
}

.al-chip-btn.active {
  background: var(--al-primary) !important;
  color: #ffffff !important;
  border-color: var(--al-primary) !important;
  box-shadow: 0 2px 6px rgba(232, 115, 34, 0.35);
}

.al-dias-custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.al-custom-days-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.al-stepper-days {
  max-width: 140px;
}

.al-publication-period-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 10px;
}

.al-publication-period-banner strong {
  color: #1e3a8a;
}

/* --------------------------------------------------------------------------
 * Fojas Automáticas PDF
 * -------------------------------------------------------------------------- */
.al-auto-pages-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}

.al-auto-pages-icon {
  color: #16a34a;
  display: flex;
  align-items: center;
}

.al-auto-pages-info {
  display: flex;
  flex-direction: column;
}

.al-auto-pages-info .info-title {
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}

.al-auto-pages-info .info-count {
  font-size: 15px;
  color: #14532d;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
 * Barra Superior Previsualización PDF
 * -------------------------------------------------------------------------- */
.al-prev-pdf-header-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.al-btn-pdf-external {
  font-size: 12px;
  font-weight: 700;
  color: var(--al-primary) !important;
  text-decoration: none;
  border: 1px solid var(--al-primary);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  transition: all 0.15s ease;
}

.al-btn-pdf-external:hover {
  background: var(--al-primary);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
 * Card Grande y Destacada de Fojas Detectadas Automáticamente
 * -------------------------------------------------------------------------- */
.al-auto-pages-card-lg {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.al-auto-pages-card-lg .al-auto-pages-icon {
  background: #d1fae5;
  border-radius: 50%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.al-auto-pages-card-lg .al-auto-pages-info {
  display: flex;
  flex-direction: column;
}

.al-auto-pages-card-lg .info-tag-success {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 4px;
}

.al-auto-pages-card-lg .info-count-large {
  font-size: 26px;
  font-weight: 800;
  color: #065f46;
  line-height: 1.2;
  margin-bottom: 4px;
}

.al-auto-pages-card-lg .info-subtext {
  font-size: 13px;
  color: #047857;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
 * Visor / Previsualización de PDF en Paso 3
 * -------------------------------------------------------------------------- */
.al-step3-pdf-preview-box {
  margin-top: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.al-step3-pdf-preview-header {
  background: #f8fafc;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.al-step3-pdf-iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
 * Selector de Días de Publicación (Paso 3)
 * -------------------------------------------------------------------------- */
.al-form-group-days-in-step3 {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-top: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.al-dias-selector-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.al-dias-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.al-chip-btn {
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.al-chip-btn:hover {
  border-color: var(--al-primary);
  color: var(--al-primary);
  background: #fff7ed;
  transform: translateY(-1px);
}

.al-chip-btn.active {
  background: var(--al-primary);
  color: #ffffff;
  border-color: var(--al-primary);
  box-shadow: 0 2px 8px rgba(232, 115, 34, 0.3);
}

.al-dias-custom-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.al-custom-days-label {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.al-stepper-days {
  display: flex;
  align-items: center;
}

#btn-dias-minus {
  border-radius: 8px 0 0 8px !important;
  border-right: none !important;
}

#btn-dias-plus {
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
}

.al-stepper-days .stepper-btn {
  background: var(--al-primary);
  color: #ffffff;
  border: 2px solid var(--al-primary);
  width: 46px;
  height: 46px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.al-stepper-days .stepper-btn:hover {
  background: #c65e17;
  border-color: #c65e17;
}

.al-input-days-number {
  width: 75px !important;
  height: 46px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  text-align: center !important;
  border: 2px solid var(--al-primary) !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

.al-input-days-number::-webkit-outer-spin-button,
.al-input-days-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Feedback Tag al lado del stepper */
.al-dias-feedback-tag {
  display: flex;
  align-items: center;
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  line-height: 1.3;
}

.feedback-badge.base {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.feedback-badge.extra {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

/* --------------------------------------------------------------------------
 * Banner Prominente de Vigencia Oficial de Publicación
 * -------------------------------------------------------------------------- */
.al-publication-period-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0 12px 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.banner-icon-wrap {
  background: #d1fae5;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-content-wrap {
  display: flex;
  flex-direction: column;
}

.banner-label-title {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.banner-dates-text {
  font-size: 16px;
  font-weight: 800;
  color: #065f46;
  line-height: 1.3;
}

.al-help-text-normalized {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 10px 0 0 0;
}

/* --------------------------------------------------------------------------
 * Normalización de Tipografía en la Cotización Lateral
 * -------------------------------------------------------------------------- */
.al-pricing-sticky-card .pricing-breakdown-list .breakdown-item {
  font-size: 14px;
  padding: 12px 0;
}

.al-pricing-sticky-card .item-desc-wrap {
  display: flex;
  flex-direction: column;
}

.sidebar-days-note {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-top: 4px !important;
  display: block !important;
  line-height: 1.3 !important;
}

.al-pricing-sticky-card .pricing-guarantee {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  padding-top: 14px !important;
}




