/* «Modo escritorio» (0253, escritorio.js): MexCloud como el escritorio de una
   computadora. Solo existe en pantallas de más de 768 px. Va por debajo de los
   menús contextuales (z 90) y de los diálogos (modal-fondo, z 70). */

.esc {
    /* El fondo llega hasta abajo, POR DETRÁS de la barra de tareas (que es de
       vidrio y lo deja ver); lo de encima sigue sin pisarla por el padding. */
    position: fixed; inset: 0; padding-bottom: 48px; box-sizing: border-box; z-index: 40;
    display: flex; flex-direction: column;
    background-color: var(--color-bg);
    color: #fff;
    user-select: none;
}

/* ── Fondos de catálogo: solo CSS, nada que descargar ── */
/* El de fábrica: el de la portada de EnlacesPYME (epyme.css, .hero), con su campo animado. */
.esc-fondo-epyme     { background: radial-gradient(1200px 600px at 78% 10%, rgba(3, 100, 255, .22), transparent 60%), linear-gradient(165deg, #0A1533 0%, #070E22 60%, #050B1C 100%); }
.esc-campo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; z-index: 0; }
.esc-fondo-marca     { background: radial-gradient(ellipse at 20% 10%, color-mix(in srgb, var(--color-primary) 85%, white) 0%, var(--color-primary) 35%, color-mix(in srgb, var(--color-primary) 45%, black) 100%); }
.esc-fondo-aurora    { background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c7a7b 75%, #7fd1ae 100%); }
.esc-fondo-oceano    { background: linear-gradient(160deg, #0b3d91 0%, #1565c0 45%, #26a3d9 80%, #a8e6ff 100%); }
.esc-fondo-atardecer { background: linear-gradient(170deg, #2b1055 0%, #7b2f7f 35%, #d4566b 70%, #f9a03f 100%); }
.esc-fondo-bosque    { background: linear-gradient(160deg, #0b2b1a 0%, #1f5133 45%, #3f7d4e 80%, #a3c98a 100%); }
.esc-fondo-grafito   { background: linear-gradient(160deg, #1c1f24 0%, #2f3640 50%, #4b5563 100%); }
.esc-fondo-noche     { background: radial-gradient(ellipse at 70% 20%, #233a6b 0%, #111a33 45%, #05070f 100%); }

/* ── El área de íconos ── */
.esc-area { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden; }
.esc-icono {
    position: absolute; width: 96px; height: 100px; padding: 6px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: transparent; border: 1px solid transparent; border-radius: 8px;
    color: #fff; font: inherit; cursor: default; transition: background 0.12s;
}
.esc-icono:hover { background: rgba(255, 255, 255, 0.12); }
.esc-icono.sel, .esc-icono:focus-visible { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); outline: none; }
.esc-icono-img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.esc-icono-img svg { width: 44px; height: 44px; }
/* Los módulos: un azulejo de color con el ícono en blanco, como una app. */
.esc-modulo {
    background: color-mix(in srgb, var(--color-primary) 88%, white); color: #fff;
    border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.esc-icono-img.esc-modulo svg { width: 28px; height: 28px; }
.esc-icono-txt {
    max-width: 100%; font-size: var(--t-sm); line-height: 1.2; text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}

/* ── La banda de «editando el de la empresa» ── */
.esc-banda {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    padding: 0.55rem 1rem; background: var(--color-warning); color: #1a1a1a; font-size: var(--t-base);
}
.esc-banda-check { display: inline-flex; align-items: center; gap: 0.35rem; }

/* La capa de la barra NO es una fila más de la cuadrícula de la app (con eso
   Archivos quedaba con un hueco enorme arriba, 2026-10-17): solo sus hijos,
   que van fijos. */
.esc-capa-barra { display: contents; }
/* Lo que flota pegado abajo sube lo que mide la barra, o quedaría debajo. */
body.esc-activo .recorrido, body.esc-activo .copia-avance, body.esc-activo .vaciado-banner,
body.esc-activo .correo-apartado, body.esc-activo .version-nueva { margin-bottom: 48px; }

/* ── Barra de tareas: fija abajo, también dentro de los módulos ──
   La app le deja su sitio (`.esc-con-barra`): sin eso taparía la última línea
   de cada módulo. Por debajo de los diálogos (70) y de los menús (90). */
.app.esc-con-barra { height: calc(100vh - 48px); height: calc(100dvh - 48px); }
.esc-barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: 48px; display: flex; align-items: center; gap: 0.4rem; padding: 0 0 0 0.5rem;
    /* El mismo vidrio oscuro de los widgets (Jore, 2026-10-25): deja ver el
       fondo y se lee igual con el tema claro que con el oscuro. Lo de adentro
       toma sus colores de estas variables, redefinidas solo aquí. */
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.66);
    --color-border: rgba(255, 255, 255, 0.16);
    --color-bg: rgba(255, 255, 255, 0.1);
    background: rgba(28, 30, 36, 0.58);
    backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-text);
}
.esc-barra-buscar input::placeholder { color: rgba(255, 255, 255, 0.6); }
.esc-barra .crece { flex: 1; }
.esc-btn-inicio {
    display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.7rem 0 0.45rem;
    border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.esc-btn-inicio svg { width: 26px; height: 26px; }
.esc-btn-inicio:hover, .esc-btn-inicio.activo { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.esc-barra-buscar, .esc-inicio-buscar {
    display: flex; align-items: center; gap: 0.4rem; height: 34px; padding: 0 0.7rem; width: min(22rem, 30vw);
    background: color-mix(in srgb, var(--color-bg) 85%, transparent); border: 1px solid var(--color-border); border-radius: 17px;
}
/* La paleta «Ctrl K» al final del buscador de la barra (sin teclado, un toque la abre). */
.esc-paleta-atajo { flex: none; display: inline-flex; align-items: center; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; opacity: 0.75; }
.esc-paleta-atajo:hover { opacity: 1; }
.esc-paleta-atajo kbd { font: inherit; font-size: var(--t-2xs); padding: 1px 6px; border-radius: 5px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); white-space: nowrap; }
.esc-barra-buscar svg, .esc-inicio-buscar svg { width: 16px; height: 16px; flex: none; opacity: 0.7; }
.esc-barra-buscar input, .esc-inicio-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.esc-barra-btn {
    position: relative; width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.esc-barra-btn:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.esc-barra-btn.activo { background: color-mix(in srgb, var(--color-primary) 22%, transparent); }
.esc-barra-btn svg { width: 22px; height: 22px; }
.esc-barra-btn .nav-badge { position: absolute; top: 2px; right: 0; }
.esc-reloj { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 0 0.5rem; font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.esc-reloj small { font-size: var(--t-xs); color: var(--color-text-muted); }
/* La batería, junto al reloj (barra de Windows y barra de menús de la Mac). */
.esc-bateria { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0 0.35rem; font-size: var(--t-sm); font-variant-numeric: tabular-nums; cursor: default; }
.esc-bateria-ic { line-height: 0; display: inline-flex; }
.mac-bateria { display: inline-flex; align-items: center; gap: 0.3rem; cursor: default; font-variant-numeric: tabular-nums; }
.mac-bateria .esc-bateria-ic svg { width: 20px; height: 20px; }
.esc-barra-quien {
    max-width: 12rem; height: 38px; padding: 0 0.6rem; border: 0; border-radius: 8px; background: transparent;
    color: inherit; font: inherit; font-size: var(--t-md); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.esc-barra-quien:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }

/* ── Menú Inicio ── */
.esc-inicio {
    position: fixed; left: 8px; bottom: 56px; z-index: 61; width: min(34rem, calc(100vw - 16px)); max-height: calc(100vh - 80px);
    display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem;
    background: color-mix(in srgb, var(--color-surface) 94%, transparent);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: var(--color-text);
}
.esc-inicio-buscar { width: 100%; box-sizing: border-box; }
.esc-inicio-mods, .esc-dlg-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.3rem; overflow-y: auto; }
.esc-inicio-mod {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.6rem 0.3rem;
    border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: var(--t-sm); cursor: pointer; text-align: center;
}
.esc-inicio-mod:hover, .esc-inicio-mod:focus-visible { background: color-mix(in srgb, var(--color-text) 9%, transparent); outline: none; }
.esc-inicio-mod .esc-modulo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.esc-inicio-mod .esc-modulo svg { width: 22px; height: 22px; }
.esc-inicio-pie { display: flex; align-items: center; gap: 0.3rem; padding-top: 0.7rem; border-top: 1px solid var(--color-border); }
.esc-inicio-quien {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.5rem; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.esc-inicio-quien > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.esc-inicio-quien:hover { background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.esc-inicio-flecha svg { width: 14px; height: 14px; opacity: .7; }
.esc-inicio-cuentas { display: flex; flex-direction: column; gap: 2px; padding: 0.4rem 0; border-top: 1px solid var(--color-border); }
.esc-inicio-cuenta {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.esc-inicio-cuenta:hover, .esc-inicio-cuenta.activo { background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.esc-inicio-cuenta svg { width: 18px; height: 18px; flex: none; }

/* ── Diálogos ── */
.esc .modal { color: var(--color-text); user-select: text; }
.esc-dlg-mods { margin: 0.6rem 0; max-height: 50vh; }
.esc-fondos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.esc-fondo-muestra {
    height: 4.2rem; border: 2px solid transparent; border-radius: 8px; cursor: pointer;
    display: flex; align-items: flex-end; padding: 0.3rem 0.4rem; color: #fff; font: inherit; font-size: var(--t-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.esc-fondo-muestra:hover, .esc-fondo-muestra:focus-visible { border-color: var(--color-primary); outline: none; }

/* ── Lo abierto: un botón por módulo, con su rayita como en Windows ── */
.esc-abiertos { display: flex; align-items: center; gap: 0.15rem; margin-left: 0.3rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.esc-abierto {
    position: relative; width: 42px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.esc-abierto svg { width: 22px; height: 22px; }
.esc-abierto::after {
    content: ''; position: absolute; bottom: 3px; left: 50%; width: 6px; height: 3px; margin-left: -3px;
    border-radius: 2px; background: var(--color-text-muted); transition: width 0.15s, margin-left 0.15s;
}
.esc-abierto:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.esc-abierto.activo { background: color-mix(in srgb, var(--color-text) 12%, transparent); }
.esc-abierto.activo::after { width: 16px; margin-left: -8px; background: var(--color-primary); }
/* Fijado y sin ventana: sin rayita. Con varias ventanas, rayita doble (2026-10-23). */
.esc-abierto:not(.con-ventanas)::after { display: none; }
.esc-abierto.varias::after { width: 6px; margin-left: -8px; box-shadow: 10px 0 0 0 var(--color-text-muted); }
.esc-abierto.varias.activo::after { width: 6px; margin-left: -8px; box-shadow: 10px 0 0 0 var(--color-primary); }
.esc-abierto[draggable="true"] { cursor: pointer; }
/* MasAdmin «cerrado»: sigue cargado y oculto (conserva su sesión). Un puntito
   en vez de la rayita, y el ícono más tenue. */
.esc-abierto.oculta svg, .esc-abierto.oculta img { opacity: 0.6; }
.esc-abierto.oculta::after { width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; box-shadow: none; opacity: 0.8; }

/* «Mostrar el escritorio»: la rayita de la esquina. */
.esc-mostrar { width: 8px; height: 100%; margin-left: 0.3rem; border: 0; border-left: 1px solid var(--color-border); background: transparent; cursor: pointer; }
.esc-mostrar:hover { background: color-mix(in srgb, var(--color-text) 12%, transparent); }

/* ── El botón del clima y el panel de noticias (los widgets de Windows 11) ── */
.esc-barra-clima {
    display: inline-flex; align-items: center; gap: 0.4rem; height: 40px; padding: 0 0.6rem 0 0.4rem;
    border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left;
}
.esc-barra-clima:hover, .esc-barra-clima.activo { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.esc-clima-emoji { font-size: var(--t-2xl); line-height: 1; }
.esc-clima-txt { display: flex; flex-direction: column; line-height: 1.1; font-size: var(--t-md); }
.esc-clima-txt small { font-size: var(--t-xs); color: var(--color-text-muted); max-width: 8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-panel {
    position: fixed; left: 8px; bottom: 56px; z-index: 61; width: min(30rem, calc(100vw - 16px)); max-height: calc(100vh - 72px);
    display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem;
    background: color-mix(in srgb, var(--color-surface) 95%, transparent);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); color: var(--color-text);
}
.esc-clima { padding-bottom: 0.7rem; border-bottom: 1px solid var(--color-border); }
.esc-clima-ahora { display: flex; align-items: center; gap: 0.8rem; }
.esc-clima-grande { font-size: var(--t-5xl); line-height: 1; }
.esc-clima-temp { font-size: var(--t-3xl); font-weight: 700; line-height: 1.1; }
.esc-clima-ciudad { width: auto; max-width: 11rem; font-size: var(--t-md); }
.esc-clima-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-top: 0.7rem; text-align: center; }
.esc-clima-dia { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; font-size: var(--t-md); text-transform: capitalize; }
.esc-clima-dia span:first-of-type { font-size: var(--t-2xl); }
.esc-credito { display: block; margin-top: 0.4rem; font-size: var(--t-2xs); }
.esc-noticias-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.esc-noticias-tabs button {
    padding: 0.3rem 0.7rem; border: 1px solid var(--color-border); border-radius: 999px; background: transparent;
    color: inherit; font: inherit; font-size: var(--t-sm); cursor: pointer;
}
.esc-noticias-tabs button.activo { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-fg); }
.esc-noticias { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 0.2rem; }
.esc-noticia {
    display: flex; gap: 0.7rem; padding: 0.5rem; border-radius: 8px; color: inherit; text-decoration: none; align-items: flex-start;
}
.esc-noticia:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.esc-noticia img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: var(--color-surface-2); }
.esc-noticia-txt { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.esc-noticia-txt strong { font-size: var(--t-base); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.esc-noticia-txt small { font-size: var(--t-xs); }

/* ── Las ventanas ──
   En una capa propia (z 50) que deja libre la barra: así una ventana nunca la
   tapa, y el menú Inicio y el panel de noticias (61) quedan siempre encima. */
.esc-ventanas { position: fixed; inset: 0 0 48px 0; z-index: 50; pointer-events: none; }
.esc-ventana {
    position: absolute; display: flex; flex-direction: column; pointer-events: auto;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}
/* Cada ventana, su propia capa aislada: lo de una (su contenido, sus bordes para
   cambiar el tamaño) no puede pintarse encima de otra aunque el navegador tarde
   en reacomodar el orden, y lo que cambia dentro de ella no obliga a repintar las
   demás (contain). En Safari, sin esto, un marco de abajo a veces se asomaba. */
.esc-ventana { isolation: isolate; contain: layout paint; }
/* ── Transparencia de las ventanas, como KDE Plasma (2026-10-25) ──
   La ventana deja pasar el escritorio DESENFOCADO (su backdrop-filter) y su
   barra de título es de vidrio; las de atrás además dejan ver a través de su
   contenido. La del frente (.arriba) se lee sólida. Mientras se arrastra, sin
   desenfoque, para que se mueva fluida. */
body.esc-trans-suave .esc-ventana, body.esc-trans-fuerte .esc-ventana {
    background: transparent; border-color: color-mix(in srgb, var(--color-border) 60%, transparent);
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
body.esc-trans-suave .esc-ventana .esc-ventana-titulo, body.esc-trans-fuerte .esc-ventana .esc-ventana-titulo {
    background: color-mix(in srgb, var(--color-surface) 58%, transparent);
    border-bottom-color: color-mix(in srgb, var(--color-border) 50%, transparent);
}
body.esc-trans-fuerte .esc-ventana .esc-ventana-titulo { background: color-mix(in srgb, var(--color-surface) 40%, transparent); }
/* Sobre el vidrio, el título de las de atrás en gris claro se perdía: más contraste. */
body.esc-trans-suave .esc-ventana .esc-ventana-titulo, body.esc-trans-fuerte .esc-ventana .esc-ventana-titulo { color: color-mix(in srgb, var(--color-text) 80%, transparent); }
body.esc-trans-suave .esc-ventana.arriba .esc-ventana-titulo, body.esc-trans-fuerte .esc-ventana.arriba .esc-ventana-titulo { color: var(--color-text); }
body.esc-trans-suave .esc-ventana:not(.arriba) iframe { opacity: 0.86; }
body.esc-trans-fuerte .esc-ventana:not(.arriba) iframe { opacity: 0.68; }
body.esc-trans-suave .esc-ventana iframe, body.esc-trans-fuerte .esc-ventana iframe { transition: opacity 0.15s; }
body.esc-trans-suave .esc-ventana.moviendo, body.esc-trans-fuerte .esc-ventana.moviendo { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* El menú Inicio, del mismo vidrio que los títulos (Jore, 2026-10-25); un poco más
   de desenfoque, porque lleva mucho texto encima. */
body.esc-trans-suave .esc-inicio, body.esc-trans-fuerte .esc-inicio {
    backdrop-filter: blur(32px) saturate(160%); -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-color: color-mix(in srgb, var(--color-border) 60%, transparent);
}
body.esc-trans-suave .esc-inicio { background: color-mix(in srgb, var(--color-surface) 62%, transparent); }
body.esc-trans-fuerte .esc-inicio { background: color-mix(in srgb, var(--color-surface) 46%, transparent); }
/* Tableta (iPad): transparencia sí, desenfoque no (Safari lo pinta mal y pesa). */
@media (pointer: coarse) {
    body.esc-trans-suave .esc-ventana, body.esc-trans-fuerte .esc-ventana { backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.esc-trans-suave .esc-ventana .esc-ventana-titulo, body.esc-trans-fuerte .esc-ventana .esc-ventana-titulo { background: color-mix(in srgb, var(--color-surface) 82%, transparent); }
}
.esc-ventana.arriba { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.esc-ventana-espera {
    position: absolute; inset: 36px 0 0 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    background: var(--color-bg); pointer-events: none;
}
.esc-ventana-espera-ic {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--color-text-muted);
    animation: esc-espera 1.2s ease-in-out infinite;
}
.esc-ventana-espera-ic svg { width: 34px; height: 34px; }
.esc-ventana-espera-ic img { width: 44px; height: 44px; }
@keyframes esc-espera { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .esc-ventana-espera-ic { animation: none; } }
body.esc-mac .esc-ventana-espera { top: 32px; }
.esc-ventana.max { border-radius: 0; border-width: 0; }
/* Mientras se arrastra, ningún marco se traga el ratón (si no, se «atora»). */
.esc-ventana.moviendo iframe { pointer-events: none; }
.esc-ventana-titulo {
    display: flex; align-items: center; gap: 0.3rem; height: 36px; flex: none; padding: 0 0.3rem 0 0.7rem;
    background: color-mix(in srgb, var(--color-surface-2) 80%, var(--color-surface)); border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted); cursor: move; user-select: none; touch-action: none;
}
.esc-ventana.arriba .esc-ventana-titulo { color: var(--color-text); }
.esc-ventana.max .esc-ventana-titulo { cursor: default; }
.esc-ventana-ic svg { width: 16px; height: 16px; display: block; }
.esc-ventana-txt { flex: 1; min-width: 0; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-ventana-titulo button {
    width: 34px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: none;
    border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: var(--t-lg); cursor: pointer;
}
.esc-ventana-titulo button svg { width: 15px; height: 15px; }
.esc-ventana-titulo button:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.esc-ventana-titulo .esc-ventana-x:hover { background: var(--color-danger); color: #fff; }
.esc-ventana iframe { flex: 1; width: 100%; border: 0; background: var(--color-bg); }
.esc-ventana-tam {
    position: absolute; right: 0; bottom: 0; z-index: 2; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
    background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--color-text) 35%, transparent) 50%, transparent 62%, color-mix(in srgb, var(--color-text) 35%, transparent) 62%, transparent 74%);
}
/* Cambiar el tamaño desde cualquier borde o esquina, como en Windows: franjas
   delgadas por DENTRO (la ventana recorta lo que sale, overflow: hidden). La de
   de arriba y sus esquinas miden 4-6 px: no tapan los botones de la barra de título. */
.esc-bordes { display: contents; }
.esc-borde { position: absolute; z-index: 2; touch-action: none; }
.esc-borde-n { top: 0; left: 6px; right: 6px; height: 4px; cursor: ns-resize; }
.esc-borde-s { bottom: 0; left: 14px; right: 18px; height: 6px; cursor: ns-resize; }
.esc-borde-e { right: 0; top: 6px; bottom: 18px; width: 6px; cursor: ew-resize; }
.esc-borde-o { left: 0; top: 6px; bottom: 14px; width: 6px; cursor: ew-resize; }
.esc-borde-ne { top: 0; right: 0; width: 6px; height: 6px; cursor: nesw-resize; }
.esc-borde-no { top: 0; left: 0; width: 6px; height: 6px; cursor: nwse-resize; }
.esc-borde-so { bottom: 0; left: 0; width: 14px; height: 14px; cursor: nesw-resize; }

/* ── DENTRO de una ventana (la app en «modo ventana»): solo su módulo ──
   Fuera las pestañas y los accesos a los demás módulos (esos se abren en su
   propia ventana); se queda el buscador de la cabecera, que usan Archivos y
   Contactos. */
html.en-ventana .navbar .hamburguesa, html.en-ventana .navbar .marca-inicio, html.en-ventana .navbar .nav-seccion,
html.en-ventana .navbar .nav-tabs, html.en-ventana .navbar .nav-usuario, html.en-ventana .tabbar-movil,
html.en-ventana .version-nueva { display: none !important; }

/* ── Juegos de íconos y azulejos ── */
.esc-modulo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.esc-icono-img.esc-modulo img { width: 34px; height: 34px; }
/* Sin azulejo: el ícono solo, más grande (lo natural en 3D). */
.esc-modulo.esc-sin-azulejo { background: transparent !important; box-shadow: none; color: #fff; }
.esc-icono-img.esc-sin-azulejo img, .esc-icono-img.esc-sin-azulejo svg { width: 48px; height: 48px; }
.esc-inicio-mod .esc-sin-azulejo { color: var(--color-primary); }
.esc-inicio-mod .esc-sin-azulejo img, .esc-inicio-mod .esc-sin-azulejo svg { width: 36px; height: 36px; }
.esc-inicio-mod .esc-modulo:not(.esc-sin-azulejo) img { width: 26px; height: 26px; }
.esc-abierto img, .esc-ventana-ic img { width: 22px; height: 22px; display: block; }
.esc-ventana-ic img { width: 16px; height: 16px; }
.esc-juegos { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.esc-juego {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.8rem 0.5rem;
    border: 2px solid var(--color-border); border-radius: 10px; background: var(--color-surface-2); color: inherit; font: inherit; cursor: pointer;
}
.esc-juego.activo { border-color: var(--color-primary); }
.esc-juego-muestra { display: flex; gap: 0.35rem; }
.esc-juego-muestra > span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; }
.esc-juego-muestra > span svg { width: 20px; height: 20px; }
.esc-juego-muestra > span img { width: 22px; height: 22px; }
.esc-juego-muestra > .esc-sin-azulejo { color: var(--color-primary); }
.esc-juego-muestra > .esc-sin-azulejo img, .esc-juego-muestra > .esc-sin-azulejo svg { width: 32px; height: 32px; }
.esc-sub { font-size: var(--t-lg); margin: 1rem 0 0.4rem; }
.esc-azulejos { display: flex; flex-direction: column; gap: 0.35rem; }
.esc-azulejo-op { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* ── Los comunicados en el escritorio, como las notificaciones de Windows ── */
.esc-comunicados {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: min(26rem, 42vw); max-height: calc(100% - 24px);
    overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; color: var(--color-text); user-select: text;
}
.esc-comunicados .comunicado { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.esc-comunicados .comunicado-meta { display: block; margin: 0.15rem 0 0.3rem; }
.esc-comunicados-pie {
    gap: 0.6rem; font-size: var(--t-md); align-self: flex-end; padding: 0.25rem 0.6rem; border-radius: 999px;
    background: color-mix(in srgb, var(--color-surface) 85%, transparent);
}

/* ══ Estilo MAC (Jore, 2026-10-17: «emular el escritorio de una Mac, lo más
   parecido posible») ══
   Barra de menús arriba (28 px), Dock flotando abajo, «Aplicaciones» (el
   Launchpad) y el buscador al centro (Spotlight). Las ventanas pasan por
   detrás del Dock, como en la Mac; la maximizada se detiene donde empieza.
   Ni íconos ni letra de Apple: en una Mac se ve con la del sistema. */
.esc-estilo, .esc-ventana-win { display: contents; }
body.esc-mac .esc, body.esc-mac .esc-ventanas { inset: 28px 0 0 0; }
body.esc-mac .esc { padding-bottom: 0; }
body.esc-mac .recorrido, body.esc-mac .copia-avance, body.esc-mac .vaciado-banner,
body.esc-mac .correo-apartado, body.esc-mac .version-nueva { margin-bottom: 84px; }
body.esc-mac .esc-capa-barra, body.esc-mac .esc-ventana-titulo, body.esc-mac .esc-icono {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Inter, sans-serif;
}

/* ── La barra de menús ── */
.mac-barra {
    position: fixed; top: 0; left: 0; right: 0; z-index: 62; height: 28px;
    display: flex; align-items: center; gap: 2px; padding: 0 8px;
    background: color-mix(in srgb, var(--color-surface) 72%, transparent);
    backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
    color: var(--color-text); font-size: 13px; user-select: none;
}
.mac-barra .crece { flex: 1; }
.mac-menu-item { position: relative; }
.mac-menu-btn {
    height: 22px; display: inline-flex; align-items: center; gap: 4px; padding: 0 9px;
    border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; cursor: default; white-space: nowrap;
}
.mac-menu-btn:hover, .mac-menu-btn.activo { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.mac-logo svg, .mac-logo img { width: 18px; height: 18px; display: block; }
.mac-icono svg { width: 15px; height: 15px; display: block; }
.mac-app { padding: 0 9px; font-weight: 700; white-space: nowrap; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }
.mac-num { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mac-reloj { font-variant-numeric: tabular-nums; }
.mac-menu {
    position: absolute; top: 25px; left: 0; z-index: 1; min-width: 15rem; max-width: 26rem;
    display: flex; flex-direction: column; padding: 5px;
    background: color-mix(in srgb, var(--color-surface) 93%, transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent); border-radius: 9px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.mac-menu button {
    display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border: 0; border-radius: 5px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mac-menu button:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.mac-menu button:disabled { opacity: 0.4; }
.mac-check { width: 1.1rem; flex: none; text-align: center; }
.mac-menu-sep { height: 1px; margin: 5px 8px; background: var(--color-border); }

/* ── El Dock ── */
/* La esquina activa (abajo a la derecha): invisible, encima de todo lo del
   escritorio para que también funcione con una ventana maximizada. */
.mac-esquina { position: fixed; right: 0; bottom: 0; width: 6px; height: 6px; z-index: 65; }
.mac-dock-zona { position: fixed; left: 0; right: 0; bottom: 6px; z-index: 61; display: flex; justify-content: center; pointer-events: none; }
.mac-dock {
    pointer-events: auto; display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px 7px; max-width: calc(100vw - 24px);
    background: color-mix(in srgb, var(--color-surface) 38%, transparent);
    backdrop-filter: blur(26px) saturate(1.7); -webkit-backdrop-filter: blur(26px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 22px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.mac-dock-item {
    position: relative; width: 56px; height: 56px; flex: none; padding: 0; border: 0; background: transparent; cursor: default;
    transform-origin: 50% 100%; transition: transform 0.16s ease-out;
}
/* El aumento al pasar el ratón: el de encima crece más, sus vecinos un poco. */
.mac-dock-item:hover { transform: scale(1.38) translateY(-6px); z-index: 1; }
.mac-dock-item:hover + .mac-dock-item, .mac-dock-item:has(+ .mac-dock-item:hover) { transform: scale(1.16) translateY(-2px); }
.mac-dock-item:active .mac-dock-ic { filter: brightness(0.8); }
.mac-dock-ic {
    width: 52px; height: 52px; margin: 2px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.mac-dock-ic svg { width: 30px; height: 30px; }
.mac-dock-ic img { width: 36px; height: 36px; }
.mac-dock-ic.esc-sin-azulejo { box-shadow: none; }
.mac-dock-ic.esc-sin-azulejo img, .mac-dock-ic.esc-sin-azulejo svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
/* El puntito de lo abierto. */
.mac-dock-item.abierta::after {
    content: ''; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: color-mix(in srgb, var(--color-text) 75%, transparent);
}
.mac-dock-item.minimizada .mac-dock-ic { opacity: 0.75; }
.mac-dock-item.oculta .mac-dock-ic { opacity: 0.6; }
/* Reordenando: el ícono sobre el que se va a soltar se aparta un poco. */
.mac-dock-item.dock-sobre .mac-dock-ic { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.mac-dock-item.oculta::after { opacity: 0.5; }
.mac-dock-nombre {
    position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) scale(0.73); transform-origin: 50% 100%;
    padding: 3px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.1s;
    background: color-mix(in srgb, var(--color-surface) 88%, transparent); color: var(--color-text);
    border: 1px solid var(--color-border); font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.mac-dock-item:hover .mac-dock-nombre { opacity: 1; }
.mac-dock-num {
    position: absolute; top: -2px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.mac-dock-sep { width: 1px; height: 46px; margin: 0 5px 5px; flex: none; background: color-mix(in srgb, var(--color-text) 28%, transparent); }
/* El ícono de «Aplicaciones»: la cuadrícula de nueve. */
.mac-apps-ic { background: linear-gradient(160deg, #4b5563, #1f2937); display: grid; grid-template-columns: repeat(3, 9px); gap: 4px; align-content: center; justify-content: center; }
.mac-apps-ic i { width: 9px; height: 9px; border-radius: 3px; background: #fff; opacity: 0.9; }
.mac-apps-ic i:nth-child(1) { background: #ff6b6b; } .mac-apps-ic i:nth-child(2) { background: #ffd43b; } .mac-apps-ic i:nth-child(3) { background: #51cf66; }
.mac-apps-ic i:nth-child(4) { background: #4dabf7; } .mac-apps-ic i:nth-child(5) { background: #cc5de8; } .mac-apps-ic i:nth-child(6) { background: #ff922b; }
.mac-apps-ic i:nth-child(7) { background: #20c997; } .mac-apps-ic i:nth-child(8) { background: #f06595; } .mac-apps-ic i:nth-child(9) { background: #94d82d; }

/* ── «Aplicaciones» (el Launchpad) ── */
.mac-apps {
    position: fixed; inset: 0; z-index: 64; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; padding: 3.5rem 2rem 7rem;
    background: rgba(10, 14, 24, 0.38); backdrop-filter: blur(34px) saturate(1.3); -webkit-backdrop-filter: blur(34px) saturate(1.3);
    overflow-y: auto; color: #fff;
}
.esc-apps-buscar {
    display: flex; align-items: center; gap: 0.4rem; height: 30px; width: min(16rem, 80vw); padding: 0 0.6rem;
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px;
}
.esc-apps-buscar svg { width: 15px; height: 15px; opacity: 0.8; }
.esc-apps-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; outline: none; }
.esc-apps-buscar input::placeholder { color: rgba(255, 255, 255, 0.7); }
.mac-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, 9rem); justify-content: center; gap: 2.2rem 1rem; width: min(70rem, 100%); }
.mac-app-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.4rem; border: 0; border-radius: 14px;
    background: transparent; color: #fff; font: inherit; font-size: var(--t-md); cursor: default; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.mac-app-item:active .mac-app-ic { filter: brightness(0.8); }
.mac-app-item:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); }
.mac-app-ic {
    width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 19px; color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.mac-app-ic svg { width: 46px; height: 46px; }
.mac-app-ic img { width: 58px; height: 58px; }
.mac-app-ic.esc-sin-azulejo { box-shadow: none; }
.mac-app-ic.esc-sin-azulejo img, .mac-app-ic.esc-sin-azulejo svg { width: 84px; height: 84px; }

/* ── El selector de ventanas (Alt+Q), como ⌘+Tab ── */
.esc-cambio-fondo { position: fixed; inset: 0; z-index: 66; display: flex; align-items: center; justify-content: center; padding: 16px; }
.esc-cambio {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: min(64rem, 100%); padding: 0.9rem;
    /* Sin backdrop-filter: en Safari (iPad) la tarjeta esmerilada salía VACÍA. */
    background: color-mix(in srgb, var(--color-surface) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent); border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); color: var(--color-text);
}
.esc-cambio-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 7.4rem; padding: 0.7rem 0.4rem 0.55rem;
    border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.esc-cambio-item.activo { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.esc-cambio-item.minimizada .esc-cambio-ic { opacity: 0.5; }
.esc-cambio-ic { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 18px; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.esc-cambio-ic svg { width: 40px; height: 40px; }
.esc-cambio-ic img { width: 52px; height: 52px; }
.esc-cambio-ic.esc-sin-azulejo { box-shadow: none; }
.esc-cambio-ic.esc-sin-azulejo img, .esc-cambio-ic.esc-sin-azulejo svg { width: 76px; height: 76px; }
.esc-cambio-suelta { background: var(--color-surface-2, var(--color-surface)); color: var(--color-text-2); }
.esc-cambio-nombre { font-size: var(--t-md); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-cambio-item.activo .esc-cambio-nombre { font-weight: 600; }
/* En el estilo Windows, esquinas más cuadradas. */
body:not(.esc-mac) .esc-cambio { border-radius: 10px; }
body:not(.esc-mac) .esc-cambio-item { border-radius: 6px; }

/* ── El buscador al centro (Spotlight) ── */
.mac-spot-fondo { position: fixed; inset: 0; z-index: 64; }
.esc-spot {
    position: absolute; top: 22vh; left: 50%; transform: translateX(-50%); width: min(42rem, calc(100vw - 32px));
    background: color-mix(in srgb, var(--color-surface) 84%, transparent);
    backdrop-filter: blur(34px) saturate(1.6); -webkit-backdrop-filter: blur(34px) saturate(1.6);
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent); border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); color: var(--color-text); overflow: hidden;
}
.esc-spot-caja { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; }
.esc-spot-caja svg { width: 22px; height: 22px; opacity: 0.6; flex: none; }
.esc-spot-caja input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--t-2xl); outline: none; }
.esc-spot-lista { display: flex; flex-direction: column; padding: 0.35rem; border-top: 1px solid var(--color-border); }
.esc-spot-res {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0.6rem; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: default;
}
.esc-spot-res.activo { background: var(--color-primary); color: #fff; }
.esc-spot-ic { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: #fff; }
.esc-spot-ic svg { width: 17px; height: 17px; }
.esc-spot-ic img { width: 20px; height: 20px; }
.esc-spot-ic.esc-sin-azulejo img, .esc-spot-ic.esc-sin-azulejo svg { width: 28px; height: 28px; }
.esc-spot-lupa { color: inherit; }

/* ── Las ventanas, como en la Mac: semáforo a la izquierda, título al centro ── */
body.esc-mac .esc-ventana { border-radius: 12px; border-color: color-mix(in srgb, var(--color-border) 80%, transparent); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32); }
body.esc-mac .esc-ventana.arriba { box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48); }
body.esc-mac .esc-ventana.max { border-radius: 0; }
body.esc-mac .esc-ventana-titulo { height: 32px; padding: 0 6px 0 12px; background: var(--color-surface); gap: 0.4rem; cursor: default; }
body.esc-mac .esc-ventana-ic { display: none; }
body.esc-mac .esc-ventana-txt { text-align: center; font-weight: 600; font-size: 13px; padding-right: 44px; }
.mac-semaforo { display: inline-flex; gap: 8px; flex: none; margin-right: 6px; }
.esc-ventana-titulo .mac-semaforo button {
    position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.22); cursor: default;
}
.esc-ventana-titulo .mac-semaforo .mac-rojo { background: #ff5f57; }
.esc-ventana-titulo .mac-semaforo .mac-amarillo { background: #febc2e; }
.esc-ventana-titulo .mac-semaforo .mac-verde { background: #28c840; }
/* La ventana de atrás lleva el semáforo gris, como en la Mac. */
.esc-ventana:not(.arriba) .mac-semaforo:not(:hover) button { background: color-mix(in srgb, var(--color-text) 22%, transparent); }
.mac-semaforo button::before {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font: 700 9px/1 -apple-system, "Segoe UI", sans-serif; color: rgba(0, 0, 0, 0.6); opacity: 0;
}
.mac-semaforo .mac-rojo::before { content: '×'; font-size: 11px; }
.mac-semaforo .mac-amarillo::before { content: '–'; }
.mac-semaforo .mac-verde::before { content: '+'; font-size: 11px; }
.mac-semaforo:hover button::before { opacity: 1; }

/* Lo demás en su lugar de la Mac: noticias y clima a la derecha (el centro de
   notificaciones), los comunicados a la izquierda (los íconos van a la derecha). */
body.esc-mac .esc-panel { left: auto; right: 8px; top: 34px; bottom: auto; max-height: calc(100vh - 34px - 96px); }
body.esc-mac .esc-comunicados { right: auto; left: 12px; }
body.esc-mac .ctx-menu {
    background: color-mix(in srgb, var(--color-surface) 84%, transparent);
    backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-radius: 9px;
}

/* ── Elegir el estilo (diálogo de íconos) ── */
.esc-estilos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.esc-estilo-op {
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.7rem 0.5rem;
    border: 2px solid var(--color-border); border-radius: 10px; background: var(--color-surface-2); color: inherit; font: inherit; cursor: pointer;
}
.esc-estilo-op.activo { border-color: var(--color-primary); }
.esc-estilo-muestra {
    position: relative; width: 130px; height: 74px; border-radius: 7px; overflow: hidden;
    background: linear-gradient(160deg, #0b3d91 0%, #1565c0 50%, #26a3d9 100%);
}
.esc-estilo-muestra i, .esc-estilo-muestra b { position: absolute; display: block; background: rgba(255, 255, 255, 0.75); }
.esc-muestra-windows i { display: none; }
.esc-muestra-windows b { left: 0; right: 0; bottom: 0; height: 11px; }
.esc-muestra-mac i { left: 0; right: 0; top: 0; height: 6px; }
.esc-muestra-mac b { left: 30%; right: 30%; bottom: 5px; height: 11px; border-radius: 4px; }

/* ── El juego de íconos «Mac»: cuadro de esquinas suaves con degradado (el de las
   apps desde Big Sur) y el dibujo encima. Ocupa la caja que le den. ── */
.ic-mac {
    position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    border-radius: 23%; background: linear-gradient(180deg, var(--a) 0%, var(--b) 100%); color: var(--f);
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 3px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
/* El brillo de arriba, como el vidrio de los íconos de la Mac. */
.ic-mac::before { content: ''; position: absolute; inset: 0 0 52% 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)); pointer-events: none; }
.ic-mac svg { position: relative; width: 58% !important; height: 58% !important; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.22)); }
/* Donde el ícono va suelto (sin caja propia): la barra de tareas y el título de la ventana. */
.esc-abierto .ic-mac { width: 26px; height: 26px; }
.esc-ventana-ic .ic-mac { width: 16px; height: 16px; }
.esc-sin-azulejo .ic-mac { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }

/* Las fotos de la carpeta «Escritorio», en miniatura. */
.esc-icono-img .esc-logo { width: 48px; height: 48px; border-radius: 11px; }
.esc-icono-img .esc-mini { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }

/* ── «Configuración del escritorio»: pestañas y muestras de cada tema ── */
.esc-config-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 0.2rem 0 0.8rem; border-bottom: 1px solid var(--color-border); }
.esc-config-tabs button {
    padding: 0.45rem 0.8rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    background: transparent; color: var(--color-text-muted); font: inherit; font-weight: 600; cursor: pointer;
}
.esc-config-tabs button.activo { color: var(--color-primary); border-bottom-color: var(--color-primary); }
/* Pestaña «Dispositivos» (0257) */
.esc-disp-pista { font-size: var(--t-md); margin: 0.2rem 0 0.6rem; }
.esc-disp-nombre { display: flex; gap: 0.5rem; align-items: center; }
.esc-disp-nombre .input { flex: 1; min-width: 0; }
.esc-disp-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; max-height: 16rem; overflow-y: auto; }
.esc-disp-item { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; padding: 0.45rem 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-md, 8px); }
.esc-disp-datos { flex: 1; min-width: 10rem; display: flex; flex-direction: column; }
.esc-disp .fila-fin { margin-top: 0.8rem; }
.esc-temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr)); gap: 0.5rem; }
.esc-tema-op {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.5rem 0.3rem;
    border: 2px solid var(--color-border); border-radius: 10px; background: var(--color-surface-2); color: inherit; font: inherit; font-size: var(--t-sm); cursor: pointer;
}
.esc-tema-op.activo { border-color: var(--color-primary); }
.esc-tema-muestra { position: relative; width: 84px; height: 52px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.15); background: var(--m-bg); }
.esc-tema-muestra i { position: absolute; left: 8px; right: 8px; top: 8px; height: 22px; border-radius: 4px; background: var(--m-sup); }
.esc-tema-muestra b { position: absolute; left: 8px; bottom: 7px; width: 34px; height: 9px; border-radius: 3px; background: var(--m-pri); }
[data-muestra="sistema"]   { --m-bg: linear-gradient(135deg, #f5f7fa 50%, #0f172a 50%); --m-sup: linear-gradient(135deg, #fff 50%, #1e293b 50%); --m-pri: #2563eb; }
[data-muestra="claro"]     { --m-bg: #f5f7fa; --m-sup: #ffffff; --m-pri: #2563eb; }
[data-muestra="oscuro"]    { --m-bg: #0f172a; --m-sup: #1e293b; --m-pri: #3b82f6; }
[data-muestra="contraste"] { --m-bg: #ffffff; --m-sup: #ffffff; --m-pri: #0033cc; }
[data-muestra="contraste"] i { border: 2px solid #000; }
[data-muestra="vainilla"]  { --m-bg: #faf6f0; --m-sup: #fffdf9; --m-pri: #bc5b26; }
[data-muestra="aventura"]  { --m-bg: #eef6ff; --m-sup: #ffffff; --m-pri: #1560c4; }
[data-muestra="madrugada"] { --m-bg: #0e1620; --m-sup: #151f2b; --m-pri: #4fb8c9; }
[data-muestra="carbon"]    { --m-bg: #0d1117; --m-sup: #161b22; --m-pri: #58a6ff; }
[data-muestra="aurora"]    { --m-bg: radial-gradient(circle at 20% 20%, #5b3fd6, transparent 60%), radial-gradient(circle at 90% 90%, #0b7a74, transparent 60%), #0b0d24; --m-sup: rgba(18, 20, 54, 0.86); --m-pri: #8b7dff; }
[data-muestra="amanecer"]  { --m-bg: radial-gradient(circle at 20% 20%, #c9bfff, transparent 60%), radial-gradient(circle at 90% 90%, #a8ece6, transparent 60%), #f4f3fa; --m-sup: rgba(255, 255, 255, 0.8); --m-pri: #5442d6; }
[data-muestra="obsidiana"] { --m-bg: #0a0a0f; --m-sup: #1c1826; --m-pri: #c084fc; }
[data-muestra="papel"]     { --m-bg: #f3f3ef; --m-sup: #fdfdfb; --m-pri: #234e82; }
[data-muestra="commodore"] { --m-bg: #40318d; --m-sup: #352879; --m-pri: #a5a5ff; }
[data-muestra="commodore"] { border: 3px solid #7869c4; }

/* «Elegir de mis fotos…» del fondo: más ancho, para que «Usar las fotos de esta
   carpeta», «Cambiar la foto cada» y «Cerrar» quepan en un renglón. */
.modal.modal-esc-fotos { max-width: min(46rem, calc(100vw - 32px)); }
.modal-esc-fotos .modal-acciones label { white-space: nowrap; }

/* ── Widgets (etapa 1: los del Resumen) ──────────────────────────────────────
   Vidrio oscuro sobre cualquier fondo (foto, color o el campo de EnlacesPYME):
   en Windows, esquinas de 8 px como los de Windows 11; en la Mac, redondos
   (22 px) como los de macOS. Ocupan celdas de la cuadrícula de los íconos. */
.esc-widget {
    position: absolute; z-index: 1; overflow: hidden; touch-action: none; user-select: none;
    color: #fff; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(28, 30, 36, 0.58); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); transition: left 0.18s, right 0.18s, top 0.18s, width 0.18s, height 0.18s;
}
.esc-widget.moviendo { transition: none; z-index: 5; cursor: grabbing; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); opacity: 0.92; }
body.esc-mac .esc-widget { border-radius: 22px; background: rgba(40, 40, 46, 0.5); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Inter, sans-serif; }
.esc-widget button { background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.esc-w-cuerpo { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 12px 14px; box-sizing: border-box; min-width: 0; }
.esc-w-bateria { justify-content: center; align-items: center; }
.esc-w-bateria-fila { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.esc-w-bateria.tam-c .esc-w-bateria-fila { flex-direction: column; gap: 0.1rem; text-align: center; }
.esc-w-bateria-ic { line-height: 0; flex: none; }
.esc-w-bateria.tam-c .esc-w-bateria-ic svg { width: 54px; height: 54px; }
.esc-w-bateria-txt { display: flex; flex-direction: column; min-width: 0; }
.esc-w-bateria-txt strong { font-size: var(--t-4xl); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.esc-w-bateria.tam-c .esc-w-bateria-txt strong { font-size: var(--t-2xl); }
.esc-w-bateria-txt span { font-size: var(--t-sm); opacity: 0.85; }
.esc-w-cab { display: flex; align-items: center; gap: 0.4rem; font-size: var(--t-sm); font-weight: 600; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.esc-w-ic { line-height: 0; }
.esc-w-ic svg { width: 15px; height: 15px; }
.esc-w-cifra { display: flex; align-items: baseline; gap: 0.4rem; }
.esc-w-cifra strong { font-size: var(--t-5xl); font-weight: 700; line-height: 1; }
.esc-w-cifra span { opacity: 0.8; font-size: var(--t-base); }
.esc-w-inis { display: flex; gap: 0.3rem; margin-top: auto; }
.esc-w-ini { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-sm); font-weight: 700; color: #fff; }
.esc-w-lista { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden; }
.esc-w-correo { display: flex; align-items: center; gap: 0.55rem; padding: 4px 6px !important; margin: 0 -6px; border-radius: 8px; min-width: 0; }
.esc-w-correo:hover, .esc-w-ev:hover, .esc-w-cab:hover, .esc-w-cifra:hover, .esc-w-hoy:hover { background: rgba(255, 255, 255, 0.1); border-radius: 8px; }
.esc-w-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.esc-w-de { font-weight: 600; font-size: var(--t-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-w-asunto { font-size: var(--t-sm); opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-w-vacio { margin: 0; font-size: var(--t-md); opacity: 0.75; }
/* Mediano: la cifra a la izquierda y la lista a la derecha (como el del Resumen). */
.esc-widget-m.esc-widget-correo .esc-w-cuerpo { display: grid; grid-template-columns: 7.5rem 1fr; grid-template-rows: auto 1fr; column-gap: 0.9rem; }
.esc-widget-m.esc-widget-correo .esc-w-cifra { grid-row: 2; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.esc-widget-m.esc-widget-correo .esc-w-lista { grid-column: 2; grid-row: 1 / 3; justify-content: center; }
/* Próximos eventos: el día de hoy grande, como el calendario de la Mac. */
.esc-w-hoy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; padding: 2px 4px !important; margin: -2px -4px; }
.esc-w-hoy-dia { font-size: var(--t-sm); font-weight: 700; text-transform: uppercase; color: #ff6b5e; letter-spacing: 0.04em; }
.esc-w-hoy strong { font-size: var(--t-5xl); font-weight: 600; margin-top: 2px; }
.esc-w-ev { display: flex; flex-direction: column; gap: 1px; padding: 3px 6px 3px 10px !important; margin: 0 -6px; border-radius: 6px; position: relative; min-width: 0; }
.esc-w-ev::before { content: ""; position: absolute; left: 2px; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--c, #0265f8); }
.esc-w-ev-tit { font-weight: 600; font-size: var(--t-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-w-ev-cuando { font-size: var(--t-xs); opacity: 0.75; }
.esc-widget-m.esc-widget-eventos .esc-w-cuerpo { display: grid; grid-template-columns: 7rem 1fr; column-gap: 0.9rem; }
.esc-widget-m.esc-widget-eventos .esc-w-lista { justify-content: center; }
.esc-widget-c.esc-widget-eventos .esc-w-hoy strong { font-size: var(--t-4xl); }

/* El diálogo «Widgets». */
.esc-dlg-widgets { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.8rem; }
.esc-dlg-widget { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.8rem; padding: 0.7rem; border: 1px solid var(--color-border); border-radius: 10px; }
.esc-dlg-widget-ic { grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.esc-dlg-widget-ic svg { width: 1.3rem; height: 1.3rem; }
.esc-dlg-widget-txt { display: flex; flex-direction: column; gap: 0.1rem; font-size: var(--t-base); }
.esc-dlg-widget-ya { font-size: var(--t-sm); font-style: italic; }
.esc-dlg-widget-tams { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.esc-dlg-widget-tams .btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.esc-tam-muestra { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.7; }
.esc-tam-c { width: 10px; height: 10px; }
.esc-tam-m { width: 20px; height: 10px; }
.esc-tam-g { width: 20px; height: 20px; }

/* Las gráficas del Resumen (graficas.js) sobre el vidrio oscuro: rejilla y cifras claras. */
.esc-widget { --graf-neutro: rgba(255, 255, 255, 0.16); }
.esc-widget .grafica-semana { width: 100%; height: 100%; display: block; min-width: 0; }
/* La gráfica mide 560 de ancho y aquí se pinta en ~380 px: la letra, a la escala. */
.esc-widget .grafica-semana .cifra { fill: rgba(255, 255, 255, 0.75); font-size: 16px; }
.esc-widget .grafica-semana .rejilla { stroke: rgba(255, 255, 255, 0.14); }
.esc-widget .grafica-semana .punto { stroke: rgba(20, 22, 28, 0.8); stroke-width: 1.5; }
.esc-w-cab-fila { display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; }
.esc-w-tabs { display: inline-flex; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 2px; }
.esc-w-tabs button { padding: 2px 10px !important; border-radius: 999px; font-size: var(--t-xs) !important; opacity: 0.8; }
.esc-w-tabs button.activo { background: rgba(255, 255, 255, 0.22); opacity: 1; }
.esc-w-dato { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.esc-w-dato > div:not(.esc-w-dona) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.esc-w-dato strong { font-size: var(--t-3xl); font-weight: 700; line-height: 1.05; }
.esc-w-dato strong.esc-w-chico { font-size: var(--t-lg); }
.esc-w-dato span { font-size: var(--t-md); opacity: 0.85; }
.esc-w-dato small { font-size: var(--t-xs); opacity: 0.65; }
.esc-w-dona { flex: 0 0 auto; width: 72px; height: 72px; line-height: 0; position: relative; }
.esc-w-dona svg { width: 100%; height: 100%; }
.esc-widget-c .esc-w-dona { width: 92px; height: 92px; }
.esc-widget-g .esc-w-espacio .esc-w-dona { width: 96px; height: 96px; }
.esc-w-dona-pct b { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t-lg); font-weight: 700; line-height: 1; }
.esc-w-dona-pct > span { display: block; width: 100%; height: 100%; }
.esc-widget-c .esc-w-dato { justify-content: center; flex: 1; }
.esc-w-pie { text-align: center; font-size: var(--t-sm); opacity: 0.7; }
.esc-w-hoy-correo { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; justify-content: center; }
.esc-widget-m .esc-w-hoy-correo, .esc-widget-g .esc-w-hoy-correo { flex-direction: row; flex-wrap: wrap; justify-content: space-around; align-content: center; }
.esc-widget-c .esc-w-hoy-correo .esc-w-dato strong { font-size: var(--t-2xl); }
.esc-widget-c .esc-w-hoy-correo .esc-w-dato { justify-content: flex-start; flex: 0; }
.esc-w-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; font-size: var(--t-sm); opacity: 0.85; width: 100%; }
.esc-w-leyenda li { display: inline-flex; align-items: center; gap: 0.35rem; }
.esc-w-leyenda i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.esc-w-tipos .esc-w-leyenda { flex-direction: column; flex-wrap: nowrap; width: auto; }
.esc-w-semana, .esc-w-espacio { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; min-height: 0; justify-content: center; }
.esc-widget-g .esc-w-espacio { justify-content: flex-start; padding-top: 0.6rem; }
.esc-w-grafica { flex: 1; min-height: 0; }
/* Actividad: las barras (como las del Resumen, en claro). */
.esc-w-actividad { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-height: 0; }
.esc-w-barras { flex: 1; display: flex; align-items: stretch; gap: 6px; min-height: 0; }
.esc-w-barra-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.esc-w-barra { width: 100%; max-width: 28px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #7dd3fc, #3b82f6); }
.esc-w-barra-n { font-size: var(--t-2xs); opacity: 0.8; }
.esc-w-barra-dia { font-size: var(--t-2xs); opacity: 0.7; white-space: nowrap; }
/* Pendientes. */
.esc-w-pend { display: flex; align-items: center; gap: 0.6rem; padding: 4px 6px !important; margin: 0 -6px; border-radius: 8px; }
.esc-w-pend:hover { background: rgba(255, 255, 255, 0.1); }
.esc-w-pend strong { font-size: var(--t-3xl); min-width: 2.2rem; }
.esc-w-pend > span { display: flex; flex-direction: column; font-size: var(--t-md); line-height: 1.2; }
.esc-w-pend small { color: #ff8a80; }
.esc-w-pend.vencidos strong { color: #ff8a80; }
/* Recordatorios. */
.esc-w-rec { display: flex; align-items: center; gap: 0.4rem; }
.esc-w-rec .esc-w-ev { flex: 1; }
.esc-w-rec.sonando .esc-w-ev { background: rgba(245, 158, 11, 0.22); }
.esc-w-listo { padding: 3px 10px !important; border-radius: 999px; background: #f59e0b !important; color: #1b1300 !important; font-size: var(--t-sm) !important; font-weight: 600 !important; }
/* Notas fijadas: el color de cada una en una tira a la izquierda. */
.esc-w-notas { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; flex: 1; }
.esc-widget-m .esc-w-notas { flex-direction: row; }
.esc-widget-m .esc-w-nota { flex: 1; }
.esc-w-nota { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 6px 11px !important; border-radius: 8px; background: rgba(255, 255, 255, 0.07) !important; position: relative; min-width: 0; overflow: hidden; max-height: 100%; }
.esc-w-nota::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nc, rgba(255, 255, 255, 0.35)); }
.esc-w-nota:hover { background: rgba(255, 255, 255, 0.13) !important; }
.esc-w-nota strong { font-size: var(--t-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-w-nota > span { font-size: var(--t-sm); opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.esc-w-nota-items { display: flex; flex-direction: column; }
.esc-w-nota-items .hecho { text-decoration: line-through; opacity: 0.6; }
.esc-w-nota-rojo { --nc: #f28b82; } .esc-w-nota-naranja { --nc: #fbbc04; } .esc-w-nota-amarillo { --nc: #fff475; }
.esc-w-nota-verde { --nc: #ccff90; } .esc-w-nota-azul { --nc: #aecbfa; } .esc-w-nota-morado { --nc: #d7aefb; }
.esc-w-nota-rosa { --nc: #fdcfe8; } .esc-w-nota-gris { --nc: #e8eaed; } .esc-w-nota-cafe { --nc: #e6c9a8; } .esc-w-nota-turquesa { --nc: #a7ffeb; }
/* Reloj. */
.esc-w-reloj { justify-content: center; align-items: center; text-align: center; }
.esc-w-reloj.analogico { flex-direction: row; gap: 1rem; }
.esc-widget-c .esc-w-reloj.analogico { flex-direction: column; gap: 0.2rem; }
.esc-w-caratula { width: 150px; height: 150px; line-height: 0; flex: 0 0 auto; }
.esc-widget-c .esc-w-caratula { width: 150px; height: 150px; }
.esc-w-caratula svg { width: 100%; height: 100%; }
.esc-w-reloj-txt { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.esc-w-reloj.analogico .esc-w-reloj-txt { align-items: flex-start; text-align: left; }
.esc-w-reloj-txt strong { font-size: var(--t-5xl); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.esc-widget-c .esc-w-reloj-txt strong { font-size: var(--t-4xl); }
.esc-widget-m .esc-w-reloj:not(.analogico) .esc-w-reloj-txt strong { font-size: var(--t-6xl); }
.esc-w-reloj-txt span { font-size: var(--t-md); opacity: 0.8; }
.esc-w-reloj-txt span::first-letter { text-transform: uppercase; }
.esc-w-reloj-txt small, .esc-w-reloj-ciudad { font-size: var(--t-sm); color: #ff9f0a; font-weight: 600; }
/* Clima. */
.esc-w-clima { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.esc-w-clima-ciudad { font-size: var(--t-md); font-weight: 600; opacity: 0.9; }
.esc-w-clima-ahora { display: flex; align-items: center; gap: 0.5rem; }
.esc-w-clima-ahora strong { font-size: var(--t-5xl); font-weight: 300; line-height: 1.05; }
.esc-w-clima-emoji { font-size: var(--t-4xl); }
.esc-w-clima > span:not(.esc-w-clima-ahora):not(.esc-w-clima-ciudad) { font-size: var(--t-md); opacity: 0.85; }
.esc-w-clima small { font-size: var(--t-xs); opacity: 0.7; }
.esc-w-clima-dias { display: flex; justify-content: space-between; gap: 0.3rem; margin-top: auto; }
.esc-w-clima-dia { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: var(--t-sm); }
.esc-w-clima-dia small { opacity: 0.7; }
.esc-w-clima-dias.filas { flex-direction: column; gap: 0.25rem; margin-top: 0.4rem; }
.esc-w-clima-dias.filas .esc-w-clima-dia { flex-direction: row; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 0.25rem; }
.esc-w-clima-dias.filas .esc-w-clima-dia small:first-child { width: 4rem; text-align: left; }
/* Marco de fotos: la foto a todo el recuadro. */
.esc-w-fotos { width: 100%; height: 100%; }
.esc-w-foto { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 10px 12px !important; background-size: cover !important; background-position: center !important; transition: background-image 0.6s; }
.esc-w-foto small { font-size: var(--t-xs); background: rgba(0, 0, 0, 0.45); padding: 2px 8px; border-radius: 999px; }
.esc-w-fotos-elegir { width: 100%; align-items: center; justify-content: center; text-align: center !important; gap: 0.5rem; font-size: var(--t-md); opacity: 0.85; }
.esc-w-fotos-elegir .esc-w-ic svg { width: 28px; height: 28px; }

/* ── Widgets de MasAdmin (Cobranza, Ventas; 2026-10-23) ── */
.esc-w-erp-logo { width: 1rem; height: 1rem; border-radius: 3px; object-fit: contain; }
.esc-w-erp-sel {
    font: inherit; font-size: var(--t-xs); font-weight: 600; color: inherit; max-width: 7.5rem;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 1px 6px;
}
.esc-w-erp-sel option { color: #111; }
.esc-w-erp-una { font-size: var(--t-xs); font-weight: 600; opacity: 0.7; }
.esc-w-erp-cuerpo { display: flex; flex-direction: column; gap: 0.45rem; min-height: 0; flex: 1; }
.esc-w-erp-cifras { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.esc-w-erp-cifra { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; min-width: 0; }
.esc-w-erp-cifra strong { font-size: var(--t-2xl); font-weight: 700; white-space: nowrap; }
.esc-w-erp-cifra.grande strong { font-size: var(--t-4xl); }
.esc-w-erp-cifra span { font-size: var(--t-sm); opacity: 0.8; }
.esc-w-erp-cifra.alerta strong { color: #ff8a7a; }
.esc-w-erp-lista { display: flex; flex-direction: column; gap: 0.35rem; min-height: 0; }
.esc-w-erp-lista .esc-w-tabs { align-self: flex-start; }
.esc-w-erp-fila { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: baseline; text-align: left; padding: 3px 4px; border-radius: 6px; font-size: var(--t-sm); }
.esc-w-erp-fila:hover { background: rgba(255, 255, 255, 0.1); }
.esc-w-erp-cli { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.esc-w-erp-imp { font-variant-numeric: tabular-nums; white-space: nowrap; }
.esc-w-erp-dias { font-size: var(--t-xs); opacity: 0.75; white-space: nowrap; }
.esc-w-erp-dias.atraso { color: #ff8a7a; opacity: 1; font-weight: 600; }
.esc-w-erp-delta { font-size: var(--t-sm); opacity: 0.85; }
.esc-w-erp-delta.sube { color: #6ee7a0; }
.esc-w-erp-delta.baja { color: #ff8a7a; }
.esc-widget-c .esc-w-erp-cifra strong { font-size: var(--t-xl); }
.esc-widget-c .esc-w-erp-cifra.grande strong { font-size: var(--t-2xl); }
.esc-widget-c .esc-w-erp .esc-w-tabs button { padding: 1px 6px !important; font-size: var(--t-2xs) !important; }
/* Mediano (4×2): dos columnas, como el de correo — las cifras a la izquierda y la
   lista a la derecha. En una sola columna la lista no cabía y quedaba cortada. */
.esc-widget-m .esc-w-erp-cuerpo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 0.9rem; align-items: start; }
.esc-widget-m .esc-w-erp-cifras { flex-direction: column; gap: 0.45rem; }
.esc-widget-m .esc-w-erp-cifra.grande strong { font-size: var(--t-3xl); }
.esc-w-erp-resumen { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.esc-w-erp-resumen .esc-w-tabs { align-self: flex-start; }

/* Barra de tareas y título de la ventana: el azulejo del menú Inicio, en chico
   (2026-10-23, Jore: «los mismos iconos del menú en lugar de los blancos»).
   Sin azulejos (o el juego «Mac»), el ícono suelto, del color del texto: el blanco
   de la regla general es para ir SOBRE el azulejo. */
.esc-modulo.esc-mini { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.esc-modulo.esc-mini svg { width: 17px; height: 17px; }
.esc-modulo.esc-mini img { width: 18px; height: 18px; }
.esc-modulo.esc-mini.esc-sin-azulejo { width: auto; height: auto; color: var(--color-primary); }
.esc-modulo.esc-mini.esc-sin-azulejo svg, .esc-modulo.esc-mini.esc-sin-azulejo img { width: 24px; height: 24px; }
.esc-ventana-ic.esc-modulo.esc-mini { width: 20px; height: 20px; border-radius: 5px; }
.esc-ventana-ic.esc-modulo.esc-mini svg, .esc-ventana-ic.esc-modulo.esc-mini img { width: 13px; height: 13px; }
.esc-ventana-ic.esc-modulo.esc-mini.esc-sin-azulejo { width: auto; height: auto; }
.esc-ventana-ic.esc-modulo.esc-mini.esc-sin-azulejo svg, .esc-ventana-ic.esc-modulo.esc-mini.esc-sin-azulejo img { width: 18px; height: 18px; }
/* «Copiar la configuración de otro dispositivo…»: discreto, como un enlace. */
.esc-disp-copiar { margin-top: 0.8rem; padding: 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--t-base); cursor: pointer; text-align: left; }
.esc-disp-copiar:hover { text-decoration: underline; }

/* ── Widgets de MasAdmin del Reporteador (2026-10-25) ── */
/* Panorama: los indicadores del día en mosaico (2 en chico, 4 en mediano, hasta 10 en grande). */
.esc-w-pano { flex: 1; min-height: 0; display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; overflow: hidden; }
.esc-w-pano.tam-c { grid-template-columns: 1fr; }
.esc-w-pano-tile {
    display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 6px 8px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.07); text-align: left; line-height: 1.15;
}
.esc-w-pano-tile:hover { background: rgba(255, 255, 255, 0.13); }
.esc-w-pano-lbl { font-size: var(--t-xs); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-w-pano-tile strong { font-size: var(--t-xl); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.esc-w-pano.tam-c .esc-w-pano-tile strong { font-size: var(--t-xl); }
.esc-w-pano-tile.warn strong { color: #ffc46b; }
.esc-w-pano-tile.bad strong { color: #ff8a7a; }
.esc-w-pano-sub { font-size: var(--t-2xs); opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-w-pano-sub b { font-weight: 600; margin-right: 0.25rem; }
.esc-w-pano-sub b.sube { color: #7ee2a8; }
.esc-w-pano-sub b.baja { color: #ff8a7a; }
/* Surtido: el producto debajo del cliente. */
.esc-w-erp-cli small { display: block; font-size: var(--t-2xs); opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Existencias: el buscador y, por producto, sus almacenes. */
.esc-w-exist-buscar { display: flex; align-items: center; gap: 0.35rem; padding: 0 0.5rem; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, 0.12); flex: none; }
.esc-w-exist-buscar svg { width: 14px; height: 14px; opacity: 0.7; flex: none; }
.esc-w-exist-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--t-md); outline: none; }
.esc-w-exist-buscar input::placeholder { color: rgba(255, 255, 255, 0.55); }
.esc-w-exist { gap: 6px; }
/* Existencias va en una sola columna también en mediano: el buscador arriba, a lo ancho. */
.esc-widget-m .esc-w-erp-cuerpo.una-col { display: flex; flex-direction: column; }
.esc-w-erp-cuerpo.una-col > * { width: 100%; box-sizing: border-box; }
.esc-w-exist-prod { padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-size: var(--t-sm); }
.esc-w-exist-cab { display: flex; justify-content: space-between; gap: 0.5rem; }
.esc-w-exist-cab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.esc-w-exist-alm { display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem; font-size: var(--t-xs); opacity: 0.8; }
.esc-w-exist-alm .cero { opacity: 0.5; }
/* El diálogo de «Elegir indicadores…». */
.esc-pano-elegir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; margin: 0.6rem 0 0.8rem; }
@media (max-width: 520px) { .esc-pano-elegir { grid-template-columns: 1fr; } }

/* Los menús de clic derecho, del mismo vidrio que el menú Inicio cuando la
   transparencia está encendida (Jore, 2026-10-25). Va al final para ganarle al
   de la Mac (misma especificidad). Dentro de las ventanas también: copian la
   clase de la página de afuera (ventanaArrancar). */
body.esc-trans-suave .ctx-menu, body.esc-trans-fuerte .ctx-menu {
    backdrop-filter: blur(32px) saturate(160%); -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-color: color-mix(in srgb, var(--color-border) 60%, transparent);
}
body.esc-trans-suave .ctx-menu { background: color-mix(in srgb, var(--color-surface) 62%, transparent); }
body.esc-trans-fuerte .ctx-menu { background: color-mix(in srgb, var(--color-surface) 46%, transparent); }

/* ── El Control de MasAdmin (etapa 1, 2026-10-25) ── */
.esc-w-ctrl { display: flex; flex-direction: column; gap: 0.55rem; min-height: 0; flex: 1; }
.esc-w-ctrl-fila { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; }
.esc-w-ctrl-fila label { display: flex; align-items: center; gap: 0.4rem; font-size: var(--t-sm); opacity: 0.95; }
.esc-w-ctrl-fila label > span { opacity: 0.75; }
.esc-w-ctrl select, .esc-w-ctrl input[type=date] {
    font: inherit; font-size: var(--t-sm); font-weight: 600; color: inherit; color-scheme: dark;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 2px 8px; max-width: 11rem;
}
.esc-w-ctrl select option { color: #111; }
.esc-w-ctrl-periodos { flex-wrap: wrap; align-self: flex-start; }
.esc-w-ctrl-pie { margin: auto 0 0; font-size: var(--t-xs); opacity: 0.7; }
/* Los que lo siguen dicen qué ven, en lugar del selector de empresa. */
.esc-w-erp-ctx { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--t-2xs); font-weight: 600; opacity: 0.8; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.esc-w-erp-ctx svg { width: 12px; height: 12px; flex: none; }

/* ── Que nada se desborde (Jore, 2026-10-25: el desglose se encimaba con
   «Cotizado en el periodo» y el pie del Control quedaba cortado). El cuerpo de
   cada widget de MasAdmin RECORTA lo que no cabe en vez de pintarlo encima; el
   encabezado, el desglose y el pie se guardan su lugar. ── */
.esc-w-erp > * { flex: none; min-width: 0; }
.esc-w-erp > .esc-w-erp-cuerpo, .esc-w-erp > .esc-w-pano, .esc-w-erp > .ind, .esc-w-erp > .esc-w-ctrl { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.esc-w-erp-resumen { min-height: 0; overflow: hidden; }
/* Las líneas de variación, en dos renglones como mucho. */
.esc-w-erp-resumen .esc-w-erp-delta { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esc-widget-m .esc-w-erp-cifra > span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esc-w-erp-desglose { margin-top: 0.15rem; }
/* El Control: los periodos y «Filtros…» en una fila que se acomoda; el pie, de un renglón. */
.esc-w-ctrl { gap: 0.45rem; }
.esc-w-ctrl-per { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.esc-w-ctrl-pie { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* (2) El título nunca se parte en dos renglones: el contexto del Control cede
   (se recorta con «…» y se lee completo en su globito). */
.esc-w-erp .esc-w-cab-fila { flex-wrap: nowrap; min-width: 0; }
.esc-w-erp .esc-w-cab { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.esc-w-erp .esc-w-cab > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.esc-w-erp .esc-w-erp-ctx { flex: 1 1 0; justify-content: flex-end; }
.esc-w-erp .esc-w-erp-ctx > span:last-child { overflow: hidden; text-overflow: ellipsis; }
/* La columna de las cifras, al menos del ancho del número (un monto de 8 cifras se cortaba). */
.esc-widget-m .esc-w-erp-cuerpo { grid-template-columns: minmax(min-content, 0.85fr) minmax(0, 1.15fr); }
.esc-widget-m .esc-w-erp-cifra.grande strong { font-size: var(--t-2xl); }
/* El Control: los periodos en un renglón; filtros y «Filtros…» en otro, sin partirse. */
.esc-w-ctrl-periodos { flex-wrap: nowrap; max-width: 100%; overflow: hidden; }
.esc-w-ctrl-periodos button { padding: 2px 7px !important; font-size: var(--t-xs) !important; white-space: nowrap; }
.esc-w-ctrl-chips { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.esc-w-ctrl-chips > * { flex: 0 1 auto; min-width: 0; }
.esc-w-ctrl-chips > .ctx-chip-mas { flex: none; }
/* (3) El Panorama mediano: azulejos más justos (con el desglose de «Todas» no cabían). */
.esc-widget-m .esc-w-pano { gap: 4px; }
.esc-widget-m .esc-w-pano-tile { padding: 3px 8px; gap: 0; }
.esc-widget-m .esc-w-pano-tile strong { font-size: var(--t-lg); }
/* ⚠️ (4) La causa de fondo: `.esc-widget button { font: inherit }` también hereda el
   INTERLINEADO (1.6) y pisaba el 1.15 de los azulejos y las cifras, que son botones:
   cada renglón medía casi el doble y el Panorama no cabía. */
.esc-widget .esc-w-pano-tile, .esc-widget .esc-w-erp-cifra, .esc-widget .ind-cifra { line-height: 1.15; }
/* La etiqueta de la empresa de cada renglón («Todas las empresas»), legible sobre el vidrio oscuro. */
.esc-widget .erp-emp { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.28); color: inherit; }

/* ── Aurora y Amanecer en el modo escritorio (2026-10-28) ─────────────────────────
   Con el fondo de fábrica, el fondo del escritorio es la luz viva del tema (aurora.js la
   pinta detrás de todo): el escritorio se vuelve transparente y el campo de EnlacesPYME
   no se dibuja. Las ventanas, de vidrio: su iframe no pinta fondo (abajo, `en-ventana`)
   y la ventana desenfoca la luz que pasa, como las tarjetas del tema. */
body.esc-fondo-vivo .esc, body.esc-fondo-vivo .esc.esc-fondo-epyme { background: transparent; }
body.esc-fondo-vivo .esc-campo { display: none; }
:is([data-theme="aurora"], [data-theme="amanecer"]) .esc-ventana {
    background: color-mix(in srgb, var(--color-surface) 62%, transparent);
    backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: var(--shadow-lg), inset 0 1px 0 var(--aurora-brillo);
}
/* Ese vidrio claro es para la luz del tema. Sobre una foto o un color elegidos el fondo
   puede ser de cualquier tono, y el vidrio de la ventana más el de las tarjetas de dentro
   (el iframe no desenfoca lo de fuera) dejaban el texto gris sobre gris en todos los
   módulos (Jore, 2026-10-29: «la parte transparente que lleva textos no se lee bien con
   fondos oscuros»). Ahí, el fondo del tema casi entero; con «Transparencia de las
   ventanas» algo menos, pero sin bajar de lo que se lee (y más que el body.esc-trans-*). */
html:is([data-theme="aurora"], [data-theme="amanecer"]) body:not(.esc-fondo-vivo) .esc-ventana { background: color-mix(in srgb, var(--color-bg) 92%, transparent); }
html:is([data-theme="aurora"], [data-theme="amanecer"]) body.esc-trans-suave:not(.esc-fondo-vivo) .esc-ventana { background: color-mix(in srgb, var(--color-bg) 86%, transparent); }
html:is([data-theme="aurora"], [data-theme="amanecer"]) body.esc-trans-fuerte:not(.esc-fondo-vivo) .esc-ventana { background: color-mix(in srgb, var(--color-bg) 78%, transparent); }
/* Con la luz de fábrica tampoco basta el vidrio claro: detrás de una ventana puede haber
   otra con algo claro (una imagen, un documento) y la tabla quedaba gris con letra blanca
   (Jore, 2026-10-29: «en Archivos… se pierde un poco cuando hay fondos claros»). Y con
   «Transparencia de las ventanas» el body.esc-trans-* la dejaba del todo transparente. El
   fondo del tema casi entero, desenfocado: la luz se adivina, lo de atrás no estorba. */
html:is([data-theme="aurora"], [data-theme="amanecer"]) body.esc-fondo-vivo .esc-ventana { background: color-mix(in srgb, var(--color-bg) 84%, transparent); }
html:is([data-theme="aurora"], [data-theme="amanecer"]) body.esc-trans-suave.esc-fondo-vivo .esc-ventana { background: color-mix(in srgb, var(--color-bg) 78%, transparent); }
html:is([data-theme="aurora"], [data-theme="amanecer"]) body.esc-trans-fuerte.esc-fondo-vivo .esc-ventana { background: color-mix(in srgb, var(--color-bg) 72%, transparent); }
/* El marco de la ventana pintaba el fondo del tema (opaco): con estos temas, nada. */
:is([data-theme="aurora"], [data-theme="amanecer"]) .esc-ventana iframe { background: transparent; }
:is([data-theme="aurora"], [data-theme="amanecer"]) .esc-ventana-titulo { background: color-mix(in srgb, var(--color-surface) 60%, transparent); }
/* Dentro de la ventana (el iframe), el cuerpo SIN fondo: así se ve el vidrio de la ventana
   y, a través de él, la luz. (Fuera de una ventana, el cuerpo sigue con su cielo.) */
html.en-ventana:is([data-theme="aurora"], [data-theme="amanecer"]),
html.en-ventana:is([data-theme="aurora"], [data-theme="amanecer"]) body { background: transparent; }

/* ── Modo discreto (2026-10-29) ──────────────────────────────────────────
   Los datos del widget quedan ocultos (sin cambiar su tamaño ni su lugar) y
   encima va el velo: gráficas que se mueven despacio con los colores del tema,
   sin un solo número, eje ni nombre. Tapa también los clics. */
.esc-widget.esc-discreto > :not(.esc-w-velo) { visibility: hidden; }
.esc-w-velo {
    position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
    padding: 14%; color: inherit; overflow: hidden;
    --velo-a: var(--color-primary);
    --velo-b: color-mix(in srgb, var(--color-primary) 35%, var(--color-info));
}
.esc-velo-barras { display: flex; align-items: flex-end; gap: 6%; width: 100%; height: 100%; }
.esc-velo-barras span {
    flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; transform-origin: bottom;
    background: linear-gradient(to top, var(--velo-a), var(--velo-b)); opacity: 0.85;
    animation: esc-velo-barra calc(3.2s + var(--i) * 0.23s) ease-in-out calc(var(--i) * -0.41s) infinite alternate;
}
@keyframes esc-velo-barra { from { transform: scaleY(0.18); } to { transform: scaleY(0.95); } }
.esc-velo-linea { width: 100%; height: 100%; overflow: visible; }
.esc-velo-linea path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: esc-velo-ola 9s linear infinite; }
.esc-velo-linea .l1 { stroke: var(--velo-a); }
.esc-velo-linea .l2 { stroke: var(--velo-b); opacity: 0.7; animation-duration: 13s; }
@keyframes esc-velo-ola { from { transform: translateX(0); } to { transform: translateX(-400px); } }
.esc-w-velo.velo-anillos { padding: 7%; }
.esc-velo-anillos { width: auto; height: 100%; max-width: 100%; }
.esc-velo-anillos circle { fill: none; stroke-width: 6; stroke-linecap: round; transform-origin: 50% 50%; animation: esc-velo-giro 7s linear infinite; }
.esc-velo-anillos .a1 { stroke: var(--velo-a); stroke-dasharray: 160 92; }
.esc-velo-anillos .a2 { stroke: var(--velo-b); stroke-dasharray: 110 72; animation-duration: 10s; animation-direction: reverse; }
.esc-velo-anillos .a3 { stroke: color-mix(in srgb, currentColor 55%, transparent); stroke-dasharray: 60 53; animation-duration: 5s; }
@keyframes esc-velo-giro { to { transform: rotate(360deg); } }
.esc-velo-reloj { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; }
.esc-velo-reloj strong { font-size: var(--t-5xl); font-weight: 300; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.esc-velo-reloj span { opacity: 0.8; display: inline-block; }
.esc-velo-reloj span::first-letter { text-transform: uppercase; }
.esc-w-velo .esc-w-ojo { position: absolute; top: 8px; right: 8px; }
/* El ojo del Control y del velo: chico, del color del texto del widget. */
.esc-w-ojo {
    display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; flex: none;
    border: 0; border-radius: 8px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; cursor: pointer; opacity: 0.8;
}
.esc-w-ojo:hover { opacity: 1; background: color-mix(in srgb, currentColor 20%, transparent); }
.esc-w-ojo svg { width: 1.1rem; height: 1.1rem; }
.esc-btn-discreto.activo, .mac-discreto.activo { color: var(--color-primary); }
.esc-discreto-min { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.esc-discreto-min .input { width: auto; }
@media (prefers-reduced-motion: reduce) {
    .esc-velo-barras span, .esc-velo-linea path, .esc-velo-anillos circle { animation-duration: 40s; }
}

/* ── Las carpetas del escritorio: la de Archivos en 3D (2026-10-29) ───────
   Mismo dibujo y mismo color del tema que en Archivos (.c3d, componentes.css);
   se entreabre al pasar el cursor y se abre del todo al arrastrarle algo encima. */
.esc-icono-img .esc-c3d { width: 46px; aspect-ratio: 5 / 4; }
.esc-c3d .c3d-atras, .esc-c3d .c3d-frente { border-radius: 5px; }
.esc-c3d .c3d-atras::before { border-radius: 4px 4px 0 0; }
.esc-icono-carpeta:hover .c3d-frente { transform: rotateX(-24deg); }
.esc-icono-carpeta:hover .c3d-hojas { transform: translateY(-7%); }
.esc-icono-carpeta.esc-sobre .c3d-frente { transform: rotateX(-50deg); }
.esc-icono-carpeta.esc-sobre .c3d-hojas { transform: translateY(-14%); }
.esc-icono-carpeta.esc-sobre { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 8px; }
