/* Estilos compartidos por las dos pantallas: cámara, etiqueta de modo simulado y selector de idioma.
   Usa los tokens de color definidos en cada página. */
.top select { appearance: none; background: transparent; color: #fff; border: 0; font: inherit; padding: 4px 6px; cursor: pointer; }
.top select option { color: #111; }
.mock-tag { display: inline-flex; align-items: center; gap: 6px; background: #ffc857; color: #3b2a00; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.mock-tag[hidden] { display: none; }

dialog.cam { border: 0; padding: 0; border-radius: 16px; background: #0b1424; color: #fff; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
dialog.cam::backdrop { background: rgba(5, 10, 20, .75); }
.cam-stage { position: relative; background: #000; aspect-ratio: 16 / 10; max-width: 100%; }
.cam-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
dialog.cam.mirror video { transform: scaleX(-1); }
.cam-guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cam-guide i { width: 78%; aspect-ratio: 1.586; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); max-height: 86%; }
dialog.cam.face .cam-guide i { width: auto; height: 78%; aspect-ratio: .78; border-radius: 50%; }
.cam-hint { margin: 0; padding: 12px 16px 0; font-size: 14px; color: #c9d6ea; text-align: center; }
.cam-actions { display: flex; gap: 10px; justify-content: center; padding: 14px 16px 16px; flex-wrap: wrap; }
.cam-actions button { font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 22px; cursor: pointer; }
.cam-cancel { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cam-shot { background: #fff; color: #0f4a9c; border: 1px solid #fff; min-width: 160px; }
.cam-actions button:focus-visible { outline: 2px solid #8dbcff; outline-offset: 2px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
