    /* --- CONTENEDOR DE VENTANA (EL NUEVO DIALOG) --- */

    .app-window {
      position: absolute;
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(15px);
      /* Efecto cristal de Win11 */
      -webkit-backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 10px;
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-width: 200px;
      min-height: 150px;
      transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s, filter 0.3s;
      animation: winOpen 0.3s ease-out;
    }

    @keyframes winOpen {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    @keyframes winClose {
      from {
        opacity: 1;
        transform: scale(1) translateY(0);
      }

      to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
      }
    }

    .app-window.closing {
      animation: winClose 0.2s ease-in forwards;
      pointer-events: none;
      /* Evita interacciones mientras se cierra */
    }

    .app-window.active {
      box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.5);
      filter: brightness(1);
    }

    /* Ventana Activa: Más brillo y sombra profunda */
    /* Ventana Inactiva: Se oscurece sutilmente */
    .app-window:not(.active) {
      filter: brightness(0.9) saturate(0.8);
      opacity: 0.95;
    }

    /* --- BARRA DE TÍTULO --- */
    .window-header {
      height: 40px;
      background: rgba(243, 243, 243, 0.5);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 12px;
      cursor: default;
      user-select: none;
      /* Evita seleccionar texto al arrastrar */
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .window-title {
      font-family: 'Segoe UI', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 500;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* --- CONTROLES (MIN/CLOSE) --- */
    .window-controls {
      display: flex;
      gap: 4px;
    }

    .win-btn {
      width: 32px;
      height: 32px;
      border: none;
      background: transparent;
      border-radius: 4px;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      cursor: pointer;
      color: #555;
    }

    .win-btn:hover {
      background: rgba(0, 0, 0, 0.1);
    }

    .win-btn.close:hover {
      background: #e81123;
      color: white;
    }

    /* --- CUERPO DE LA APP --- */
    .window-content {
      flex: 1;
      /* Ocupa todo el espacio restante */
      background: white;
      overflow: auto;
      position: relative;
      box-sizing: border-box;
    }

    /* --- TASKBAR & ICONOS --- */
    .task-icon .indicator {
      position: absolute;
      bottom: 2px;
      width: 6px;
      height: 3px;
      background: #0067c0;
      border-radius: 4px;
      transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
      opacity: 1;
    }

    .task-icon.active .indicator {
      opacity: 1;
      width: 16px;
    }

    .task-icon:hover img {
      transform: scale(1.1);
    }

    .task-icon {
      width: 40px;
      height: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
      border-radius: 4px;
      position: relative;
    }

    .task-icon:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateY(-2px);
    }

    .task-icon img {
      width: 24px;
      height: 24px;
      object-fit: contain;
      display: block;
      transition: transform 0.2s;
    }

    :root {
      --glass-bg: rgba(255, 255, 255, 0.65);
      --glass-stroke: rgba(255, 255, 255, 0.45);
      --shadow: 0 20px 50px rgba(0, 0, 0, .25);
      --taskbar-h: 56px;
      --radius-outer: 18px;
      --radius-inner: 14px;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
    }

    body {
      margin: 0;
      font-family: Segoe UI, Helvetica, Arial, sans-serif;
      background: linear-gradient(120deg, #e3f0ff, #f8faff 40%, #f2f6ff);
      overflow: hidden;
      /* simula escritorio */
    }

    ::-webkit-scrollbar {
      width: 2px;
      background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
      background: #2b2b2b;
    }

    /* ——— Desktop wallpaper placeholder ——— */
    .desktop {
      position: fixed;
      inset: 0;
      padding-bottom: var(--taskbar-h);
      display: block;
      color: #3a4b64;
      user-select: none;
      background-image: url("../images/background.jpg");
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      z-index: 5;
    }

    #body-task {
      margin: 0px 20px 20px 20px;
      max-height: 230px;
      overflow-y: auto;
      color: white;
    }

    /* ——— Taskbar FlyOS Windows 11 Pure Light ——— */

    .taskbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: 48px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 12px;
      background: rgb(216, 222, 245);
      backdrop-filter: blur(30px) saturate(200%);
      -webkit-backdrop-filter: blur(30px) saturate(200%);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.02);
      z-index: 10000;
    }


    .center-cluster {
      grid-column: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      height: 100%;
    }

    #taskbar-apps {
      display: flex !important;
      align-items: center;
      gap: 2px;
      height: 100%;
    }

    .task-btn,
    .taskbar-app-icon {
      position: relative;
      height: 40px;
      min-width: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: all 0.1s ease;
      background: transparent;
      border: none;
    }

    .task-btn:hover,
    .taskbar-app-icon:hover {
      background: rgb(230, 234, 247);
    }

    .task-btn.active::after,
    .taskbar-app-icon.active::after {
      content: '';
      position: absolute;
      bottom: 2px;
      width: 6px;
      height: 3px;
      background: #5a5a5a;
      /* Gris neutro profesional */
      border-radius: 4px;
    }

    .taskbar-info {
      grid-column: 3;
      justify-self: end;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      padding: 4px 8px;
      border-radius: 4px;
      transition: background 0.2s;
      cursor: default;
    }

    .taskbar-info:hover {
      background: rgba(0, 0, 0, 0.04);
    }

    #clock {
      font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
      font-weight: 400;
      /* Ni muy fino ni muy gordo */
      font-size: 12px;
      color: #1a1a1a;
      /* Casi negro */
      line-height: 1;
    }

    #date {
      font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
      font-weight: 400;
      font-size: 12px;
      color: #1a1a1a;
      line-height: 1.4;
    }

    .task-btn img,
    .taskbar-app-icon img {
      width: 24px;
      height: 24px;
      object-fit: contain;
      filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    }

    /* ——— Start Menu ——— */
    #startMenu {
      display: none;
      position: fixed;
      margin: 0;
      transform: none;
      display: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
      width: 430px;
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(25px) saturate(180%);
      -webkit-backdrop-filter: blur(25px) saturate(180%);
      border: 1px solid rgba(100, 100, 100, 0.678);
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 1px rgba(0, 0, 0, 0.1);

      padding: 20px;
      z-index: 9999;
      outline: 1px solid rgba(255, 255, 255, 0.2);
      outline-offset: -1px;
    }

    #startMenu.open {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    #startMenu {
      transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .2, 1.1);
    }

    #startMenu.open {
      display: block;
      animation: menuAppear 0.2s ease-out;
    }

    @keyframes menuAppear {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .search {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, .7);
      border: 1px solid rgba(0, 0, 0, .08);
      border-radius: 12px;
      padding: 10px 12px;
      margin: 6px 2px 10px;
    }

    .search input {
      flex: 1;
      border: 0;
      outline: 0;
      background: transparent;
      font-size: 14px;
    }

    .section-title {
      font-weight: 600;
      color: #2c3e50;
      margin: 10px 4px 8px;
      font-size: 13px;
    }

    .apps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 10px;
      padding: 10px;
      justify-items: center;
    }

    .app {
      width: 70px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px;
      border-radius: 6px;
      cursor: pointer;
      transition: all .2s ease;
    }

    .app:hover {
      background: rgba(245, 245, 245, 0.897);
      transform: translateY(-2px);
    }

    .app .lbl {
      font-size: 11px;
      margin-top: 5px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
    }

    .recommended {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 12px;
    }

    .rec-card {
      display: grid;
      grid-template-columns: 36px 1fr auto;
      gap: 10px;
      align-items: center;
      background: rgba(255, 255, 255, .55);
      border: 1px solid rgba(0, 0, 0, .06);
      border-radius: var(--radius-inner);
      padding: 10px;
    }

    .rec-card .ico {
      font-size: 18px;
    }

    .rec-card .title {
      font-size: 13px;
      font-weight: 600;
      color: #2c3e50;
    }

    .rec-card .meta {
      font-size: 11px;
      color: #667;
    }

    .menu-footer {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      margin-top: 12px;
      padding: 10px 6px 2px;
    }

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #cbe2ff;
      display: grid;
      place-items: center;
      font-weight: 700;
      color: #0b6bcb;
      border: 1px solid rgba(0, 0, 0, .06);
    }

    .user span {
      display: block;
      line-height: 1.1;
    }

    .user .name {
      font-weight: 700;
      font-size: 13px;
      color: #cfcfcf;
    }

    .user .status {
      font-size: 11px;
      color: rgb(133, 133, 219);
    }

    .power {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      background: rgba(255, 255, 255, .6);
      border: 1px solid rgba(0, 0, 0, .06);
      border-radius: 12px;
      cursor: pointer;
      transition: .15s ease;
    }

    .power:hover {
      background: rgba(0, 0, 0, .06);
      color: #ccc;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    @media (max-width: 700px) {
      .apps {
        grid-template-columns: repeat(4, 1fr);
      }

      .recommended {
        grid-template-columns: 1fr;
      }
    }

    #apps,
    table.apps {
      border: none;
      border-collapse: collapse;
      width: 300px;
      height: 325px;
    }

    #apps td,
    table.apps td,
    #apps th,
    table.apps th {
      border: none;
      text-align: center;
      /* Centrado horizontal para texto */
      vertical-align: middle;
      padding: 20px;
    }

    #apps td div {
      font-size: 12px;
      cursor: pointer;
      border-radius: 5px;
      padding: 5px;
      color: #c0c0c0;
    }

    #apps td div:hover {
      background-color: #69696983;
    }

    #apps td div img {
      width: 40px;
      height: 40px;
    }