/* Estilos de Spoter para las páginas de la extensión (popup y alta guiada).
   Mismos colores y tipografía que la app Salidas (spoter-recordatorios-app). */
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('fuentes/public-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('fuentes/public-sans-600.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url('fuentes/public-sans-700.ttf') format('truetype'); }

:root {
  --brand: #2e245a;
  --pink: #e42d7f;
  --pink-oscuro: #ad2565;
  --text: #393346;
  --muted: #766b81;
  --line: #efebf4;
  --sombra: 0 1px 2px #2e245a08, 0 4px 14px #2e245a0a;
  --bg: #f8f8fb;
  --soft: #faf3f8;
  --green: #2d7752;
  --green-bg: #edf5ef;
  --red: #a3263f;
  --red-bg: #fbecef;
  --amber: #805c24;
  --amber-bg: #fbf3e6;
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
/* Los componentes con display propio respetan el atributo hidden. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-oscuro); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border: 1px solid #e8e1ef; border-radius: 12px; background: white; color: var(--brand); font-weight: 600; font-size: 12px; cursor: pointer; }
.btn:hover:not(:disabled) { filter: brightness(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primario { background: var(--brand); border-color: var(--brand); color: white; }
.btn.texto { background: none; border-color: transparent; color: #765080; font-weight: 500; padding: 6px 10px; border-radius: 10px; }
.campo { width: 100%; padding: 9px 12px; border: 1px solid #e8e1ef; border-radius: 12px; background: #fdfcfe; }

.ok { color: var(--green); }
.falta { color: var(--red); }
.nota { color: var(--muted); font-size: 12px; }
.pastilla { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; line-height: 1.4; border-radius: 999px; padding: 2px 10px; }
.pastilla.ok { color: var(--green); background: var(--green-bg); }
.pastilla.falta { color: var(--red); background: var(--red-bg); }
.pastilla.opcional { color: #735380; background: #f3edf8; }

/* Interruptor (checkbox con aspecto de switch). */
.interruptor { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: #d9d0e3; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .15s; box-shadow: 0 1px 2px #2e245a33; }
.interruptor:checked { background: var(--pink); }
.interruptor:checked::after { transform: translateX(16px); }
