/* ============================================================
   📖 PARA ESTUDIANTES — votaciones.css es EL MAQUILLAJE.
   3 conceptos clave para dominar:
     :root { --oro }        → VARIABLES: cambias 1, cambia todo
     @keyframes             → las ANIMACIONES (logo flota, brillo)
     @media (max-width:…)   → RESPONSIVE: cómo se ve en celular
   Experimento: cambia --oro a #e91e63 y mira la magia.
   ============================================================ *//* ============================================================
   VOTA RJPM — Votaciones Estudiantiles
   Tema oficial del sitio: azul marino + dorado + animaciones
   Unidad Educativa Réplica Juan Pío Montúfar
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul: #002589;
  --azul2: #1e40af;
  --rojo: #640000;
  --oro: #ffc232;
  --oro2: #ff9900;
  --fondo: #0d0d1a;
  --card: #1a1a2e;
  --borde: rgba(255,255,255,0.12);
  --texto: #eef0ff;
  --verde: #2ecc71;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
}

.vot-screen { display: none; min-height: 100vh; }
.vot-screen.active { display: block; }

/* ───────────── LANDING ───────────── */
.vot-landing {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #1b2a6b 0%, #0d0d1a 60%);
  overflow: hidden;
}
.vot-landing.active { display: flex; }
.vot-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: votFloat 9s ease-in-out infinite;
}
.vot-orb-1 { width: 340px; height: 340px; background: #002589; top: -80px; left: -60px; }
.vot-orb-2 { width: 280px; height: 280px; background: #640000; bottom: -60px; right: -40px; animation-delay: 2s; }
.vot-orb-3 { width: 180px; height: 180px; background: #ffc232; top: 55%; left: 12%; opacity: 0.28; animation-delay: 4s; }
@keyframes votFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-35px) scale(1.06); }
}
.vot-landing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  max-width: 720px;
}
.vot-landing-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 10px;
  box-shadow: 0 0 40px rgba(255,194,50,0.45);
  animation: votBob 3.5s ease-in-out infinite, votGlowPulse 3s ease-in-out infinite;
}
@keyframes votBob { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-12px) rotate(2deg)} }
@keyframes votGlowPulse {
  0%,100% { box-shadow: 0 0 30px rgba(255,194,50,0.35); }
  50%     { box-shadow: 0 0 60px rgba(255,194,50,0.65); }
}
.vot-landing-chip {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255,194,50,0.12);
  border: 1px solid rgba(255,194,50,0.4);
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vot-landing-title {
  margin-top: 14px;
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
}
.vot-landing-title span {
  background: linear-gradient(135deg, #ffe082, var(--oro), var(--oro2), #ffe082);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: votShine 3s linear infinite;
}
@keyframes votShine { to { background-position: 300% center; } }
.vot-landing-sub {
  margin-top: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}
.vot-landing-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.vot-btn-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 22px;
  padding: 26px 38px;
  min-width: 230px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.vot-btn-big i { font-size: 2.2rem; }
.vot-btn-big span { font-size: 1.35rem; font-weight: 800; letter-spacing: 1px; }
.vot-btn-big small { font-size: 0.75rem; opacity: 0.75; font-weight: 400; }
.vot-btn-vote {
  background: linear-gradient(135deg, var(--oro), var(--oro2), var(--oro));
  background-size: 200% auto;
  color: #1a1a2e;
  box-shadow: 0 12px 35px rgba(255,153,0,0.4);
  animation: votBtnGlow 2.5s ease-in-out infinite, votShine 4s linear infinite;
}
@keyframes votBtnGlow {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.05); }
}
.vot-btn-login {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
}
.vot-btn-big:hover { transform: translateY(-5px) scale(1.04); }
.vot-btn-vote:hover { box-shadow: 0 18px 45px rgba(255,153,0,0.55); }
.vot-btn-login:hover { background: rgba(255,255,255,0.14); }
.vot-landing-foot {
  margin-top: 30px;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

/* ───────────── LOGIN ───────────── */
#votLogin {
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 70% 20%, #251450 0%, #0d0d1a 60%);
  padding: 20px;
}
#votLogin.active { display: flex; }
.vot-login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 20px;
  padding: 36px 30px 28px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  text-align: center;
}
.vot-back {
  position: absolute;
  top: 14px;
  left: 14px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 7px 13px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.25s;
}
.vot-back:hover { background: var(--oro); color: #1a1a2e; }
.vot-login-icon {
  width: 70px;
  height: 70px;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rojo), var(--azul));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--oro);
}
.vot-login-card h2 { font-size: 1.4rem; }
.vot-login-card > p { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 4px 0 18px; }
.vot-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 12px;
}
.vot-field > i { color: var(--oro); }
.vot-field input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  outline: none;
}
.vot-field input::placeholder { color: rgba(255,255,255,0.35); }
.vot-eye { border:none; background:transparent; color:rgba(255,255,255,0.5); cursor:pointer; }
.vot-eye:hover { color: var(--oro); }
.vot-err {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  color: #ff8a7a;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-align: left;
}
.vot-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(135deg, var(--oro), var(--oro2));
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.25s;
}
.vot-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,153,0,0.35); }
.vot-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ───────────── ACCESO A LA URNA ───────────── */
#votClave {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #12305e 0%, #0d0d1a 60%);
  padding: 20px;
}
#votClave.active { display: flex; }
.vot-urna-icon { background: linear-gradient(135deg, var(--oro), var(--oro2)); color: #1a1a2e; }
.vot-code-input { text-align: center; letter-spacing: 4px; font-weight: 700; }
.vot-urna-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: rgba(255,255,255,0.5);
  font-size: 0.73rem;
  margin-top: 14px;
  line-height: 1.55;
  text-align: left;
}
.vot-urna-note i { color: var(--oro); margin-top: 2px; flex-shrink: 0; }
.vot-hint { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin: -6px 0 14px; line-height: 1.55; }
.vot-seg-status { display: flex; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.vot-seg-status .vot-tag { display: inline-flex; align-items: center; gap: 6px; }
.vot-lock {
  margin-left: 10px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(231,76,60,0.5);
  background: rgba(231,76,60,0.16);
  color: #ff8a7a;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.25s;
}
.vot-lock:hover { background: #e74c3c; color: #fff; transform: scale(1.08); }
.vot-success-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 20px; }
.vot-success-actions .vot-btn { max-width: 300px; margin: 0; }
.vot-qr-sep { border-top: 1px solid var(--borde); margin: 22px 0 18px; }
.vot-qr-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--borde);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}
.vot-qr-canvas {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  line-height: 0;
}
.vot-qr-url { word-break: break-all; font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 12px; }

