/* ==========================================================================
   Uved3 — Interruptor de tema claro/oscuro (público, Golden Gate)
   Segmentado Sistema | Claro | Oscuro en píldora de vidrio. Usa las variables
   --ink/--muted/--hairline/--gold/--primary de la página contenedora con
   respaldos si no existen.
   ========================================================================== */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink, #1d1d1f) 6%, transparent);
    border: .5px solid var(--hairline, rgba(0, 0, 0, .09));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.theme-switch button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: var(--muted, #6e6e73);
    line-height: 1;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.theme-switch button:hover {
    color: var(--ink, #1d1d1f);
    background: color-mix(in srgb, var(--ink, #1d1d1f) 5%, transparent);
}
.theme-switch button[aria-pressed="true"] {
    background: color-mix(in srgb, var(--gold, #b98a4b) 17%, transparent);
    color: var(--gold, #b98a4b);
    box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--gold, #b98a4b) 42%, transparent);
}
.theme-switch button:focus-visible {
    outline: 2px solid var(--primary, #4f46e5);
    outline-offset: 2px;
}
.theme-switch svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-switch svg .fill {
    fill: currentColor;
    stroke: none;
}
@media (prefers-reduced-motion: reduce) {
    .theme-switch button { transition: none; }
}
@media (max-width: 560px) {
    .theme-switch button { width: 28px; height: 28px; }
    .theme-switch svg { width: 14px; height: 14px; }
}
