/* ============================================================
   CPCE MENDOZA — Design System Validador
   ============================================================ */

/* ── Reset & Variables (Tu código original intacto) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:    #0d3d6e;
  --blue-main:    #1a5fa8;
  --blue-mid:     #2472c0;
  --blue-bright:  #337ab7;
  --blue-light:   #e8f1fa;
  --blue-pale:    #f0f6ff;
  --gold:         #c8972a;
  --gold-light:   #f5e9cc;
  --text-dark:    #0f2137;
  --text-mid:     #2d4a6a;
  --text-muted:   #5a7a99;
  --text-subtle:  #8aa5be;
  --white:        #ffffff;
  --surface:      #f7fafd;
  --border:       #d0e0f0;
  --border-light: #e8f0f8;
  --success:      #1d8a4e;
  --error:        #c0392b;
  --warning:      #d4850a;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    22px;
  --shadow-sm:    0 1px 3px rgba(13,61,110,0.08), 0 1px 2px rgba(13,61,110,0.05);
  --shadow-md:    0 4px 16px rgba(13,61,110,0.12), 0 1px 4px rgba(13,61,110,0.06);
  --shadow-lg:    0 12px 40px rgba(13,61,110,0.18), 0 2px 8px rgba(13,61,110,0.08);
  --font-display: 'Poppins', Arial, sans-serif;
  --font-body:    'Poppins', Arial, sans-serif;
  --transition:   0.18s ease;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background-color: var(--blue-deep);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* ── Fondo decorativo ── */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-circle { position: absolute; border-radius: 50%; opacity: 0.12; }
.bg-circle--1 { width: 700px; height: 700px; background: radial-gradient(circle, var(--blue-bright) 0%, transparent 70%); top: -200px; right: -150px; }
.bg-circle--2 { width: 500px; height: 500px; background: radial-gradient(circle, #0a2a50 0%, transparent 70%); bottom: -150px; left: -100px; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; }

/* ── Shell & Header ── */
.shell { position: relative; z-index: 1; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 0; }
.app-header { display: flex; align-items: center; gap: 16px; padding: 0 4px 20px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; transition: opacity var(--transition); }
.header-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.header-title { display: flex; flex-direction: column; gap: 2px; }
.header-title__sup { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); line-height: 1; }
.header-title__main { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; }

/* ── Tarjeta principal ── */
.card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-main) 40%, var(--blue-bright) 70%, var(--gold) 100%); z-index: 2; }
.progress-bar { height: 3px; background: var(--border-light); position: relative; margin-top: 3px; }
.progress-bar__fill { height: 100%; background: var(--blue-main); transition: width 0.4s ease; }

.screen { padding: 32px 36px; animation: screenIn 0.25s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 24px; border-radius: var(--radius-md); border: none; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all var(--transition); line-height: 1; }
.btn--primary { background: var(--blue-main); color: var(--white); box-shadow: 0 2px 8px rgba(26,95,168,0.3); }
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 4px 16px rgba(26,95,168,0.4); }
.btn--full { width: 100%; }

/* ── Footer ── */
.app-footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 4px 0; font-size: 12px; color: rgba(255,255,255,0.45); flex-wrap: wrap; }
.app-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ============================================================
   CLASES ESPECÍFICAS PARA EL VALIDADOR 
   ============================================================ */

/* Spinner Azul */
.loader-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; gap: 16px; }
.loader-spinner-blue { width: 40px; height: 40px; border: 4px solid var(--blue-light); border-top-color: var(--blue-main); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loader-text { color: var(--text-muted); font-size: 15px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilidades Textos */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.screen__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.screen__desc { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* Badges */
.step-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.step-badge--success { color: var(--success); background: #edfaf3; border: 1px solid #b3e6cc; }
.step-badge--error { color: var(--error); background: #fdeded; border: 1px solid #f5baba; }
.step-badge--warning { color: var(--warning); background: #fff8ec; border: 1px solid #f5e2b0; }

/* Tarjetas de Resultado */
.result-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 20px; }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.data-row:last-child { border-bottom: none; }
.data-label { color: var(--text-muted); font-weight: 600; }
.data-value { color: var(--text-dark); font-weight: 700; text-align: right; }

/* Icono Grande */
.big-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }

@media (max-width: 600px) {
  body { padding: 16px; align-items: flex-start; }
  .screen { padding: 24px 20px; }
  .data-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .data-value { text-align: left; }
}