:root {
  color-scheme: light;
  --ink: #11261f;
  --muted: #64736d;
  --paper: #f5f8f6;
  --card: #ffffff;
  --line: #dce7e1;
  --green: #087f5b;
  --green-dark: #056046;
  --lime: #c6f36b;
  --danger: #c33f4a;
  --shadow: 0 18px 55px rgba(10, 55, 42, .11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 7% 2%, rgba(198, 243, 107, .25), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 225, .85);
  background: rgba(245, 248, 246, .88);
  backdrop-filter: blur(16px);
}
.topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--ink); color: var(--lime); }
.brand-mark svg { width: 21px; height: 21px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-pill, .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 750; }
.status-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a6b2ad; }
.status-dot.live { background: #18a979; box-shadow: 0 0 0 5px rgba(24,169,121,.13); }
.btn {
  min-height: 46px; border: 0; border-radius: 14px; padding: 0 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 780; text-decoration: none; transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; box-shadow: 0 9px 22px rgba(8,127,91,.2); }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }
.btn-soft { background: #e8f4ef; color: var(--green-dark); }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #fff0f1; color: var(--danger); }
.btn svg { width: 19px; height: 19px; }
.hero { padding: 62px 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: end; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 18px; font-size: clamp(2.15rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.deadline-card { min-width: 235px; padding: 20px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.deadline-card span { display: block; margin-bottom: 7px; color: #bad0c8; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.deadline-card strong { display: block; font-size: 1.08rem; }
.deadline-card small { color: var(--lime); }
.section { padding: 26px 0 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 5px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.section-head p { margin-bottom: 0; color: var(--muted); }
.count { min-width: max-content; color: var(--muted); font-weight: 700; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.candidate-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 10px 35px rgba(17,38,31,.065); }
.gallery { position: relative; aspect-ratio: 16 / 11; background: #dfe9e4; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(17,38,31,.78); color: white; font-size: .76rem; font-weight: 800; backdrop-filter: blur(6px); }
.gallery-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px; pointer-events: none; }
.gallery-nav button { width: 36px; height: 36px; pointer-events: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 900; }
.candidate-body { padding: 21px; }
.candidate-body h3 { margin-bottom: 7px; font-size: 1.28rem; letter-spacing: -.025em; }
.candidate-body p { min-height: 48px; margin-bottom: 20px; color: var(--muted); font-size: .94rem; }
.vote-btn { width: 100%; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 14px; background: #eef6f2; color: var(--green-dark); font-weight: 800; }
.empty { padding: 48px 24px; border: 1px dashed #b8cbc2; border-radius: var(--radius); text-align: center; color: var(--muted); background: rgba(255,255,255,.55); }
.skeleton { min-height: 320px; border-radius: var(--radius); background: linear-gradient(100deg,#e9efec 20%,#f7faf8 40%,#e9efec 60%); background-size: 200% 100%; animation: shine 1.2s infinite; }
@keyframes shine { to { background-position-x: -200%; } }
.dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 26px; padding: 0; box-shadow: 0 30px 90px rgba(17,38,31,.3); }
.dialog::backdrop { background: rgba(10,26,20,.65); backdrop-filter: blur(4px); }
.dialog-inner { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 20px; }
.dialog-head h2 { margin-bottom: 4px; letter-spacing: -.035em; }
.dialog-head p { margin-bottom: 0; color: var(--muted); }
.icon-btn { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 1.35rem; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 760; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; border: 1px solid #cbd9d2; border-radius: 13px; padding: 11px 13px; background: white; color: var(--ink); outline: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8,127,91,.11); }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef6f2; color: var(--green-dark); font-weight: 700; }
.notice.error { background: #fff0f1; color: var(--danger); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 28px); padding: 13px 17px; border-radius: 14px; background: var(--ink); color: white; font-weight: 700; box-shadow: var(--shadow); transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: var(--ink); color: white; }
.sidebar .brand { padding: 0 8px 28px; }
.nav { display: grid; gap: 7px; }
.nav button { min-height: 46px; border: 0; border-radius: 13px; padding: 0 14px; text-align: left; background: transparent; color: #c3d3cd; font-weight: 730; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar-foot { position: absolute; left: 18px; right: 18px; bottom: 22px; }
.sidebar-foot .btn { width: 100%; color: white; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.admin-main { min-width: 0; padding: 32px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font-size: clamp(1.75rem,4vw,2.65rem); letter-spacing: -.05em; }
.admin-subtitle { max-width: 680px; margin: 7px 0 0; color: var(--muted); }
.workspace-toolbar { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px; }
.search-box { width:min(440px,100%);display:flex;align-items:center;gap:10px;min-height:50px;padding:0 15px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 7px 24px rgba(17,38,31,.04); }
.search-box span { color:var(--muted);font-size:1.25rem; }
.search-box input { width:100%;border:0;outline:0;background:transparent;color:var(--ink); }
.poll-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.poll-card { display:flex;flex-direction:column;min-height:310px;padding:22px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 32px rgba(17,38,31,.055);transition:transform .18s,box-shadow .18s,border-color .18s; }
.poll-card:hover { transform:translateY(-2px);border-color:#bdd3c8;box-shadow:0 18px 45px rgba(17,38,31,.09); }
.poll-card-top { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px; }
.poll-card .icon-btn { width:36px;height:36px;font-size:.9rem;letter-spacing:.06em; }
.poll-card h2 { margin:0 0 8px;font-size:1.35rem;letter-spacing:-.035em; }
.poll-card>p { display:-webkit-box;overflow:hidden;min-height:48px;margin:0 0 20px;color:var(--muted);font-size:.93rem;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.state-badge { display:inline-flex;align-items:center;gap:7px;width:max-content;padding:7px 10px;border-radius:999px;font-size:.76rem;font-weight:850; }
.state-badge::before { content:"";width:7px;height:7px;border-radius:50%;background:currentColor; }
.state-activa { background:#e6f7ef;color:#087f5b; }.state-borrador { background:#fff6dc;color:#8b6810; }.state-cerrada { background:#eef1f0;color:#66736e; }
.poll-meta { display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin-top:auto;padding:14px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem; }
.poll-meta span:last-child { text-align:right; }.poll-meta b { color:var(--ink); }
.poll-actions { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px;gap:8px; }
.poll-actions .btn { min-height:44px;padding:0 12px;font-size:.84rem; }.poll-actions .icon-only { padding:0;font-size:1.15rem; }
.poll-empty { grid-column:1/-1; }.poll-empty strong { color:var(--ink);font-size:1.05rem; }
.poll-skeleton { min-height:310px; }
.context-bar { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;margin-bottom:20px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff; }
.context-bar small,.context-bar strong { display:block; }.context-bar small { color:var(--muted);font-size:.75rem; }.context-actions { display:flex;gap:8px; }
.form-actions-between { justify-content:space-between; }
.confirm-dialog { width:min(440px,calc(100% - 28px));text-align:center; }.confirm-dialog p { color:var(--muted); }.confirm-icon { display:grid;place-items:center;width:52px;height:52px;margin:0 auto 16px;border-radius:18px;background:#fff0f1;color:var(--danger);font-size:1.45rem;font-weight:900; }.confirm-dialog .form-actions { justify-content:center; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 8px 28px rgba(17,38,31,.055); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 20px; }
.panel-head h2 { margin-bottom: 4px; font-size: 1.2rem; }
.panel-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.stat span { display: block; color: var(--muted); font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; margin-top: 6px; font-size: 1.7rem; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span-2 { grid-column: 1 / -1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c8d4ce; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }
.list { display: grid; gap: 10px; }
.list-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.list-item img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; background: #e8efeb; }
.list-item strong, .list-item small { display: block; }
.list-item small { color: var(--muted); }
.item-actions { display: flex; gap: 7px; }
.item-actions button { min-height: 38px; padding-inline: 11px; }
.image-preview { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 10px; }
.image-preview figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e9efec; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview button { position: absolute; right: 5px; top: 5px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: rgba(17,38,31,.82); color: white; }
.ranking-item { grid-template-columns: 42px 52px minmax(0,1fr) auto; }
.rank { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #edf5f1; color: var(--green); font-weight: 900; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 30px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .candidate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .deadline-card { width: 100%; }
  .admin-layout { display: block; }
  .sidebar { display: none; }
  .admin-main { padding: 22px 18px 94px; }
  .mobile-nav { position: fixed; z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); left: 12px; right: 12px; bottom: 12px; padding: 7px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
  .mobile-nav button { min-height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; }
  .mobile-nav button.active { background: #e8f4ef; color: var(--green-dark); }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .topbar-inner { min-height: 64px; }
  .topbar .status-pill { display: none; }
  .hero { padding-top: 38px; }
  h1 { font-size: 2.55rem; }
  .candidate-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery { aspect-ratio: 4/3; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .dialog-inner { padding: 22px 18px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .admin-head { align-items: start; flex-direction: column; }
  .admin-head .btn { width: 100%; }
  .panel { padding: 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .stats { gap: 9px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.4rem; }
  .list-item { grid-template-columns: 48px minmax(0,1fr); }
  .list-item img { width: 48px; height: 48px; }
  .item-actions { grid-column: 1/-1; }
  .item-actions .btn { flex: 1; }
  .image-preview { grid-template-columns: repeat(3,1fr); }
  .ranking-item { grid-template-columns: 38px 46px minmax(0,1fr); }
  .ranking-item > strong:last-child { grid-column: 2/-1; }
  .workspace-toolbar { align-items:stretch;flex-direction:column;gap:10px; }.search-box { width:100%; }.poll-grid { grid-template-columns:1fr;gap:13px; }.poll-card { min-height:290px;padding:18px; }.poll-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px; }.poll-actions .btn { font-size:.78rem; }
  .context-bar { grid-template-columns:auto minmax(0,1fr); }.context-actions { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr; }.context-actions .btn { width:100%;font-size:.8rem;padding-inline:10px; }
  .form-actions-between { flex-direction:column; }.top-actions { gap:6px; }.top-actions .btn { min-height:42px;padding-inline:12px;font-size:.82rem; }
}

/* Rediseño profesional v2 */
:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #f4f6fb;
  --card: #ffffff;
  --line: #e3e7ef;
  --green: #635bff;
  --green-dark: #4b43dc;
  --lime: #a7f3d0;
  --danger: #dc3545;
  --shadow: 0 20px 55px rgba(26, 36, 64, .10);
  --radius: 22px;
}
body {
  background:
    radial-gradient(circle at 0 0, rgba(99,91,255,.11), transparent 30rem),
    radial-gradient(circle at 100% 20%, rgba(50,213,131,.08), transparent 26rem),
    var(--paper);
}
.topbar { border-color: rgba(227,231,239,.8); background: rgba(255,255,255,.84); }
.brand-mark { background: linear-gradient(145deg,#635bff,#3932b8); color:#fff; box-shadow:0 8px 20px rgba(99,91,255,.24); }
.btn { border-radius:12px; font-size:.91rem; }
.btn-primary { background:linear-gradient(135deg,#635bff,#5149e5); box-shadow:0 10px 22px rgba(99,91,255,.22); }
.btn-primary:hover:not(:disabled) { background:linear-gradient(135deg,#554de8,#4038cc); }
.btn-soft { background:#efefff; color:#4b43dc; }
.btn-danger { background:#fff0f2; color:#c92f40; }
.eyebrow { color:#5a52e8; }
.hero { position:relative; overflow:hidden; padding:78px 0 42px; }
.hero::after { content:""; position:absolute; z-index:-1; right:-8rem; top:1rem; width:25rem; height:25rem; border-radius:50%; background:linear-gradient(145deg,rgba(99,91,255,.12),rgba(167,243,208,.14)); filter:blur(4px); }
.hero h1 { color:#11182a; }
.deadline-card { position:relative; overflow:hidden; min-width:270px; background:linear-gradient(145deg,#202941,#121827); }
.deadline-card::before { content:""; position:absolute; width:120px; height:120px; right:-45px; top:-55px; border-radius:50%; background:rgba(99,91,255,.5); }
.deadline-card small { color:#a7f3d0; }
.candidate-card { box-shadow:0 12px 35px rgba(31,42,74,.07); transition:transform .22s,box-shadow .22s,border-color .22s; }
.candidate-card:hover { transform:translateY(-4px); border-color:#c9c7ff; box-shadow:0 22px 48px rgba(31,42,74,.12); }
.gallery { background:#e9ecf4; }
.gallery img { object-fit:contain; object-position:center; }
.candidate-body p { color:#6d7588; }
.result-row { background:#f0efff; color:#5149d8; }
.status-dot.live { background:#25c67a; box-shadow:0 0 0 5px rgba(37,198,122,.13); }
.field input,.field textarea,.field select { border-color:#d9deea; border-radius:12px; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:#635bff; box-shadow:0 0 0 4px rgba(99,91,255,.10); }
.toast { display:flex; align-items:center; gap:11px; min-width:min(360px,calc(100% - 28px)); background:#182033; border:1px solid rgba(255,255,255,.1); }
.toast-icon { display:grid; place-items:center; flex:0 0 auto; width:27px; height:27px; border-radius:9px; background:#2cb67d; color:#fff; font-size:.82rem; font-weight:900; }
.toast-icon::before { content:"✓"; }
.toast[data-type="error"] .toast-icon { background:#e04455; }
.toast[data-type="error"] .toast-icon::before { content:"!"; }
.toast[data-type="warning"] .toast-icon { background:#f2a93b; }
.toast[data-type="warning"] .toast-icon::before { content:"!"; }
.toast[data-type="info"] .toast-icon { background:#635bff; }
.toast[data-type="info"] .toast-icon::before { content:"i"; }
.sidebar { background:linear-gradient(180deg,#171e31,#0f1421); }
.sidebar .brand { font-size:1.04rem; }
.nav button { display:flex; align-items:center; gap:11px; color:#b6bfd2; }
.nav button span { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:rgba(255,255,255,.06); color:#909bb3; font-size:.65rem; }
.nav button.active { background:linear-gradient(90deg,rgba(99,91,255,.26),rgba(99,91,255,.08)); box-shadow:inset 3px 0 #837dff; }
.nav button.active span { background:#635bff; color:#fff; }
.admin-main { max-width:1450px; width:100%; margin:0 auto; padding:38px clamp(22px,3vw,48px); }
.admin-head h1 { color:#11182a; }
.quick-guide { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; overflow:hidden; margin-bottom:20px; border:1px solid var(--line); border-radius:18px; background:var(--line); }
.quick-guide>div { display:flex; align-items:center; gap:12px; padding:16px 18px; background:#fff; }
.quick-guide>div>span { display:grid; place-items:center; flex:0 0 auto; width:33px; height:33px; border-radius:10px; background:#efefff; color:#5149dc; font-weight:900; }
.quick-guide p,.quick-guide small { display:block; margin:0; }
.quick-guide strong { font-size:.9rem; }
.quick-guide small { color:var(--muted); font-size:.75rem; }
.poll-card { border-radius:20px; box-shadow:0 10px 30px rgba(31,42,74,.055); }
.poll-card:hover { border-color:#c9c7ff; box-shadow:0 18px 42px rgba(31,42,74,.1); }
.state-activa { background:#e9faf2;color:#148556; }.state-borrador { background:#fff7df;color:#8a6815; }.state-cerrada { background:#eff1f5;color:#677083; }
.context-bar,.panel,.stat,.search-box { box-shadow:0 8px 26px rgba(31,42,74,.045); }
.rank { background:#efefff; color:#554de8; }
.switch input:checked + span { background:#635bff; }
.login-wrap { position:relative; overflow:hidden; background:linear-gradient(135deg,#f7f8fc,#eeeefe); }
.login-wrap::before,.login-wrap::after { content:""; position:absolute; border-radius:50%; filter:blur(2px); }
.login-wrap::before { width:260px;height:260px;left:-100px;top:-100px;background:rgba(99,91,255,.15); }
.login-wrap::after { width:220px;height:220px;right:-80px;bottom:-80px;background:rgba(44,182,125,.12); }
.login-card { position:relative; z-index:1; padding:36px; border-color:#e0e3ed; border-radius:24px; }
.login-card .brand { margin-bottom:34px; }
.login-title { max-width:none; margin:8px 0 10px; font-size:2rem; line-height:1.08; letter-spacing:-.045em; }
.login-copy { margin-bottom:24px; color:var(--muted); font-size:.94rem; }
.confirm-dialog .dialog-inner { padding:32px; }
.confirm-icon { background:#fff0f2; color:#d23548; }

@media (max-width:900px) {
  .admin-main { padding:24px 18px 96px; }
  .mobile-nav button.active { background:#efefff; color:#5149dc; }
}
@media (max-width:620px) {
  .hero { padding:46px 0 28px; }
  h1 { font-size:clamp(2.25rem,12vw,3.15rem); line-height:1.02; }
  .quick-guide { grid-template-columns:1fr; }
  .quick-guide>div { padding:12px 14px; }
  .poll-card { min-height:auto; }
  .poll-actions { grid-template-columns:1fr 1fr; }
  .poll-actions .icon-only { grid-column:1/-1; width:100%; }
  .login-card { padding:28px 22px; }
  .login-title { font-size:1.75rem; }
  .mobile-nav { left:8px; right:8px; bottom:8px; }
  .mobile-nav button { font-size:.69rem; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