/* ───────────── KIOSK ───────────── */
#votKiosk {
  background: radial-gradient(circle at 50% 0%, #1b2a6b 0%, #0d0d1a 65%);
}
#votKiosk.active { display: block; }
.vot-kiosk-wrap { max-width: 1050px; margin: 0 auto; padding: 18px; }
.vot-kiosk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 6px;
  flex-wrap: wrap;
}
.vot-kiosk-head .vot-back { position: static; }
.vot-kiosk-brand { display: flex; align-items: center; gap: 12px; }
.vot-kiosk-brand img {
  width: 46px; height: 46px; object-fit: contain;
  border-radius: 50%; background: rgba(255,255,255,0.08); padding: 5px;
}
.vot-kiosk-brand strong { font-size: 0.95rem; display: block; }
.vot-kiosk-brand small { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.vot-kiosk-steps { display: flex; gap: 8px; }
.vot-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: 0.3s;
}
.vot-dot.done { background: var(--verde); }
.vot-dot.now { background: var(--oro); transform: scale(1.35); box-shadow: 0 0 10px rgba(255,194,50,0.6); }

.vot-step { padding: 30px 6px 50px; animation: votStepIn 0.4s ease; }
@keyframes votStepIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
.vot-step-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.vot-step-title i { color: var(--oro); animation: votWiggle 2.5s ease-in-out infinite; display: inline-block; }
@keyframes votWiggle {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
.vot-step-sub { text-align: center; color: rgba(255,255,255,0.6); margin-bottom: 20px; }

.vot-pick-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.vot-pick-jornada { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 860px; margin-left: auto; margin-right: auto; }
.vot-pick-grado { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vot-pick-paralelo { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-width: 860px; margin-left: auto; margin-right: auto; }

.vot-pick {
  border: 2px solid var(--borde);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  padding: 22px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.22s;
}
.vot-pick i { font-size: 1.8rem; color: var(--oro); }
.vot-pick:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--oro);
  background: linear-gradient(135deg, rgba(0,37,137,0.35), rgba(255,194,50,0.12));
  box-shadow: 0 14px 34px rgba(255,153,0,0.3);
}
.vot-pick:active { transform: scale(0.97); }

