/* Todo el sitio un 15% más grande (pedido tras las pruebas con usuarios) */
html { zoom:1.15; }
html.dentro { zoom:1; }   /* la página vista dentro de su propio Internet Explorer */

html, body { margin:0; height:100%; overflow:hidden; }
body { background:#008080 center/cover no-repeat; font-family:"Pixelated MS Sans Serif", Arial; font-size:11px; user-select:none; cursor:default; }
svg { shape-rendering:crispEdges; }
input, textarea, select { user-select:text; }

/* ---------- Escritorio ---------- */
#desktop { position:absolute; inset:0 0 28px 0; }
#icons { position:absolute; top:6px; left:6px; display:flex; flex-direction:column; flex-wrap:wrap; height:calc(100% - 12px); align-content:flex-start; gap:6px; }
.icon { width:74px; display:flex; flex-direction:column; align-items:center; padding:2px; text-align:center; color:#fff; }
.icon svg, .icon img.thumb { width:32px; height:32px; margin-bottom:4px; }
.icon img.thumb { object-fit:cover; border:1px solid #808080; }
.icon span { padding:1px 2px; border:1px dotted transparent; line-height:13px; word-break:break-word; }
.icon.sel span { background:#000080; color:#fff; border-color:#ff0; }
.icon.sel svg { opacity:.7; }

/* ---------- Ventanas ---------- */
.window.win { position:absolute; min-width:220px; min-height:120px; display:flex; flex-direction:column; }
.window.win.fixed { min-width:0; min-height:0; }
.window.win > .window-body { flex:1; overflow:auto; margin:6px; }
.window.win > .title-bar { flex:none; }
.window.win.blurred > .title-bar { background:linear-gradient(90deg,#808080,#b5b5b5); }
.window.win.blurred > .title-bar .title-bar-text { color:#c0c0c0; }
.window.win.max { left:0!important; top:0!important; width:100%!important; height:100%!important; }
.title-bar-text { display:flex; align-items:center; gap:4px; overflow:hidden; white-space:nowrap; }
.title-bar-text svg { width:16px; height:16px; flex:none; }
.menubar { display:flex; padding:1px 2px; flex:none; }
.menubar span { padding:2px 6px; }
.menubar span:hover { box-shadow:inset -1px -1px #808080, inset 1px 1px #fff; }
.resizer { position:absolute; right:0; bottom:0; width:12px; height:12px; cursor:nwse-resize; }
.statusbar { flex:none; margin:0 2px 2px; }
.sunken { background:#fff; box-shadow:inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a; }

/* Explorador */
.xp-bar { display:flex; align-items:center; gap:4px; padding:2px 4px; flex:none; }
.xp-bar button { min-width:0; padding:0 8px; }
.xp-bar input { flex:1; }
.explorer { display:flex; flex-wrap:wrap; align-content:flex-start; gap:8px; padding:8px; flex:1; overflow:auto; margin:0 4px 4px; }
.explorer .icon { color:#000; }
.explorer .empty { color:#808080; padding:10px; }

textarea.notepad { width:100%; height:100%; box-sizing:border-box; resize:none; font-family:"Courier New", monospace; font-size:13px; }
.wordpad { flex:1; overflow:auto; margin:0 4px 4px; padding:24px 32px; font:14px/1.5 "Times New Roman", serif; color:#000; user-select:text; white-space:pre-wrap; }
.wordpad.html { white-space:normal; }
.visor { flex:1; overflow:auto; margin:0 4px 4px; display:flex; align-items:center; justify-content:center; background:#808080; }
.visor img { max-width:100%; max-height:100%; object-fit:contain; }
.pdfframe { flex:1; border:0; margin:0 4px 4px; background:#fff; }

/* IE */
.ie-page { background:#fff; margin:0 4px 4px!important; padding:14px; font-family:"Times New Roman", serif; font-size:15px; color:#000; user-select:text; box-shadow:inset 1px 1px #808080, inset -1px -1px #fff; }
.ie-page h1 { font-size:30px; color:#000080; margin:0 0 6px; }
.ie-page marquee { color:#c00; font-weight:bold; }
.ie-page a { color:#00e; }
.blink { animation:blink 1s steps(1) infinite; color:#f0f; }
@keyframes blink { 50% { visibility:hidden; } }
.counter { display:inline-block; background:#000; color:#0f0; font-family:monospace; padding:1px 4px; letter-spacing:2px; }


/* ---------- Outlook Express ---------- */
.oe-tools { display:flex; align-items:stretch; gap:1px; padding:2px 4px; flex:none; border-bottom:1px solid #808080; box-shadow:0 1px #fff; }
.oe-tools .tb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:52px; padding:3px 4px; border:none; background:none; box-shadow:none; font-size:11px; }
.oe-tools .tb:hover { box-shadow:inset -1px -1px #808080, inset 1px 1px #fff; }
.oe-tools .tb:active { box-shadow:inset 1px 1px #808080, inset -1px -1px #fff; }
.oe-tools .tb svg { width:24px; height:24px; }
.oe-tools .tb.dis { color:#808080; text-shadow:1px 1px #fff; pointer-events:none; }
.oe-tools .tb.dis svg { filter:grayscale(1) opacity(.5); }
.oe-tools .vsep { width:2px; margin:2px 3px; box-shadow:inset 1px 0 #808080, inset -1px 0 #fff; }
.oe-head { flex:none; background:linear-gradient(90deg,#000080 0%, #1084d0 100%); color:#fff; font:bold 16px Arial; padding:3px 8px; margin:3px 4px 0; display:flex; align-items:center; gap:6px; }
.oe-head svg { width:20px; height:20px; }
.oe-main { flex:1; display:flex; gap:3px; padding:3px 4px; min-height:0; }
.oe-left { width:190px; flex:none; display:flex; flex-direction:column; gap:3px; }
.oe-pane { display:flex; flex-direction:column; min-height:0; }
.oe-pane .ph { flex:none; padding:2px 4px; box-shadow:inset -1px -1px #808080, inset 1px 1px #fff; }
.oe-folders { flex:3; }
.oe-contacts { flex:2; }
.oe-pane .pb { flex:1; overflow:auto; padding:3px 2px; }
.tree div { padding:1px 3px; white-space:nowrap; display:flex; align-items:center; gap:4px; }
.tree div svg { width:16px; height:16px; flex:none; }
.tree div.lv1 { margin-left:14px; } .tree div.lv2 { margin-left:28px; }
.tree div.on span { background:#000080; color:#fff; }
.tree div.bold span { font-weight:bold; }
.tree div .cnt { color:#00f; font-weight:bold; }
.tree div.on .cnt { color:#fff; }
.oe-right { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
.oe-list { flex:1; overflow:auto; min-height:90px; }
.oe-list table { width:100%; border-collapse:collapse; table-layout:fixed; }
.oe-list th { position:sticky; top:0; background:#c0c0c0; font-weight:normal; text-align:left; padding:1px 4px; box-shadow:inset -1px -1px #808080, inset 1px 1px #fff; white-space:nowrap; overflow:hidden; }
.oe-list th.i { width:12px; padding:1px 2px; text-align:center; }
.oe-list td { padding:1px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oe-list td.i { padding:1px 2px; text-align:center; }
.oe-list td svg { width:16px; height:16px; vertical-align:middle; }
.oe-list tr.unread td { font-weight:bold; }
.oe-list tr.on td { background:#000080; color:#fff; }
.oe-list .prio { color:#f00; font-weight:bold; }
.oe-split { flex:none; height:4px; cursor:ns-resize; }
.oe-preview { flex:2.4; display:flex; flex-direction:column; min-height:60px; }
.oe-phead { flex:none; background:#c0c0c0; padding:4px 6px; border-bottom:1px solid #808080; display:grid; grid-template-columns:auto 1fr auto; column-gap:6px; row-gap:1px; align-items:start; user-select:text; }
.oe-phead b { font-weight:bold; }
.oe-phead .clip { grid-row:1 / span 3; grid-column:3; min-width:0; padding:2px 4px; }
.oe-pbody { flex:1; overflow:auto; padding:10px 12px; font:13px/1.45 Arial, sans-serif; color:#000; white-space:pre-wrap; user-select:text; background:#fff; }
.oe-pbody.empty { color:#808080; display:flex; align-items:center; justify-content:center; white-space:normal; font-size:11px; font-family:inherit; }
.oe-atts { max-height:58px; overflow:auto;  flex:none; border-top:1px solid #c0c0c0; background:#fff; padding:4px 8px; display:flex; flex-wrap:wrap; gap:4px 12px; }
.oe-atts a { color:#000; text-decoration:none; display:flex; align-items:center; gap:3px; cursor:default; }
.oe-atts a:hover span { text-decoration:underline; color:#00f; }
.oe-atts svg { width:16px; height:16px; }
.oe-msgwin .oe-phead { margin:0 4px; }
.oe-pbody { min-height:80px; }
.oe-desc { flex:none; display:flex; flex-wrap:wrap; gap:4px; padding:3px 6px; background:#c0c0c0; border-top:1px solid #808080; }
.oe-desc button { min-width:0; padding:0 8px; display:inline-flex; align-items:center; gap:4px; }
.oe-desc button svg { width:16px; height:16px; }
.oe-movil .oe-desc { flex-wrap:nowrap; }
.oe-movil .oe-desc button { flex:1; justify-content:center; padding:0 4px; font-size:13px !important; white-space:nowrap; }
/* Outlook en pantallas angostas (celular) */
.oe-csel, .oe-volver { display:none; }
.oe-movil .oe-left, .oe-movil .oe-ht { display:none; }
.oe-movil .oe-head { padding:3px 4px; }
.oe-movil .oe-csel { display:block; flex:1; min-width:0; height:24px; font:bold 13px Arial, sans-serif; }
.oe-movil .oe-tools { overflow-x:auto; overflow-y:hidden; }
.oe-movil .oe-tools .tb { min-width:34px; padding:3px 5px; }
.oe-movil .oe-tools .tb span, .oe-movil .oe-tools [data-t=print], .oe-movil .oe-tools [data-t=find] { display:none; }
.oe-movil .oe-split { display:none; }
.oe-movil:not(.oe-ver-msg) .oe-preview { display:none; }
.oe-movil.oe-ver-msg .oe-list { display:none; }
.oe-movil.oe-ver-msg .oe-volver { display:block; flex:none; }
.oe-volver button { width:100%; text-align:left; font-weight:bold; min-height:26px; }
.oe-list .oe-compacta td { white-space:normal; padding:4px 4px; border-bottom:1px solid #e4e4e4; vertical-align:top; }
.oe-list .oe-compacta td.i { width:20px; padding-top:5px; }
.oe-compacta .l1 { display:flex; gap:6px; }
.oe-compacta .l1 .q { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.oe-compacta .l1 .f { flex:none; color:#555; font-weight:normal; }
.oe-compacta tr.on .l1 .f { color:#fff; }
.oe-compacta .l2 { display:flex; align-items:center; gap:3px; margin-top:1px; }
.oe-compacta .l2 span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.oe-compacta tr.unread .l2 { font-weight:normal; }
.oe-movil .oe-phead { grid-template-columns:auto 1fr; }
.oe-movil .oe-phead .clip, .oe-movil .oe-phead .clip-ph { display:none; }
.oe-movil .oe-phead span { overflow-wrap:anywhere; }
.oe-movil .oe-pbody { padding:8px; font-size:14px; }
.oe-msgwin .oe-pbody { margin:0 4px 4px; }
.oe-compose .cf { display:grid; grid-template-columns:auto 1fr; gap:3px 6px; align-items:center; padding:4px 6px; flex:none; }
.oe-compose .cf label { display:flex; align-items:center; gap:3px; }
.oe-compose textarea { flex:1; margin:0 4px 4px; resize:none; font:13px Arial, sans-serif; }
.progress { height:16px; margin:8px 0; padding:2px; }
.progress div { height:100%; background:repeating-linear-gradient(90deg,#000080 0 8px,transparent 8px 10px); width:0; transition:width 1.4s linear; }

/* ---------- Barra de tareas ---------- */
#taskbar { position:absolute; left:0; right:0; bottom:0; height:28px; background:#c0c0c0; box-shadow:inset 0 1px #dfdfdf, inset 0 2px #fff; display:flex; align-items:center; gap:3px; padding:2px 2px 0; box-sizing:border-box; z-index:9000; }
#start { font-weight:bold; display:flex; align-items:center; gap:3px; min-width:0; height:22px; padding:0 5px; }
#start svg { width:16px; height:16px; }
#start.on { box-shadow:inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }
.sep { width:2px; height:20px; box-shadow:inset 1px 0 #808080, inset -1px 0 #fff; margin:0 2px; }
.ql { display:flex; gap:2px; }
.ql div { width:22px; height:22px; display:flex; align-items:center; justify-content:center; }
.ql div:hover { box-shadow:inset -1px -1px #808080, inset 1px 1px #fff; }
.ql svg { width:16px; height:16px; }
#tasks { flex:1; display:flex; gap:3px; overflow:hidden; }
#tasks button { width:160px; min-width:40px; flex-shrink:1; height:22px; display:flex; align-items:center; gap:4px; justify-content:flex-start; padding:0 4px; overflow:hidden; white-space:nowrap; }
#tasks button svg { width:16px; height:16px; flex:none; }
#tasks button span { overflow:hidden; text-overflow:ellipsis; }
#tasks button.active { font-weight:bold; background:repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0/2px 2px; box-shadow:inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }
#tray { height:22px; display:flex; align-items:center; gap:6px; padding:0 8px; box-shadow:inset -1px -1px #fff, inset 1px 1px #808080; }
#tray svg { width:16px; height:16px; }

/* ---------- Menú Inicio ---------- */
#startmenu { position:absolute; left:2px; bottom:27px; display:none; background:#c0c0c0; box-shadow:inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; padding:3px; z-index:9500; }
#startmenu.show { display:flex; }
.band { width:21px; background:linear-gradient(0deg,#000080,#1084d0); color:#c0c0c0; writing-mode:vertical-rl; transform:rotate(180deg); font:bold 18px Arial; padding:6px 0; }
.band b { color:#fff; }
.items { display:flex; flex-direction:column; min-width:180px; }
.item { display:flex; align-items:center; gap:10px; height:32px; padding:0 20px 0 6px; position:relative; }
.item svg { width:24px; height:24px; }
.item:hover { background:#000080; color:#fff; }
.item .arr { position:absolute; right:6px; }
/* submenú Programas */
.item .sub { display:none; position:absolute; left:100%; top:-3px; padding:3px; min-width:170px; background:#c0c0c0; color:#000; box-shadow:inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; z-index:1; }
.item.has-sub:hover > .sub, .item.has-sub.abierto > .sub { display:block; }
.item.has-sub:hover, .item.has-sub.abierto { background:#000080; color:#fff; }
.sub .item { height:24px; gap:6px; padding:0 14px 0 4px; }
.sub .item svg { width:16px; height:16px; }
.msep { height:2px; margin:3px 2px; box-shadow:inset 0 1px #808080, inset 0 -1px #fff; }

#ctx { position:absolute; display:none; z-index:9600; padding:3px; background:#c0c0c0; box-shadow:inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; min-width:150px; }
#ctx div[data-act] { padding:3px 18px; }
#ctx div[data-act]:hover { background:#000080; color:#fff; }

/* ---------- Apagado / arranque ---------- */
#shutdown { position:fixed; inset:0; background:#000; display:none; align-items:center; justify-content:center; flex-direction:column; color:#f80; font:bold 28px Arial; text-align:center; z-index:99999; cursor:pointer; }
.ap-ico { flex:none; display:block; width:32px; height:32px; } .ap-ico svg { width:32px; height:32px; }
#shutdown small { display:block; color:#888; font-size:12px; margin-top:20px; font-weight:normal; }
#boot { position:fixed; inset:0; background:linear-gradient(#5aa0e0,#1c5fb3); z-index:99998; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; font:bold 42px Arial; transition:opacity .5s; }
#boot sup { font-size:14px; }
#boot small { font-size:14px; margin-top:8px; font-weight:normal; }
#boot .bar { position:absolute; bottom:0; left:0; right:0; height:10px; background:linear-gradient(90deg,#000 0 30%,#1c5fb3 30% 40%,#fff 40% 50%,#1c5fb3 50%) 0 0/300px 10px; animation:bootbar 1.2s linear infinite; }
@keyframes bootbar { to { background-position:300px 0; } }

/* ---------- Editor de contenido ---------- */
.ed > .window-body { display:flex; flex-direction:column; }
.ed [role=tabpanel] { flex:1; display:flex; min-height:0; }
.ed [role=tabpanel] > .window-body { flex:1; display:flex; flex-direction:row; gap:8px; min-height:0; margin:8px; }
.ed .col { display:flex; flex-direction:column; gap:4px; min-height:0; }
.ed .col.l { width:260px; flex:none; }
.ed .col.r { flex:1; overflow:auto; }
.ed select[size] { flex:1; min-height:120px; width:100%; height:auto; background-image:none; padding:2px; }
.ed .row { display:flex; gap:4px; flex-wrap:wrap; align-items:center; }
.ed .row button { min-width:0; padding:0 8px; }
.ed .frm { display:grid; grid-template-columns:90px 1fr; gap:4px 6px; align-items:center; }
.ed .frm > label { text-align:right; }
.ed .frm textarea { min-height:130px; resize:vertical; font:12px Arial, sans-serif; }
.ed .frm input[type=text], .ed .frm select, .ed .frm input[type=datetime-local] { width:100%; box-sizing:border-box; }
.ed .hint { color:#404040; grid-column:2; font-size:10px; }
.ed .pill { background:#ffffe1; border:1px solid #000; padding:6px 8px; }
.ed .ok { color:#008000; }

/* Mensajes de bienvenida al arrancar: letra más grande */
.dlg-grande .title-bar-text { font-size:13px; }
.dlg-grande .window-body { font-size:16px; line-height:1.35; }
.dlg-grande .window-body > div:first-child { gap:16px !important; padding:10px 8px !important; }
.dlg-grande .window-body > div:first-child > div:first-child { font-size:40px !important; }
.dlg-grande .window-body button { font-size:14px; min-width:96px; min-height:30px; }

/* Barra de conversación en Outlook (respondido / responde a) */
.oe-info { flex:none; background:#ffffe1; border-bottom:1px solid #808080; padding:3px 6px; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.oe-info svg { width:16px; height:16px; }
.oe-info a { color:#0000ee; }

.oe-phead .clip, .oe-phead .clip-ph { grid-row:1 / span 5; grid-column:3; }

/* textos largos en los avisos de arranque: con scroll */
.dlg-grande .dlg-msg { overflow:auto; padding-right:8px; }

/* Internet Explorer con la propia página adentro */
.ie-tools { display:flex; gap:2px; padding:2px 4px; flex:none; border-bottom:1px solid #808080; box-shadow:0 1px #fff; }
.ie-tools button { min-width:0; padding:0 8px; display:inline-flex; align-items:center; gap:4px; }
.ie-tools svg { width:16px; height:16px; }
.ie-marco { flex:1; min-height:0; margin:0 4px 4px; background:#fff; display:flex; }
.ie-frame { flex:1; width:100%; height:100%; border:0; display:block; background:#008080; }
.ie-err { padding:16px 22px; font:13px/1.45 Arial, sans-serif; color:#000; overflow:auto; user-select:text; }
.ie-err h2 { font:bold 18px Arial; margin:0 0 10px; }
.ie-err ul { margin:4px 0 10px; padding-left:22px; }
.ie-err hr { border:0; border-top:1px solid #ccc; }
.ie-err-pie { color:#555; font-size:12px; }
body.arrastrando iframe { pointer-events:none; }
.ie-frame.ie-doc { background:#fff; }
