/* ===== Macabi OS ===== */
:root {
  --navy: #1c2e6b;
  --deep: #0b1230;
  --accent: #22d3ee;
  --glass: rgba(250, 250, 253, .72);
  --win-bg: rgba(255, 255, 255, .92);
  --ink: #1a1d2b;
  --muted: #5c6377;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--sans); color: var(--ink);
  background:
    radial-gradient(70% 90% at 20% 10%, #2b46c4 0%, transparent 60%),
    radial-gradient(60% 80% at 85% 85%, #123a6b 0%, transparent 60%),
    radial-gradient(40% 50% at 70% 20%, rgba(34,211,238,.25) 0%, transparent 70%),
    linear-gradient(160deg, #101c45 0%, #0b1230 100%);
  user-select: none;
}
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== MENU BAR ===== */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px;
  background: rgba(16, 22, 54, .55);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  color: #eef1ff; font-size: 13px;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 18px; }
.mb-apple { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.mb-app { font-weight: 700; }
.mb-item { opacity: .85; cursor: default; }
.mb-item:hover { opacity: 1; }
.mb-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mb-clock { font-variant-numeric: tabular-nums; opacity: .95; }
@media (max-width: 720px) { .mb-item { display: none; } }

/* ===== NOTCH ===== */
.notch {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 501;
  background: #000; color: #9aa5cc;
  height: 30px; padding: 0 16px; border-radius: 0 0 12px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; white-space: nowrap;
}
.notch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 900px) { .notch-txt { display: none; } .notch { padding: 0 22px; } }

/* ===== DESKTOP ===== */
.desktop { position: fixed; inset: 30px 0 0 0; overflow: hidden; }
.wall-star {
  position: absolute; inset: 0; pointer-events: none;
  background: url('../assets/logo-star.png') center 42% / min(46vmin, 420px) no-repeat;
  opacity: .1; filter: brightness(4) saturate(0);
}

/* iconos escritorio */
.icons {
  position: absolute; top: 22px; right: 18px;
  display: grid; grid-template-columns: repeat(2, 96px); gap: 10px 8px;
  z-index: 5;
}
.dicon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px; border-radius: 10px;
  transition: background .15s;
}
.dicon:hover { background: rgba(255,255,255,.12); }
.dicon:active { background: rgba(34,211,238,.25); }
.dicon-img {
  width: 62px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border-radius: 12px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  overflow: hidden; font-size: 26px;
}
.dicon-img img { max-width: 86%; max-height: 82%; object-fit: contain; }
.dicon label {
  font-size: 11.5px; font-weight: 600; color: #fff; cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.7); text-align: center; line-height: 1.2;
}

/* widgets */
.widget {
  position: absolute; z-index: 4;
  background: rgba(16, 22, 54, .5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 14px 18px;
  color: #fff; box-shadow: 0 14px 34px -14px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
}
.w-date { top: 26px; left: 22px; }
.wd-day { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #ff6b64; }
.wd-num { font-size: 40px; font-weight: 700; line-height: 1; }
.wd-sub { font-size: 11px; color: #aab4da; margin-top: 4px; }
.w-weather { top: 26px; left: 190px; }
.ww-city { font-size: 12px; font-weight: 600; }
.ww-temp { font-size: 34px; font-weight: 700; line-height: 1.1; }
.ww-cond { font-size: 11px; color: #aab4da; }

/* sticky notes */
.sticky {
  position: absolute; left: 26px; bottom: 120px; z-index: 4;
  width: 168px; padding: 14px 16px;
  background: #fff3ab; color: #4a3f12;
  font-size: 13px; line-height: 1.45;
  border-radius: 3px; transform: rotate(-3deg);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.45);
}
.sticky span { font-size: 11px; opacity: .75; }
.sticky-2 {
  left: 210px; bottom: 100px; width: 140px;
  background: #cdeffd; color: #113a4d; transform: rotate(2.5deg);
}

/* ===== VENTANAS ===== */
.win {
  position: absolute; left: var(--x); top: var(--y); z-index: 10;
  width: min(420px, calc(100vw - 24px));
  background: var(--win-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
  display: none;
  animation: winIn .28s cubic-bezier(.2,.9,.3,1.15);
}
.win.open { display: block; }
.win.front { z-index: 60; }
@keyframes winIn { from { opacity: 0; transform: scale(.92) translateY(12px); } }
.win-video { width: min(560px, calc(100vw - 24px)); }
.win-bar {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px;
  background: linear-gradient(#f3f4f8, #e8eaf2);
  border-bottom: 1px solid rgba(0,0,0,.08);
  cursor: grab;
}
.win-bar:active { cursor: grabbing; }
.tl { display: flex; gap: 7px; }
.tl i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.c-r { background: #ff5f57; } .c-y { background: #febc2e; } .c-g { background: #28c840; }
.tl i:hover { filter: brightness(.85); }
.win-title { font-size: 12.5px; font-weight: 600; color: #454a5c; flex: 1; text-align: center; margin-right: 52px; }
.win-body { padding: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink); display: flex; flex-direction: column; gap: 12px; max-height: 62vh; overflow-y: auto; }
.wb-flush { padding: 0; gap: 0; }
.wb-pad { padding: 10px 16px 14px; }
.wb-logo { height: 44px; width: auto; object-fit: contain; align-self: flex-start; }
.wb-logo-tall { height: 64px; }
.wb-note { font-size: 11.5px; color: var(--muted); }
.wb-mono p { margin-bottom: 4px; }
.wbtn {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  transition: background .2s;
}
.wbtn:hover { background: #2b46c4; }
.wbtn-line { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.wbtn-line:hover { background: var(--navy); color: #fff; }
.pay-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: #f4f6fb; border-radius: 10px; }
.pay-row b { font-size: 22px; color: var(--navy); }
.pay-row span { flex: 1; font-size: 12px; color: var(--muted); min-width: 120px; }
.wrow {
  display: block; padding: 10px 12px; background: #f4f6fb; border-radius: 10px;
  font-weight: 600; font-size: 13px; transition: background .2s;
}
.wrow:hover { background: #e8ecf8; }
.wb-video { aspect-ratio: 16/9; background: #000; }
.wb-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.kol-card { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); }
.kol-card img { width: 100%; max-height: 260px; object-fit: cover; object-position: top; display: block; }
.kol-card span { display: block; padding: 10px 12px; font-size: 12.5px; font-weight: 600; background: #f4f6fb; }
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.arch-grid a { padding: 10px; background: #f4f6fb; border-radius: 10px; font-weight: 600; font-size: 13px; text-align: center; transition: background .2s; }
.arch-grid a:hover { background: #e8ecf8; }
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v-grid img {
  width: 100%; height: 52px; object-fit: contain;
  background: #f4f6fb; border-radius: 10px; padding: 6px;
  transition: transform .2s;
}
.v-grid img:hover { transform: scale(1.08); }

/* ===== DOCK ===== */
.dock {
  position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 400;
  display: flex; align-items: flex-end; gap: 10px;
  padding: 8px 14px;
  background: rgba(245, 246, 252, .35);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.5);
  max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock button, .dock a {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); border-radius: 14px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.35);
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.dock button:hover, .dock a:hover { transform: translateY(-10px) scale(1.22); }
.dock img { max-width: 84%; max-height: 78%; object-fit: contain; }
.dk { font-size: 26px; }
.dock-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.4); margin: 4px 2px; flex-shrink: 0; }

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  .icons { grid-template-columns: repeat(2, 86px); right: 8px; top: 120px; }
  .w-weather { left: auto; right: auto; top: 26px; left: 178px; display: none; }
  .sticky { display: none; }
  .sticky-2 { display: none; }
  .win { left: 8px !important; top: 60px !important; width: calc(100vw - 16px); }
  .win-body { max-height: 56vh; }
  .dock button, .dock a { width: 44px; height: 44px; }
}

/* ================= OS V2 ================= */

/* boot */
.boot {
  position: fixed; inset: 0; z-index: 2000;
  background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
  transition: opacity .7s;
}
.boot img { width: 90px; filter: brightness(0) invert(1); animation: bootPulse 2s ease infinite; }
@keyframes bootPulse { 50% { opacity: .7; } }
.boot-bar { width: 180px; height: 5px; border-radius: 5px; background: #2a2a2a; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 5px; animation: bootFill 2s ease forwards; }
@keyframes bootFill { to { width: 100%; } }
.boot-done { opacity: 0; pointer-events: none; }

/* menubar botones */
.mb-btn { display: flex; align-items: center; padding: 2px 6px; border-radius: 5px; color: inherit; }
.mb-btn:hover, .mb-btn.active { background: rgba(255,255,255,.18); }
.mb-item { padding: 3px 8px; border-radius: 5px; }
.mb-item:hover, .mb-item.active { background: rgba(255,255,255,.18); opacity: 1; }
.mb-batt { font-size: 12px; opacity: .9; }

/* dropdowns */
.dropdown {
  position: fixed; top: 32px; z-index: 900;
  min-width: 210px; padding: 5px;
  background: rgba(245, 246, 252, .85);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.4);
  animation: ddIn .12s ease;
  color: #1a1d2b;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } }
.dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 6px 12px; border-radius: 6px; font-size: 13px;
}
.dropdown button:hover { background: #2b46c4; color: #fff; }
.dropdown button.dim { opacity: .4; }
.dropdown button.dim:hover { background: none; color: inherit; }
.dropdown hr { border: 0; border-top: 1px solid rgba(0,0,0,.12); margin: 5px 10px; }
.dropdown.ctx { top: auto; }

/* ventanas: estados */
.win.maximized {
  left: 8px !important; top: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 30px - 90px) !important;
  transform: none !important;
  display: flex; flex-direction: column;
}
.win.open { display: flex; flex-direction: column; }
.win-body { flex: 1; }
.win.maximized .win-body, .win.resized .win-body { max-height: none; }
.win.minimizing { animation: genie .32s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes genie {
  to { transform: translateY(60vh) scale(.06); opacity: 0; }
}
.win.minimized { display: none; }
.win-resize {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px;
  cursor: nwse-resize; z-index: 5;
  background: linear-gradient(135deg, transparent 55%, rgba(0,0,0,.18) 56%, transparent 62%, rgba(0,0,0,.18) 70%, transparent 76%);
}
.shakeW { animation: wshake .4s; }
@keyframes wshake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* dock: puntos de app abierta, magnify por JS */
.dock button, .dock a { position: relative; transition: transform .12s ease-out; }
.dock button:hover, .dock a:hover { transform: none; }
.dock-dot {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  opacity: 0; transition: opacity .2s;
}
.running .dock-dot { opacity: 1; }

/* iconos seleccion */
.dicon.sel { background: rgba(34,211,238,.3); }
.dicon.sel label { background: #2b46c4; border-radius: 4px; padding: 0 5px; }

/* fondos alternativos */
body.wall-2 {
  background:
    radial-gradient(70% 90% at 80% 15%, #b0641f 0%, transparent 60%),
    radial-gradient(60% 70% at 15% 80%, #6d3fb4 0%, transparent 65%),
    linear-gradient(160deg, #2a1245 0%, #0b0b20 100%);
}
body.wall-3 {
  background:
    radial-gradient(70% 90% at 25% 20%, #0f7f6a 0%, transparent 60%),
    radial-gradient(55% 70% at 85% 80%, #123a6b 0%, transparent 65%),
    linear-gradient(160deg, #06251f 0%, #081226 100%);
}
body.wall-4 {
  background:
    radial-gradient(80% 100% at 50% 110%, #c4364f 0%, transparent 60%),
    radial-gradient(50% 60% at 80% 10%, #f2a23c33 0%, transparent 70%),
    linear-gradient(160deg, #1c0f2e 0%, #0b0b1a 100%);
}

/* centro de control */
.cc {
  position: fixed; top: 36px; right: 12px; z-index: 900;
  width: 300px; padding: 12px;
  background: rgba(245, 246, 252, .8);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(0,0,0,.1); border-radius: 16px;
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 10px;
  animation: ddIn .15s ease; color: #1a1d2b;
}
.cc-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-t {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 12px;
  background: rgba(0,0,0,.06); font-size: 17px; text-align: left;
  transition: background .2s;
}
.cc-t span { font-size: 10.5px; line-height: 1.25; color: #444; }
.cc-t b { font-size: 11px; }
.cc-t.on { background: #2b46c4; }
.cc-t.on span, .cc-t.on b { color: #fff; }
.cc-slider {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.06); border-radius: 12px; padding: 8px 12px;
}
.cc-slider input { flex: 1; accent-color: #2b46c4; }

/* spotlight */
.spot-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(6, 10, 28, .35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; padding-top: 16vh;
}
.spot {
  width: min(560px, 92vw); height: fit-content;
  background: rgba(245, 246, 252, .9);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0,0,0,.12); border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  overflow: hidden; animation: ddIn .15s ease;
}
.spot-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 20px; }
.spot-in input {
  flex: 1; border: 0; outline: 0; background: none;
  font-family: var(--sans); font-size: 20px; color: #1a1d2b;
}
.spot-list { border-top: 1px solid rgba(0,0,0,.1); padding: 6px; max-height: 300px; overflow-y: auto; }
.spot-list button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #1a1d2b;
}
.spot-list button:hover, .spot-list button.hit { background: #2b46c4; color: #fff; }

/* widget musica */
.w-music {
  right: 18px; bottom: 96px; left: auto; top: auto;
  flex-direction: row; align-items: center; gap: 12px; width: 250px;
}
.wm-art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #fff; flex-shrink: 0; }
.wm-art img { width: 100%; height: 100%; object-fit: contain; }
.wm-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wm-info b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-info span { font-size: 10.5px; color: #aab4da; }
.wm-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); margin-top: 3px; overflow: hidden; }
.wm-bar i { display: block; height: 100%; width: 12%; background: var(--accent); border-radius: 3px; transition: width .4s linear; }
.wm-play { font-size: 15px; color: #fff; flex-shrink: 0; }

/* about */
.about-body { align-items: center; text-align: center; }
.about-logo { width: 84px; }
.about-name { font-size: 20px; }
.about-ver { font-size: 12px; color: var(--muted); }
.about-specs { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.about-specs div { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 10px; background: #f4f6fb; border-radius: 8px; }
.about-specs span { color: var(--muted); }
.trash-empty { text-align: center; font-size: 15px; line-height: 1.7; padding: 8px 0; }
.trash-empty::first-line { font-size: 40px; }

@media (max-width: 720px) {
  .w-music { display: none; }
  .win.maximized { height: calc(100vh - 30px - 80px) !important; }
}

/* ================= FONTS + ICONOS V3 ================= */
body, .win-body, .dropdown, .cc, .spot {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
}
.menubar { font-size: 13.5px; font-weight: 500; }
.mb-app { font-weight: 700; }
.win-title { font-weight: 600; }

/* iconos escritorio mas grandes y legibles */
.icons { grid-template-columns: repeat(2, 118px); gap: 14px 10px; right: 22px; }
.dicon { gap: 7px; padding: 9px 6px; border-radius: 12px; }
.dicon-img {
  width: 80px; height: 66px; border-radius: 15px;
  box-shadow: 0 8px 20px -7px rgba(0,0,0,.55);
}
.dicon-img img { max-width: 88%; max-height: 84%; }
.dicon label { font-size: 12.5px; text-shadow: 0 1px 4px rgba(0,0,0,.85); }

/* icono documento estilo mac */
.dicon-doc { background: transparent !important; box-shadow: none !important; }
.doc-svg { width: 54px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.dk-doc { display: flex; align-items: center; justify-content: center; }
.dk-doc .doc-svg { width: 30px; height: 36px; filter: none; }

@media (max-width: 720px) {
  .icons { grid-template-columns: repeat(2, 96px); }
  .dicon-img { width: 66px; height: 56px; }
}

/* ================= VENTANAS MAS GRANDES + INFO COMPLETA ================= */
.win { width: min(520px, calc(100vw - 24px)); }
.win-video { width: min(680px, calc(100vw - 24px)); }
.win-body { max-height: 72vh; font-size: 14px; padding: 20px; }
.v-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.v-card { display: flex; align-items: center; gap: 10px; background: #f4f6fb; border-radius: 12px; padding: 8px 10px; margin: 0; }
.v-card img { width: 74px; height: 46px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 3px; }
.v-card figcaption { display: flex; flex-direction: column; min-width: 0; }
.v-card b { font-size: 12.5px; }
.v-card span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.price-list { display: flex; flex-wrap: wrap; gap: 8px; }
.price-list span { background: #f4f6fb; border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.price-list b { color: var(--navy); }
.wfold { background: #f4f6fb; border-radius: 10px; }
.wfold summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.wfold-body { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 12px; font-size: 12.5px; }
.wfold-body b { color: var(--navy); }
@media (max-width: 720px) { .v-grid { grid-template-columns: 1fr; } }

/* ================= FINDER REAL ================= */
.finder { padding: 0; gap: 0; }
.f-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fafbfe; font-size: 12.5px; color: var(--muted);
}
.f-nav { font-size: 16px; color: #9aa3ba; letter-spacing: 4px; }
.f-path { font-weight: 600; }
.fgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 6px; padding: 14px;
}
.fitem {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 10px;
  font: inherit; text-align: center;
  transition: background .15s;
}
.fitem:hover { background: rgba(43,70,196,.08); }
.fitem:active { background: rgba(43,70,196,.18); }
.f-ic { width: 58px; height: 46px; }
.f-doc { width: 44px; height: 52px; }
.fitem span { font-size: 11.5px; font-weight: 500; color: var(--ink); line-height: 1.25; word-break: break-word; }
.f-note { padding: 0 16px 12px; }
.dicon-hd { background: transparent !important; box-shadow: none !important; }
.dicon-hd .f-ic { width: 64px; height: 50px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.dk-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7) !important; }
.dk-wa { background: #25d366 !important; }
.dk-ig svg, .dk-wa svg { width: 26px; height: 26px; }

/* vaadot con descripciones */
.v-list { display: flex; flex-direction: column; gap: 8px; }
.v-det { background: #f4f6fb; border-radius: 12px; }
.v-det summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; }
.v-det summary::-webkit-details-marker { display: none; }
.v-det summary img { width: 82px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.vc-t { display: flex; flex-direction: column; min-width: 0; }
.vc-t b { font-size: 13px; }
.vc-t i { font-style: normal; font-size: 11px; color: var(--muted); }
.v-det p { padding: 0 14px 8px; font-size: 12.5px; color: #333; }
.vc-mem { display: block; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
.vc-mem b { color: var(--navy); }
/* merch fotos */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-grid figure { margin: 0; }
.m-grid img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; border-radius: 10px; }
.m-grid figcaption { font-size: 11.5px; margin-top: 4px; text-align: center; }
.m-grid b { color: var(--navy); }
.onair-txt { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 720px) { .m-grid { grid-template-columns: repeat(2, 1fr); } }

/* wallpaper: magen david limpio */
.wall-star {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g fill="none" stroke="white" stroke-width="6" stroke-linejoin="round"><path d="M100 18 L171 141 L29 141 Z"/><path d="M100 182 L29 59 L171 59 Z"/></g></svg>') center 44% / min(44vmin, 400px) no-repeat;
  opacity: .07; filter: none;
}

/* ================= LOGIN / LOCK SCREEN ================= */
.login {
  position: fixed; inset: 0; z-index: 1900;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  padding: 9vh 0 5vh;
  transition: opacity .6s, transform .6s;
}
.login-blur {
  position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(40px) brightness(.75) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) brightness(.75) saturate(1.3);
}
.login-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.login-clock { text-align: center; color: #fff; }
.login-clock span {
  display: block; font-size: clamp(15px, 2vw, 19px); font-weight: 600;
  color: rgba(255,255,255,.9); text-transform: lowercase;
}
.login-clock b {
  font-size: clamp(64px, 12vw, 118px); font-weight: 200;
  letter-spacing: -0.02em; line-height: 1.05;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.login-user { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-avatar {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: contain; background: #fff;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}
.login-name { color: #fff; font-size: 19px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.login-form { position: relative; }
.login-form input {
  width: 210px; height: 34px; border-radius: 17px;
  border: 0; outline: 0;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; text-align: center; font-size: 13.5px;
  font-family: inherit;
  transition: background .2s, width .25s;
}
.login-form input::placeholder { color: rgba(255,255,255,.75); }
.login-form input:focus { background: rgba(255,255,255,.38); width: 230px; }
.login-form button {
  position: absolute; right: 4px; top: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.45); color: #1a1d2b;
  font-size: 14px; line-height: 1;
  opacity: 0; transition: opacity .2s;
}
.login-form input:not(:placeholder-shown) + button { opacity: 1; }
.login-hint { color: rgba(255,255,255,.65); font-size: 12px; min-height: 15px; }
.login-shake { animation: shakeL .4s; }
@keyframes shakeL { 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
.login-bottom { display: flex; gap: 46px; color: rgba(255,255,255,.85); font-size: 12px; }
.login-bottom span { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: default; }
.login-bottom i {
  font-style: normal; font-size: 19px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ================= ICONOS/FONTS MAS REALISTAS ================= */
.menubar { font-size: 13px; letter-spacing: -0.01em; }
.mb-ic { width: 15px; height: 15px; stroke-width: 1.5; }
.mb-left { gap: 14px; }
.mb-right { gap: 14px; }
.mb-batt { font-size: 11.5px; }
.dicon label { font-size: 12px; font-weight: 500; letter-spacing: -0.01em; }
.fitem span { font-size: 11px; letter-spacing: -0.01em; }
.win-title { font-size: 13px; letter-spacing: -0.01em; }

/* ================= REALISMO V4 ================= */
/* wallpaper real */
body, body.wall-2, body.wall-3, body.wall-4 {
  background: url('../assets/wallpaper.jpg') center / cover no-repeat #0b1230;
}
body.wall-2 { filter: none; }
.wall-star { display: none; }

/* menubar estrella */
.mb-star { width: 16px; height: 16px; color: #fff; }

/* iconos escritorio = folders reales */
.dicon-folder { background: transparent !important; box-shadow: none !important; position: relative; overflow: visible !important; }
.folder-svg { width: 72px; height: 56px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.35)); }
.folder-badge {
  position: absolute; right: 2px; bottom: 6px;
  max-width: 46px; max-height: 24px; object-fit: contain;
  background: rgba(255,255,255,.95); border-radius: 5px; padding: 2px 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.dicon label {
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5);
}
.dicon.sel .dicon-folder, .dicon.sel .dicon-doc, .dicon.sel .dicon-hd { background: transparent !important; }

/* widgets neutrales estilo sistema */
.widget {
  background: rgba(30, 30, 32, .55);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
}
.wd-day { color: #ff453a; }
.wd-sub, .ww-cond, .wm-info span { color: rgba(235,235,245,.6); }

/* dock: tiles tipo app icon */
.dock {
  background: rgba(120, 120, 128, .28);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 10px; gap: 8px;
}
.dock button, .dock a {
  width: 54px; height: 54px; border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #e9eaf2);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.8), 0 3px 8px -2px rgba(0,0,0,.4);
}
.dock img { max-width: 82%; max-height: 74%; }
.dock-sep { background: rgba(255,255,255,.28); }

/* papelera realista */
.dock [data-win="trash"] { background: linear-gradient(180deg, #f2f2f7, #d8d9e0); }
.dock [data-win="trash"] .dk { font-size: 30px; filter: grayscale(.2); }

/* notch mas fina */
.notch { height: 28px; font-size: 10.5px; }

/* menubar translucida oscura neutral */
.menubar {
  background: rgba(20, 20, 24, .38);
  height: 28px; font-size: 12.5px;
}
.desktop { inset: 28px 0 0 0; }
.dropdown { top: 30px; }
.login-clock b { font-weight: 250; }

/* fondos alternos aun funcionan */
body.wall-2 { background-position: 20% 80%; background-size: 180%; }
body.wall-3 {
  background:
    radial-gradient(70% 90% at 20% 10%, #2b46c4 0%, transparent 60%),
    radial-gradient(60% 80% at 85% 85%, #123a6b 0%, transparent 60%),
    linear-gradient(160deg, #101c45 0%, #0b1230 100%);
}
body.wall-4 { background-position: 78% 30%; background-size: 240%; }

/* ================= WIDGETS + ICONOS estilo sistema real ================= */
.folder-svg { width: 74px; height: 58px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.f-ic { filter: none; }
.widget { padding: 16px 18px; border-radius: 22px; background: rgba(35, 35, 38, .62); }
.wd-day { font-size: 13px; letter-spacing: .04em; font-weight: 700; }
.wd-num { font-size: 46px; font-weight: 300; }
.wd-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: rgba(235,235,245,.55); font-weight: 600; }
.ww-city { font-size: 17px; font-weight: 600; }
.ww-temp { font-size: 44px; font-weight: 300; }
.ww-cond { font-size: 12.5px; }
.dicon label { font-size: 12.5px; }

/* widgets apilados sin solaparse */
.w-date { top: 24px; left: 22px; min-width: 230px; }
.w-weather { top: 196px; left: 22px; min-width: 230px; }
.wd-sub { white-space: nowrap; }
@media (max-width: 720px) { .w-date { min-width: 0; } }

/* seccion archivo dentro de finder */
.f-sec {
  padding: 10px 16px 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #9aa3ba;
  border-top: 1px solid rgba(0,0,0,.07); margin-top: 6px;
}
.f-arch .fitem { opacity: .62; }
.f-arch .fitem:hover { opacity: 1; }
.f-arch .f-doc { width: 36px; height: 44px; }
.f-arch .fitem span { font-size: 10.5px; }

/* ================= ICON SYSTEM PRO ================= */
.t-blue { --g1:#3b5bdb; --g2:#1c2e6b; }
.t-royal { --g1:#4c63d8; --g2:#2338a8; }
.t-cyan { --g1:#26c6e8; --g2:#2b46c4; }
.t-deep { --g1:#25366f; --g2:#0e1738; }
.t-sky { --g1:#5a79ff; --g2:#2b46c4; }
.dock button.tile { background: linear-gradient(160deg, var(--g1), var(--g2)); }
.gly { width: 50%; height: 50%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.folder-badge.bglyph {
  width: 26px; height: 26px; padding: 0;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  right: 6px; bottom: 8px;
}
.folder-badge.bglyph .gly { width: 62%; height: 62%; stroke-width: 2.2; }

/* calendario icono */
.cal-tile { background: linear-gradient(160deg, var(--g1), var(--g2)) !important; }
.cal-tile .gly { width: 52%; height: 52%; }
.cal-mini {
  width: 52px; height: 44px; border-radius: 10px;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  display: flex; align-items: center; justify-content: center;
}
.cal-mini .gly { width: 55%; height: 55%; }

/* badges con logo real */
.folder-badge.blogo {
  width: 46px; height: 26px; padding: 2px 4px;
  background: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  right: 4px; bottom: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.folder-badge.blogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.folder-badge.blogo-seal {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  right: 5px; bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.folder-badge.blogo-seal img { width: 100%; height: 100%; object-fit: contain; }
