@import url('/css/fonts.css');
/* Celulares (vote, play), presentador (host) y backoffice (admin).
   Estilo tomado de paigo.com.uy: DM Sans, naranja #f9460f sobre fondo claro, botones píldora, tarjetas redondeadas. */
:root {
  --orange: #f9460f;
  --orange-d: #d63a08;
  --orange-l: #fff0eb;
  --blue: #2e51bf;
  --fuchsia: #87006b;
  --yellow: #ffc800;
  --yellow-l: #fcee86;
  --pink: #e9a6c2;
  --sky: #c4ffff;
  --ivory: #f9f9f9;
  --ink: #231f20;
  --grey: #6e6a6b;
  --line: #e3dfe0;
  --good: #168b3f;
  --bad: #dc1d34;
  /* alias para los estilos en línea de host/admin */
  --muted: var(--grey);
  --gold: var(--orange);
  --card: #fff;
  --card2: var(--orange-l);
  --text: var(--ink);
  --bg: var(--ivory);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--orange); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1100px; }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--orange); }
.muted { color: var(--grey); }
.center { text-align: center; }

.card { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 18px; margin-bottom: 14px; }
.card h2, .card h3 { color: var(--ink); }

button, .btn {
  font: inherit; font-weight: 700; color: #fff; background: var(--orange);
  border: 0; border-radius: 100px; padding: 14px 26px; min-height: 48px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .1s ease; touch-action: manipulation;
}
button:hover:not(:disabled), .btn:hover { background: var(--orange-d); }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .35; cursor: not-allowed; }
button.ghost, .btn.ghost { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
button.ghost:hover:not(:disabled), .btn.ghost:hover { background: var(--orange-l); }
button.danger { background: var(--fuchsia); }
button.small, .btn.small { min-height: 36px; padding: 6px 16px; font-size: .9rem; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

input, textarea, select {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line);
  border-radius: 14px; padding: 10px 14px; width: 100%;
}
input:focus, textarea:focus { border-color: var(--orange); }
label { display: block; font-size: .85rem; color: var(--grey); margin: 10px 0 4px; font-weight: 500; }

.pill { display: inline-block; padding: 3px 12px; border-radius: 100px; background: var(--yellow-l); font-size: .8rem; color: var(--ink); font-weight: 600; }
.pill.on { background: var(--good); color: #fff; }
.pill.off { background: var(--bad); color: #fff; }

/* Opciones de votación en celular */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; color: var(--ink); border: 2px solid var(--line);
  border-radius: 24px; padding: 14px 16px; min-height: 62px; font-size: 1.1rem; font-weight: 600;
}
.opt { justify-content: flex-start; }
.opt:hover:not(:disabled) { background: #fff; border-color: var(--orange); }
.opt .l {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 800;
}
.opt.sel { border-color: var(--orange); background: var(--orange-l); box-shadow: 0 0 0 3px rgba(249, 70, 15, .25); }
.opt.dim { opacity: .45; }
.opt:disabled { cursor: default; opacity: 1; }
.opt.dim:disabled { opacity: .45; }

.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); transition: width .4s linear; }

.big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 100px; font-weight: 600; z-index: 9; max-width: 90vw;
}
.offline { position: fixed; top: 0; left: 0; right: 0; background: var(--bad); color: #fff; text-align: center; padding: 6px; font-size: .85rem; z-index: 9; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
