* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --win-blue-universal: #0078d7;
      --panel-bg: #1e1e1e;
      --panel-border: #333333;
      --input-bg: #141414;
      --input-border: #3e3e3e;
      --text-main: #ffffff;
      --text-muted: #9e9e9e;
    }

    body {
      background-color: var(--win-blue-universal);
      color: #ffffff;
      min-height: 100vh;
      width: 100vw;
      overflow: hidden;
      user-select: none;
      font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
      position: relative;
      cursor: default;
    }

    /* Botón 3 Puntos Arriba a la Derecha */
    .top-menu-btn {
      position: fixed;
      top: 18px;
      right: 20px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.15s, color 0.15s, opacity 0.2s;
      z-index: 100;
      opacity: 0.65;
    }

    .top-menu-btn:hover {
      background-color: rgba(0, 0, 0, 0.25);
      opacity: 1;
      color: #ffffff;
    }

    .top-menu-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    /* Panel de Configuración Compacto y Elegante */
    .config-modal {
      position: fixed;
      top: 62px;
      right: 20px;
      background: var(--panel-bg);
      border: 1px solid var(--panel-border);
      border-radius: 16px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
      padding: 18px;
      width: 320px;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
      z-index: 200;
      display: none;
      flex-direction: column;
      gap: 14px;
      animation: modalFadeIn 0.12s ease-out;
      color: var(--text-main);
    }

    .config-modal.open {
      display: flex;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      font-weight: 700;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--panel-border);
    }

    .config-row {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .config-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    /* Selector Desplegable Estilizado Moderno */
    .config-select {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--text-main);
      padding: 9px 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      outline: none;
      width: 100%;
      font-family: inherit;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23aaaaaa' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      padding-right: 32px;
      transition: border-color 0.15s, background-color 0.15s;
    }

    .config-select:focus {
      border-color: #0078d7;
      background-color: #1a1a1a;
    }

    .config-select option {
      background: #222222;
      color: #ffffff;
      padding: 8px;
    }

    .config-inputs-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .config-input {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--text-main);
      padding: 8px 10px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      outline: none;
      width: 100%;
      font-family: inherit;
    }

    .config-input:focus {
      border-color: #0078d7;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    input[type="number"] {
      -moz-appearance: textfield;
      appearance: textfield;
    }

    .action-btn-primary {
      background: #0078d7;
      color: #ffffff;
      border: none;
      padding: 10px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background-color 0.15s, transform 0.1s;
    }

    .action-btn-primary:hover {
      background: #0063b1;
      transform: scale(1.02);
    }

    .action-btn-primary svg {
      width: 15px;
      height: 15px;
      fill: #ffffff;
    }

    .exit-link {
      color: var(--text-muted);
      font-size: 12px;
      text-decoration: none;
      text-align: center;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 4px;
      transition: color 0.12s;
    }

    .exit-link svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
    }

    .exit-link:hover {
      color: #ffffff;
    }

    /* ========================================================
       VISTAS DE PANTALLAS (Mismo Fondo Azul Universal)
       ======================================================== */
    .screen-view {
      display: none;
      width: 100vw;
      height: 100vh;
      position: absolute;
      top: 0;
      left: 0;
      background-color: var(--win-blue-universal);
    }

    .screen-view.active {
      display: flex;
    }

    /* ========================================================
       PANTALLA 1: WINDOWS 10/11 BSOD REAL
       ======================================================== */
    #screen-bsod-real {
      font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 18vh 12vw 8vh 12vw;
    }

    @media (min-width: 1400px) {
      #screen-bsod-real {
        padding: 20vh 12vw 8vh 12vw;
      }
    }

    @media (max-width: 900px) {
      #screen-bsod-real {
        padding: 14vh 8vw 6vh 8vw;
      }
    }

    .bsod-face-huge {
      font-size: clamp(95px, 10.5vw, 150px);
      font-weight: 300;
      line-height: 0.95;
      letter-spacing: -2px;
      margin-bottom: 52px;
      font-family: 'Segoe UI Light', 'Segoe UI', -apple-system, sans-serif;
    }

    .bsod-message {
      font-size: clamp(18px, 1.75vw, 27px);
      font-weight: 300;
      line-height: 1.38;
      max-width: 820px;
      margin-bottom: 34px;
    }

    .bsod-progress {
      font-size: clamp(18px, 1.75vw, 27px);
      font-weight: 300;
      margin-bottom: 48px;
      font-feature-settings: "tnum";
    }

    .bsod-bottom-row {
      display: flex;
      align-items: flex-start;
      gap: 22px;
    }

    .bsod-qr-box {
      width: 105px;
      height: 105px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      padding: 3px;
    }

    .bsod-qr-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      image-rendering: pixelated;
    }

    .bsod-info-text {
      font-size: clamp(11.5px, 1.05vw, 13.5px);
      font-weight: 300;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.95);
      font-family: 'Segoe UI', sans-serif;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }

    .bsod-info-text a {
      color: #ffffff;
      text-decoration: none;
    }

    .bsod-info-codes {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    /* ========================================================
       PANTALLA 2: BSOD MEME ( ._.)
       ======================================================== */
    #screen-bsod-meme {
      font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 18vh 12vw 8vh 12vw;
    }

    @media (min-width: 1400px) {
      #screen-bsod-meme {
        padding: 20vh 12vw 8vh 12vw;
      }
    }

    @media (max-width: 900px) {
      #screen-bsod-meme {
        padding: 14vh 8vw 6vh 8vw;
      }
    }

    .meme-face-huge {
      font-size: clamp(95px, 10.5vw, 150px);
      font-weight: 300;
      line-height: 0.95;
      letter-spacing: -2px;
      margin-bottom: 52px;
      font-family: 'Segoe UI Light', 'Segoe UI', sans-serif;
    }

    .meme-title-big {
      font-size: clamp(18px, 1.75vw, 27px);
      font-weight: 300;
      line-height: 1.38;
      max-width: 820px;
      margin-bottom: 34px;
    }

    .meme-progress {
      font-size: clamp(18px, 1.75vw, 27px);
      font-weight: 300;
      margin-bottom: 48px;
      font-feature-settings: "tnum";
    }

    .meme-bottom-row {
      display: flex;
      align-items: flex-start;
      gap: 22px;
    }

    .meme-info-text {
      font-size: clamp(11.5px, 1.05vw, 13.5px);
      font-weight: 300;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.95);
      font-family: 'Segoe UI', sans-serif;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }

    .meme-info-text a {
      color: #ffffff;
      text-decoration: none;
    }

    .meme-info-codes {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    /* ========================================================
       AUTÉNTICA ANIMACIÓN DEL ANILLO DE CARGA DE WINDOWS
       ======================================================== */
    .win-progress-ring {
      position: relative;
      width: 58px;
      height: 58px;
      margin-bottom: 8px;
    }

    .win-progress-ring.small-inline {
      width: 30px;
      height: 30px;
      margin-bottom: 0;
      display: inline-block;
      flex-shrink: 0;
    }

    .win-ring-dot {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transform: rotate(225deg);
      animation-name: winOrbitExact;
      animation-iteration-count: infinite;
      animation-duration: 5.5s;
    }

    .win-ring-dot::after {
      content: '';
      position: absolute;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #ffffff;
      top: 0;
      left: calc(50% - 2.5px);
    }

    .win-progress-ring.small-inline .win-ring-dot::after {
      width: 3.5px;
      height: 3.5px;
      left: calc(50% - 1.75px);
    }

    .win-ring-dot:nth-child(1) { animation-delay: 0.20s; }
    .win-ring-dot:nth-child(2) { animation-delay: 0.40s; }
    .win-ring-dot:nth-child(3) { animation-delay: 0.60s; }
    .win-ring-dot:nth-child(4) { animation-delay: 0.80s; }
    .win-ring-dot:nth-child(5) { animation-delay: 1.00s; }
    .win-ring-dot:nth-child(6) { animation-delay: 1.20s; }

    @keyframes winOrbitExact {
      0% {
        transform: rotate(225deg);
        opacity: 1;
        animation-timing-function: ease-out;
      }
      7% {
        transform: rotate(345deg);
        animation-timing-function: linear;
      }
      30% {
        transform: rotate(455deg);
        animation-timing-function: ease-in-out;
      }
      40% {
        transform: rotate(690deg);
        animation-timing-function: linear;
      }
      60% {
        transform: rotate(815deg);
        opacity: 1;
        animation-timing-function: ease-out;
      }
      75% {
        transform: rotate(945deg);
        animation-timing-function: ease-out;
      }
      76% {
        transform: rotate(945deg);
        opacity: 0;
      }
      100% {
        transform: rotate(945deg);
        opacity: 0;
      }
    }

    /* ========================================================
       PANTALLA 3: WINDOWS UPDATE
       ======================================================== */
    #screen-win-update {
      font-family: 'Segoe UI', -apple-system, sans-serif;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
    }

    .update-content-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
    }

    .update-text-main {
      font-size: clamp(17px, 1.95vw, 24px);
      font-weight: 300;
      line-height: 1.45;
    }

    .update-text-sub {
      font-size: clamp(15px, 1.75vw, 21px);
      font-weight: 300;
      opacity: 0.95;
    }

    .update-footer-note {
      position: absolute;
      bottom: 8vh;
      font-size: clamp(13.5px, 1.5vw, 17.5px);
      font-weight: 300;
      opacity: 0.9;
    }

    /* ========================================================
       PANTALLA 4: WINDOWS UPDATE DESHACIENDO CAMBIOS
       ======================================================== */
    #screen-win-undo {
      font-family: 'Segoe UI', -apple-system, sans-serif;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
    }

    .undo-content-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .undo-text-block {
      display: flex;
      flex-direction: column;
      gap: 5px;
      font-size: clamp(17px, 1.95vw, 24px);
      font-weight: 300;
      line-height: 1.45;
    }

    /* ========================================================
       PANTALLA 5: WINDOWS RECOVERY
       ======================================================== */
    #screen-win-recovery {
      font-family: 'Segoe UI', -apple-system, sans-serif;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 20vh 15vw 10vh 15vw;
    }

    @media (max-width: 900px) {
      #screen-win-recovery {
        padding: 14vh 8vw 6vh 8vw;
      }
    }

    .recovery-content-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: 880px;
      width: 100%;
    }

    .recovery-title {
      font-size: clamp(44px, 4.8vw, 64px);
      font-weight: 300;
      margin-bottom: 28px;
      font-family: 'Segoe UI Light', 'Segoe UI', sans-serif;
      letter-spacing: -0.5px;
    }

    .recovery-subtitle {
      font-size: clamp(22px, 2.3vw, 32px);
      font-weight: 300;
      margin-bottom: 18px;
      line-height: 1.35;
    }

    .recovery-desc {
      font-size: clamp(15px, 1.35vw, 19px);
      font-weight: 300;
      line-height: 1.55;
      opacity: 0.96;
      margin-bottom: 42px;
    }

    .recovery-buttons-row {
      display: flex;
      gap: 16px;
      align-self: flex-end;
      margin-top: 20px;
    }

    .recovery-btn {
      background: transparent;
      color: #ffffff;
      border: 2px solid #ffffff;
      padding: 10px 24px;
      font-size: clamp(14px, 1.25vw, 17px);
      font-weight: 400;
      cursor: pointer;
      font-family: inherit;
      transition: background-color 0.15s, color 0.15s;
      border-radius: 0px;
    }

    .recovery-btn:hover {
      background-color: rgba(255, 255, 255, 0.18);
    }

    .recovery-btn:active {
      background-color: #ffffff;
      color: #0078d7;
    }

    /* ========================================================
       PANTALLA 6: INSTALLING WINDOWS 11 / 10
       (Reducido 10% y botón con estilo idéntico a Recovery)
       ======================================================== */
    #screen-win-install {
      font-family: 'Segoe UI', -apple-system, sans-serif;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 20vh 15vw 10vh 15vw;
    }

    @media (max-width: 900px) {
      #screen-win-install {
        padding: 14vh 8vw 6vh 8vw;
      }
    }

    .install-content-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: 900px;
      width: 100%;
    }

    .install-title {
      font-size: clamp(40px, 4.6vw, 64px);
      font-weight: 300;
      margin-bottom: 28px;
      font-family: 'Segoe UI Light', 'Segoe UI', sans-serif;
      letter-spacing: -0.5px;
    }

    .install-subtitle {
      font-size: clamp(16px, 1.7vw, 23px);
      font-weight: 300;
      line-height: 1.4;
      margin-bottom: 34px;
      opacity: 0.96;
    }

    .install-progress-row {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: clamp(17px, 1.7vw, 23px);
      font-weight: 300;
      margin-bottom: 38px;
    }

    .install-cancel-btn {
      background: transparent;
      color: #ffffff;
      border: 2px solid #ffffff;
      padding: 9px 28px;
      font-size: clamp(14px, 1.2vw, 16px);
      font-weight: 400;
      cursor: pointer;
      font-family: inherit;
      border-radius: 0px;
      transition: background-color 0.15s, color 0.15s;
    }

    .install-cancel-btn:hover {
      background-color: rgba(255, 255, 255, 0.18);
    }

    .install-cancel-btn:active {
      background-color: #ffffff;
      color: #0078d7;
    }
