/*! =============================================================================
 *  © 2026 Renzo Núñez · RonBStudio — cuadro "Proyección final — actas en el JEE".
 *  Estilo "Manto Vivo" (Sala JEE): navy editorial, profundidad, barras con gloss.
 *  Frente a frente Proyectado vs Actas en Mano. Colores EXPLÍCITOS (sin depender de
 *  color heredado ni de opacity) para verse idéntico en cualquier página.
 * ============================================================================= */

/* Sección en el dashboard: solo padding horizontal; el card chrome lo lleva .ajee
   (mismo patrón que .canaljee / .rfinal). En jee.html el chrome venía del .sjee__block. */
.ajee-section { padding: 0 var(--container-padding, 1rem); }

.ajee {
  --ajee-gloss: var(--sj-gloss, linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.05) 42%, rgba(0,0,0,.12)));
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--c-mv-ink, #1e293b);
}
.ajee *, .ajee *::before, .ajee *::after { box-sizing: border-box; }

/* Card chrome SOLO en el dashboard (.ajee-section). En jee.html el chrome lo da
   .sjee__block, así que ahí .ajee va sin fondo/borde para no duplicar la tarjeta. */
.ajee-section .ajee {
  width: 100%; max-width: 980px; margin: 16px auto 0;  /* mismo ancho que .canaljee / .rfinal */
  padding: 22px 24px 18px;
  background:
    radial-gradient(ellipse at top left,
      var(--c-mv-mapa-radial-from, rgba(31,58,95,.18)) 0%,
      var(--c-mv-mapa-radial-mid, rgba(31,58,95,.05)) 60%,
      transparent 100%),
    var(--c-mv-bg-card, #ffffff);
  border: 1px solid var(--c-mv-card-border, rgba(15,23,42,.07));
  border-radius: var(--c-card-radius, 14px);
  box-shadow: var(--c-card-shadow, 0 4px 16px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.06));
}
.ajee__loading, .ajee__err { font-size: 0.86rem; color: #64748b; padding: 0.4rem 0; text-align: center; }
.ajee__err { color: #b91c1c; font-weight: 600; }

/* --- Cabecera (centrada) --- */
.ajee__head { margin-bottom: 1.15rem; text-align: center; }
.ajee__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.32rem; font-weight: 800; letter-spacing: -0.015em;
  color: #1f3a5f; margin: 0 0 0.3rem; line-height: 1.2;
}
.ajee__sub { font-size: 0.84rem; line-height: 1.5; color: #64748b; margin: 0; }
.ajee__sub b { color: #1e293b; font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- Etiquetas de sección --- */
.ajee__lbl {
  font-size: 0.68rem; font-weight: 700; color: #64748b; margin: 0 0 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ajee__lbl--center { text-align: center; }
.ajee__lbl--mt { margin-top: 1.4rem; }
.ajee__lbl-sub { font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }

/* --- Dots de candidato --- */
.ajee__dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  vertical-align: middle; background-image: var(--ajee-gloss); box-shadow: 0 1px 2px rgba(15,23,42,.18);
}
.ajee__dot--k { background-color: #ff6a00; }
.ajee__dot--s { background-color: #a81e18; }

/* --- Frente a frente: Proyectado vs Actas en Mano --- */
.ajee__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.ajee__vs-col {
  display: flex; flex-direction: column;
  padding: 1rem 0.9rem 1.05rem;
  border: 1px solid rgba(15,23,42,.10); border-radius: 13px;
}
.ajee__vs-col--proy { background: linear-gradient(180deg, #f7f9fc, #eef1f5); }
.ajee__vs-col--mano { background: linear-gradient(180deg, #ffffff, #f4f7fb); box-shadow: 0 2px 10px rgba(15,23,42,.06); }
.ajee__vs-mid { display: flex; align-items: center; justify-content: center; padding: 0 0.45rem; }
.ajee__vs-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #64748b; background: #eceef0; border-radius: 999px; padding: 0.28rem 0.5rem;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}
.ajee__vs-hd { text-align: center; font-size: 0.95rem; font-weight: 800; color: #1f3a5f; line-height: 1.2; }
.ajee__vs-sub { display: block; font-size: 0.75rem; font-weight: 600; color: #94a3b8; margin-top: 3px; }
.ajee__vs-rows { margin: 0.8rem 0 0; }
.ajee__vs-cand { margin-bottom: 0.7rem; }
.ajee__vs-crow { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: #1e293b; margin-bottom: 0.34rem; }
.ajee__vs-crow > span { color: #334155; }
.ajee__vs-crow--k > span { color: #e35d05; font-weight: 600; }
.ajee__vs-crow--s > span { color: #861913; font-weight: 600; }
.ajee__vs-crow b { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ajee__vs-v--k { color: #e35d05; }
.ajee__vs-v--s { color: #861913; }
.ajee__vs-cbar { height: 14px; border-radius: 5px; background: rgba(15,23,42,.06); overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,.10); }
.ajee__vs-cfill {
  height: 100%; border-radius: 0 5px 5px 0; min-width: 3px;
  background-image: var(--ajee-gloss); box-shadow: 0 1px 3px rgba(15,23,42,.16);
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.ajee__vs-cfill--k { background-color: #ff6a00; }
.ajee__vs-cfill--s { background-color: #a81e18; }
.ajee__vs-neto {
  text-align: center; font-size: 0.74rem; color: #64748b; margin: 0.55rem 0 0;
  padding-top: 0.5rem; border-top: 1px solid rgba(15,23,42,.08);
}
.ajee__vs-neto b { font-weight: 800; color: #1e293b; font-variant-numeric: tabular-nums; }
.ajee__vs-hero { text-align: center; margin-top: auto; padding-top: 0.75rem; }
.ajee__vs-herocap { display: block; font-size: 0.57rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #64748b; }
.ajee__vs-heron { display: block; font-size: 1.45rem; font-weight: 800; color: #e35d05; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 1px; }
.ajee__vs-herosub { display: block; font-size: 0.66rem; color: #94a3b8; font-variant-numeric: tabular-nums; }

/* --- Motivos de observación (un color por motivo; el color va inline) --- */
.ajee__mots { display: flex; flex-direction: column; gap: 0.5rem; }
.ajee__mot { display: flex; align-items: center; gap: 0.7rem; font-size: 0.84rem; }
.ajee__mot-l { width: 122px; color: #1e293b; font-weight: 600; flex-shrink: 0; }
.ajee__mot-bar {
  flex: 1; height: 9px; border-radius: 5px; background: rgba(15,23,42,.06); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.10);
}
.ajee__mot-bar > div { height: 100%; border-radius: 5px; background-image: var(--ajee-gloss); }
.ajee__mot-p { width: 34px; text-align: right; font-weight: 800; color: #1e293b; font-variant-numeric: tabular-nums; }
/* Nota explicativa de la diferencia entre columnas (debajo del versus) */
.ajee__why { margin: 0.95rem 0 0; font-size: 0.82rem; line-height: 1.5; color: #64748b; text-align: center; }
.ajee__why b { color: #1f3a5f; font-weight: 700; }

/* --- Notas al pie (estilo editorial / data-journalism): gris apagado, hairline,
   sin caja ni ícono ni color. Reemplaza al banner de alerta y al disclaimer IA. --- */
.ajee__notes { margin-top: 1.3rem; padding-top: 0.85rem; border-top: 1px solid rgba(15,23,42,.09); }
.ajee__note { margin: 0 0 0.5rem; font-size: 0.56rem; line-height: 1.6; color: #9aa3af; }
.ajee__note:last-child { margin-bottom: 0; }
.ajee__note b { color: #64748b; font-weight: 600; }

/* Nota de motivos: visible en desktop, COLAPSABLE en móvil (igual que el disclaimer) */
/* "Por qué están observadas": COLAPSADO por defecto en móvil Y PC (toggle visible). */
.ajee__mot-cb { position: absolute; width: 0; height: 0; opacity: 0; }
.ajee__mot-toggle {
  display: flex; align-items: center; gap: 0.45rem; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  margin-top: 1.3rem; padding: 0.6rem 0;
  border-top: 1px solid rgba(15,23,42,.08);
  font-size: 0.7rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ajee__mot-toggle:hover { color: #1f3a5f; }
.ajee__mot-chev { margin-left: auto; flex-shrink: 0; transition: transform .2s; color: #94a3b8; }
.ajee__mot-body { display: none; }
.ajee__mot-cb:checked ~ .ajee__mot-body { display: block; margin-top: 0.2rem; }
.ajee__mot-cb:checked ~ .ajee__mot-toggle .ajee__mot-chev { transform: rotate(180deg); }
.ajee__fine-txt { font-size: 0.64rem; color: #94a3b8; margin: 0.8rem 0 0; line-height: 1.5; }

/* (Disclaimer IA: ahora es una nota al pie .ajee__note, junto al resto.) */

/* --- Responsive: el versus se mantiene LADO A LADO también en móvil (no se apila).
   Se achican fuentes/paddings/badge para que las 2 columnas quepan en pantallas chicas. --- */
@media (max-width: 560px) {
  .ajee-section .ajee { padding: 16px 12px 14px; }
  .ajee__title { font-size: 1.1rem; }
  .ajee__lbl { font-size: 0.62rem; }
  .ajee__vs-col { padding: 0.7rem 0.5rem 0.75rem; border-radius: 11px; }
  .ajee__vs-mid { padding: 0 0.18rem; }
  .ajee__vs-badge { font-size: 0.55rem; padding: 0.22rem 0.32rem; }
  .ajee__vs-hd { font-size: 0.82rem; }
  .ajee__vs-sub { font-size: 0.6rem; margin-top: 1px; }
  .ajee__vs-rows { margin-top: 0.55rem; }
  .ajee__vs-cand { margin-bottom: 0.5rem; }
  .ajee__vs-crow { font-size: 0.72rem; gap: 0.3rem; margin-bottom: 0.25rem; }
  .ajee__dot { width: 8px; height: 8px; }
  .ajee__vs-cbar { height: 11px; }
  .ajee__vs-neto { font-size: 0.66rem; padding-top: 0.4rem; }
  .ajee__vs-herocap { font-size: 0.52rem; letter-spacing: 0.05em; }
  .ajee__vs-heron { font-size: 1rem; line-height: 1.1; }
  .ajee__vs-herosub { font-size: 0.58rem; }
  .ajee__mot-l { width: 104px; font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .ajee-section .ajee { padding: 14px 9px 12px; }
  .ajee__vs-col { padding: 0.6rem 0.38rem 0.65rem; }
  .ajee__vs-mid { padding: 0 0.1rem; }
  .ajee__vs-badge { font-size: 0.5rem; padding: 0.16rem 0.24rem; }
  .ajee__vs-hd { font-size: 0.75rem; }
  .ajee__vs-crow { font-size: 0.66rem; gap: 0.22rem; }
  .ajee__vs-heron { font-size: 0.9rem; }
}
