/* ===================================================================
   VISTA ESTUDIANTE: SIMULADOR DE APP MÓVIL (7 PANTALLAS)
   =================================================================== */

.mobile-showcase-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 32px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.showcase-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.showcase-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Indicador de pasos del estudiante (Paso 1 al 7) */
.student-steps-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-indicator .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-indicator.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.step-indicator.active .step-num {
  background: #fff;
  color: var(--primary);
}

.step-indicator.completed {
  border-color: var(--success);
  color: var(--success);
}

.step-indicator.completed .step-num {
  background: var(--success);
  color: #fff;
}

/* Teléfono Mockup Frame */
.phone-mockup {
  width: 390px;
  height: 800px;
  background: #000;
  border-radius: 50px;
  padding: 12px;
  box-shadow: var(--shadow-phone), 0 0 0 2px #334155;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Notch & Status Bar */
.phone-status-bar {
  height: 38px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0F172A;
  z-index: 100;
  background: #fff;
}

.phone-notch {
  width: 110px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pantalla deslizable interior */
.phone-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
}

.phone-content::-webkit-scrollbar {
  display: none;
}

.mobile-step {
  display: none;
  flex-direction: column;
  flex: 1;
}

.mobile-step.active {
  display: flex;
  animation: fade-in-step 0.3s ease;
}

@keyframes fade-in-step {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabecera de pantalla del teléfono */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.mobile-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  width: 100%;
}

.mobile-back-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-main);
  position: absolute;
  left: 0;
  z-index: 10;
}

/* Formularios Mobile */
.mobile-form-group {
  margin-bottom: 14px;
}

.mobile-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.mobile-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.mobile-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.mobile-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.mobile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* PANTALLA 2: Contrato */
.contract-scroll-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 440px;
  overflow-y: auto;
  white-space: pre-line;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  margin-bottom: 18px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* PANTALLA 3: Resumen del Curso */
.course-promo-card {
  background: var(--gradient-card);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(67, 56, 202, 0.35);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.course-promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.course-promo-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.course-price-label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.course-price-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #FDE047;
}

.course-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.course-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.course-benefits-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* PANTALLA 4: Mis Pagos */
.donut-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 20px;
}

.donut-chart {
  position: relative;
  width: 130px;
  height: 130px;
}

.donut-chart svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.donut-chart .donut-circle-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 10;
}

.donut-chart .donut-circle-val {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-text .percent {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.donut-center-text .desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.payment-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.split-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.split-card .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.split-card .val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.split-card.paid .val { color: var(--success); }
.split-card.pending .val { color: var(--danger); }

.payment-history-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.payment-item:last-child {
  border-bottom: none;
}

/* PANTALLA 5: Subir Cédula */
.upload-instruction {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.id-card-preview-graphic {
  background: #F8FAFC;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.id-card-preview-graphic:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.id-graphic-img {
  width: 140px;
  height: 90px;
  border-radius: 8px;
  background: #E2E8F0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.id-graphic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-status-pill.pending { background: var(--warning-light); color: #B45309; }
.doc-status-pill.approved { background: var(--success-light); color: #047857; }
.doc-status-pill.rejected { background: var(--danger-light); color: #B91C1C; }

/* PANTALLA 6: Simulacro ICFES */
.exam-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.exam-subject-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.exam-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FEE2E2;
  color: #DC2626;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
}

.question-progress-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.question-statement-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 12px;
}

.question-diagram {
  width: 100%;
  height: 140px;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.question-diagram svg {
  max-width: 90%;
  max-height: 90%;
}

.exam-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.exam-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.exam-option-item:hover {
  border-color: var(--primary);
  background: var(--border-light);
}

.exam-option-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.opt-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.exam-option-item.selected .opt-badge {
  background: var(--primary);
  color: #fff;
}

.exam-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.exam-prev-btn {
  flex: 1;
  background: var(--border-light);
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.exam-next-btn {
  flex: 2;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* PANTALLA 7: Resultados */
.results-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 20px;
}

.results-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.res-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
}

.res-stat-card .val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.res-stat-card .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.res-stat-card.correct .val { color: var(--success); }
.res-stat-card.wrong .val { color: var(--danger); }
.res-stat-card.blank .val { color: var(--text-muted); }

.subject-bars-section {
  margin-bottom: 20px;
}

.subject-bars-section h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.subject-bar-item {
  margin-bottom: 10px;
}

.subject-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--success);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