/* Papeleta */
.vot-ballot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 22px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.vot-cand {
  position: relative;
  border: 3px solid var(--borde);
  border-radius: 22px;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: center;
  padding: 0 0 20px;
}
.vot-cand:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--oro);
  box-shadow: 0 20px 50px rgba(255,153,0,0.35);
}
.vot-cand:active { transform: scale(0.97); }
.vot-cand-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(135deg, #251450, #0d0d1a);
}
.vot-cand-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--oro);
  background: linear-gradient(135deg, #251450, #10102a);
}
.vot-cand-name { font-size: 1.35rem; font-weight: 800; margin-top: 14px; padding: 0 14px; }
.vot-cand-lema { color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 4px 16px 0; font-style: italic; }
.vot-cand-check {
  margin: 14px auto 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: transparent;
  transition: 0.25s;
}
.vot-cand:hover .vot-cand-check { border-color: var(--oro); color: var(--oro); }
.vot-cand-nulo { border-style: dashed; }
.vot-cand-blanco { background: rgba(255,255,255,0.06); }
.vot-cand-nulo .vot-cand-placeholder { background: repeating-linear-gradient(45deg, #2a2a45, #2a2a45 12px, #232338 12px, #232338 24px); font-size: 2.6rem; color: #ff8a7a; }
.vot-cand-blanco .vot-cand-placeholder { background: rgba(255,255,255,0.08); font-size: 2.6rem; color: rgba(255,255,255,0.4); }

/* Éxito */
.vot-success { text-align: center; padding-top: 60px; }
.vot-success-icon {
  width: 110px; height: 110px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), #27ae60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: #fff;
  box-shadow: 0 0 60px rgba(46,204,113,0.5);
  animation: votPop 0.6s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes votPop { from { transform: scale(0); } to { transform: scale(1); } }
.vot-success h2 { font-size: 2rem; }
.vot-success p { color: rgba(255,255,255,0.6); margin: 8px 0 26px; }
.vot-success .vot-btn { max-width: 280px; margin: 0 auto; }

#votConfetti {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5000;
}

/* ───────────── PANEL ───────────── */
.vot-panel-layout { display: flex; min-height: 100vh; }
.vot-side {
  width: 250px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.vot-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--borde);
}
.vot-side-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.08); padding: 4px; }
.vot-side-brand strong { font-size: 0.95rem; display: block; }
.vot-side-brand small { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.vot-side-nav { padding: 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.vot-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
}
.vot-nav i { width: 18px; text-align: center; }
.vot-nav:hover { background: rgba(255,255,255,0.07); color: #fff; }
.vot-nav.active { background: linear-gradient(135deg, rgba(255,194,50,0.18), rgba(255,153,0,0.1)); color: var(--oro); }
.vot-side-foot { padding: 12px 10px; border-top: 1px solid var(--borde); }
.vot-nav-out:hover { background: rgba(231,76,60,0.15); color: #ff8a7a; }

.vot-main { flex: 1; padding: 22px 26px 50px; min-width: 0; }
.vot-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.vot-main-head h2 { font-size: 1.5rem; }
.vot-user-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255,194,50,0.12);
  border: 1px solid rgba(255,194,50,0.35);
  color: var(--oro);
  font-size: 0.75rem;
  font-weight: 600;
}

.vot-box {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.vot-box h3 { font-size: 1.05rem; margin-bottom: 14px; }
.vot-box h3 i { color: var(--oro); margin-right: 6px; }
.vot-box-danger { border-color: rgba(231,76,60,0.4); }
.vot-box-danger h3 { color: #ff8a7a; }
.vot-box-danger p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 14px; }
.vot-box-danger code { background: rgba(231,76,60,0.2); color: #ff8a7a; padding: 2px 8px; border-radius: 6px; }

.vot-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.vot-card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.vot-card i { font-size: 1.6rem; color: var(--oro); }
.vot-card b { display: block; font-size: 1.9rem; margin-top: 6px; }
.vot-card span { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

.vot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vot-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.vot-form-group { margin-bottom: 12px; }
.vot-form-group label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 5px; }
.vot-input {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.87rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
}
.vot-input:focus { border-color: var(--oro); }
.vot-input::placeholder { color: rgba(255,255,255,0.35); }
select.vot-input option { background: var(--card); color: #fff; }
.vot-check label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; }
.vot-check input { width: 17px; height: 17px; accent-color: var(--oro); }
.vot-logo-row { display: flex; align-items: center; gap: 14px; }
.vot-logo-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,0.08); padding: 5px; }
.vot-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px dashed rgba(255,194,50,0.4);
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.vot-file-btn:hover { background: rgba(255,194,50,0.08); border-color: var(--oro); }
.vot-form-actions { display: flex; gap: 10px; }

.vot-btn-sm {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.2s;
}
.vot-btn-gold { background: linear-gradient(135deg, var(--oro), var(--oro2)); color: #1a1a2e; }
.vot-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,153,0,0.35); }
.vot-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; }
.vot-btn-ghost:hover { background: rgba(255,255,255,0.18); }
.vot-btn-red { background: #e74c3c; color: #fff; }
.vot-btn-red:hover { background: #c0392b; }
.vot-btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }

/* Listas grid admin */
.vot-listas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vot-lista-card {
  border: 1px solid var(--borde);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.vot-lista-card img { width: 100%; height: 130px; object-fit: cover; background: #10102a; }
.vot-lista-card-body { padding: 12px 14px; }
.vot-lista-card-body b { display: block; font-size: 1rem; }
.vot-lista-card-body small { color: rgba(255,255,255,0.55); font-style: italic; display: block; margin-top: 3px; }
.vot-lista-card-foot { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--borde); }
.vot-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.68rem; font-weight: 700; margin-top: 8px; }
.vot-tag-on { background: rgba(46,204,113,0.15); color: var(--verde); }
.vot-tag-off { background: rgba(231,76,60,0.15); color: #ff8a7a; }
.vot-mini {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vot-mini-edit { background: rgba(255,194,50,0.15); color: var(--oro); }
.vot-mini-edit:hover { background: rgba(255,194,50,0.3); }
.vot-mini-img { background: rgba(37,20,80,0.9); color: #b7a6ff; }
.vot-mini-img:hover { background: rgba(37,20,80,1); }
.vot-mini-del { background: rgba(231,76,60,0.15); color: #ff8a7a; }
.vot-mini-del:hover { background: rgba(231,76,60,0.35); }

/* Tablas */
.vot-table-wrap { overflow-x: auto; }
.vot-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.vot-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--oro);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255,194,50,0.3);
}
.vot-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.vot-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Filtros de reportes */
.vot-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.vot-filter { flex: 1; min-width: 150px; }
.vot-filter label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 5px; }
.vot-filter select {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  padding: 9px 11px;
}
.vot-filter select option { background: var(--card); color: #fff; }

/* Barras de resultado */
.vot-bar-row { margin-bottom: 14px; }
.vot-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; }
.vot-bar-label b { color: var(--oro); }
.vot-bar-track {
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.vot-bar-fill {
  height: 100%;
  border-radius: 13px;
  background: linear-gradient(90deg, var(--azul), #4a6fff);
  width: 0;
  transition: width 0.9s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.vot-bar-fill.oro { background: linear-gradient(90deg, var(--oro2), var(--oro)); color: #1a1a2e; }
.vot-bar-fill.rojo { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.vot-bar-fill.gris { background: linear-gradient(90deg, #555, #777); }
.vot-winner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--oro), var(--oro2));
  color: #1a1a2e;
  font-weight: 700;
  font-size: 0.8rem;
  margin-left: 8px;
}
.vot-sec h4 { margin: 22px 0 12px; font-size: 0.95rem; color: var(--oro); }
.vot-empty { text-align: center; color: rgba(255,255,255,0.5); padding: 40px 0; font-size: 0.9rem; }
.vot-empty i { font-size: 2.4rem; display: block; margin-bottom: 10px; color: rgba(255,194,50,0.4); }

/* Gráfico de pastel */
.vot-pie-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0 6px;
}
.vot-pie-svg { flex-shrink: 0; }
.vot-pie-legend { min-width: 180px; }
.vot-pie-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.85);
}
.vot-pie-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.vot-pie-item b { margin-left: auto; padding-left: 12px; }

/* Modal confirmación */
.vot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vot-modal.active { display: flex; }
.vot-modal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: votPop 0.35s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.vot-modal-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.vot-modal-body { margin-bottom: 20px; }
.vot-modal-actions { display: flex; gap: 10px; justify-content: center; }
.vot-confirm-choice {
  border: 2px solid var(--oro);
  border-radius: 14px;
  padding: 14px;
  display: inline-block;
}
.vot-confirm-choice img { width: 100%; max-width: 180px; max-height: 130px; object-fit: cover; border-radius: 10px; }
.vot-confirm-choice b { display: block; font-size: 1.15rem; margin-top: 6px; }
.vot-confirm-choice small { color: rgba(255,255,255,0.6); font-style: italic; }

/* Toast */
.vot-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  color: #fff;
  border-left: 4px solid var(--oro);
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 0.85rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 7000;
  max-width: 90vw;
}
.vot-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vot-toast.success { border-left-color: var(--verde); }
.vot-toast.error { border-left-color: #e74c3c; }

/* Footer */
.vot-footer {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.vot-footer b { color: var(--oro); font-weight: 600; }
.vot-landing .vot-footer, #votLogin .vot-footer, #votKiosk .vot-footer {
  position: absolute;
  bottom: 0;
  left: 0;
}
.vot-landing, #votLogin, #votKiosk { position: relative; padding-bottom: 46px; box-sizing: border-box; }
.vot-footer-panel { margin-top: 30px; }

/* Responsive */
@media (max-width: 860px) {
  .vot-panel-layout { flex-direction: column; }
  .vot-side { width: 100%; height: auto; position: static; }
  .vot-side-nav { flex-direction: row; flex-wrap: wrap; }
  .vot-side-foot { display: flex; gap: 6px; }
  .vot-form-row, .vot-form-row-3 { grid-template-columns: 1fr; }
  .vot-landing-btns { flex-direction: column; align-items: center; }
  .vot-btn-big { width: 100%; max-width: 320px; }
}
@media (max-width: 768px) {
  .vot-kiosk-wrap { padding: 10px; }
  .vot-kiosk-brand strong { font-size: 0.82rem; }
  .vot-kiosk-brand small { font-size: 0.65rem; }
  .vot-kiosk-steps { order: 3; width: 100%; justify-content: center; }
  .vot-step { padding: 18px 4px 40px; }
  .vot-pick-grid { gap: 10px; }
  .vot-pick-grado { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); }
  .vot-pick-paralelo { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
  .vot-pick { padding: 15px 8px; font-size: 0.9rem; }
  .vot-pick i { font-size: 1.4rem; }
  .vot-ballot { grid-template-columns: 1fr; max-width: 420px; }
  .vot-cand-img, .vot-cand-placeholder { height: 150px; }
  .vot-main { padding: 14px 12px 60px; }
  .vot-cards { grid-template-columns: repeat(2, 1fr); }
  .vot-filters { flex-direction: column; align-items: stretch; }
  .vot-filter { min-width: 0; }
  .vot-table { font-size: 0.78rem; }
  .vot-table th, .vot-table td { padding: 7px 8px; }
  .vot-login-card { padding: 40px 20px 24px; }
  .vot-modal-card { padding: 22px 16px; }
}
@media (max-width: 420px) {
  .vot-pick-grado { grid-template-columns: 1fr 1fr; }
  .vot-pick-paralelo { grid-template-columns: repeat(3, 1fr); }
  .vot-cards { grid-template-columns: 1fr 1fr; }
  .vot-card b { font-size: 1.5rem; }
  .vot-listas-grid { grid-template-columns: 1fr; }
  .vot-modal-actions { flex-direction: column; }
  .vot-modal-actions .vot-btn-sm { width: 100%; justify-content: center; }
}

/* Impresión */
@media print {
  body { background: #fff; color: #111; }
  .vot-side, .vot-main-head, .vot-filters, .vot-back, .vot-toast,
  .vot-screen:not(#votPanel), #votSec-resumen, #votSec-config,
  #votSec-listas, #votSec-usuarios, #votSec-riesgo { display: none !important; }
  .vot-panel-layout { display: block; }
  .vot-main { padding: 0; }
  .vot-sec { display: block !important; }
  .vot-box { border: 1px solid #ccc; break-inside: avoid; }
  .vot-table th { color: #111; border-bottom-color: #333; }
  .vot-bar-track { background: #eee; }
  .vot-bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Thumbnail de lista en reportes */
.vot-bar-name { display: inline-flex; align-items: center; gap: 8px; }
.vot-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,194,50,0.35); vertical-align: middle; }
/* Cards de resultados con imagen grande */
.vot-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.vot-result-card { background: rgba(255,255,255,0.04); border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; transition: 0.25s; }
.vot-result-card:hover { transform: translateY(-4px); border-color: rgba(255,194,50,0.4); box-shadow: 0 12px 30px rgba(255,153,0,0.2); }
.vot-result-card img { width: 100%; height: 105px; object-fit: contain; display: block; padding: 10px; background: linear-gradient(135deg, #251450, #10102a); border-bottom: 1px solid var(--borde); box-sizing: border-box; }
.vot-result-ph { width: 100%; height: 105px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--oro); background: linear-gradient(135deg, #251450, #10102a); border-bottom: 1px solid var(--borde); }
.vot-result-info { padding: 12px 14px; }
.vot-result-info b { font-size: 1rem; }
.vot-result-votes { display: block; color: var(--oro); font-size: 0.8rem; font-weight: 700; margin: 4px 0 8px; }
@media (max-width: 420px) { .vot-result-grid { grid-template-columns: 1fr 1fr; } }
