html {
  overflow: hidden;
}
/* ------------------------ */
/* 🌌 ESTILO GENERAL DEL BODY */
/* ------------------------ */
.div-body {
  margin: 0;
  padding: 0;
  background-color: black; /* Fallback si no carga imagen */
  background-image: url("../assets/img/fondo-escritorio.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Courier New", monospace; /* Estilo consola retro */
  color: #00ff00; /* Verde terminal */
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Fondo adaptado para móviles */
@media (max-width: 768px) {
  .div-body {
    background-image: url("../assets/img/fondo-celular.webp");
  }
}

/* ------------------------ */
/* 🪟 BARRA INFERIOR (TASKBAR) */
/* ------------------------ */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background-color: #c0c0c0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
  border-top: 2px solid #f0f0f0;
  border-left: 2px solid #f0f0f0;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  z-index: 9999;
}

/* ----------------------------- */
/* 🟩 BOTÓN INICIO "DON KBRN" */
/* ----------------------------- */
.start-button,
.file-manager-button {
  display: flex;
  align-items: center;
  background-color: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 6px 12px;
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  margin-right: 4px;
  min-height: 26px;
  box-sizing: border-box;
  transition: all 0.1s ease;
}

/* Asegurar que ambos botones se vean exactamente igual */
.start-button {
  text-decoration: none !important;
  background-color: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 12px;
}

.start-button:visited,
.start-button:link,
.start-button:active {
  color: #000000;
  text-decoration: none;
}

.file-manager-button {
  background-color: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 12px;
}

.file-manager-button:hover,
.start-button:hover {
  background-color: #e8e4dc;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.file-manager-button:active,
.start-button:active {
  background-color: #c0c0c0;
  border-color: #808080 #ffffff #ffffff #808080;
  transform: translateY(1px);
  color: #000000;
  text-decoration: none;
}

.file-manager-button:focus,
.start-button:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
  color: #000000;
  text-decoration: none;
}

/* Ícono y texto dentro de los botones */
.start-button img,
.file-manager-button img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.start-button span,
.file-manager-button span {
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}

/* ------------------------ */
/* ⏰ RELOJ DIGITAL */
/* ------------------------ */
.clock {
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000000;
  padding: 6px 12px;
  background-color: #d4d0c8;
  border: 2px inset #d4d0c8;
  min-height: 26px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* ---------------------------------- */
/* 🖼️ CONTENEDOR DE ÍCONOS DEL ESCRITORIO */
/* (solo se usa si agrupas íconos dentro) */
/* ---------------------------------- */
.desktop-icons {
  position: absolute;
  top: 50px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

/* --------------------------- */
/* 📂 ESTILO DE CADA ÍCONO */
/* --------------------------- */
.icon {
  position: absolute;
  cursor: pointer;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  z-index: 1;
}

/* Imagen del ícono (con calidad pixelada) */
.icon img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  display: block;
  position: relative;
  z-index: 1;
}

/* -------------------------- */
/* 📝 TEXTO DEL ÍCONO */
/* -------------------------- */
.icon span {
  font-size: 13px;
  font-family: "Tahoma", sans-serif;
  color: white;
  text-align: center;
  margin-top: 2px;
  padding: 2px 4px;
  text-shadow: 1px 1px black; /* Sombra tipo Win95 */
  transition: all 0.2s;
}

/* ---------------------------- */
/* 🟦 ESTILO SELECCIONADO DEL ÍCONO */
/* ---------------------------- */

/* Texto seleccionado: fondo azul + borde blanco punteado */
.icon.selected span {
  background-color: #000080;
  color: white;
  border: 1px dotted white;
  text-shadow: none;
}

/* Efecto azul translúcido sobre la imagen (modo multiplicar) */
.icon.selected .icon-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 128, 0.25); /* Azul oscuro translúcido */
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* ---------------- VENTANA RETRO ---------------- */
.window {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  height: 80dvh;
  aspect-ratio: 1404 / 1920;
  background-color: #c0c0c0;
  border: 1px solid #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Sombra difuminada */
  display: flex; /* Volver a flex para el layout interno */
  flex-direction: column;
  resize: both;
  overflow: hidden;
  z-index: 10;
  min-width: 200px;
  min-height: 200px;
}

/* Ocultar específicamente el visor de imágenes y administrador de archivos */
#window-image-viewer,
#window-file-manager {
  display: none;
}

@media (max-width: 768px) {
  .window {
    width: 80vw;
    height: auto;
    aspect-ratio: 1404 / 1920;
  }
}

.window-header {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #bcbec0, #f0f0f0);
  padding: 2px 6px;
  border-bottom: 2px solid #808080;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  height: 24px;
  user-select: none;
  cursor: move; /* Para indicar que es movible */
}

.window-icon img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.window-title {
  flex: 1;
  color: black;
}

.close-btn {
  background-color: #c0c0c0;
  border: 2px outset #fff;
  font-size: 12px;
  cursor: pointer;
  height: 20px;
  width: 20px;
  line-height: 16px;
  text-align: center;
  padding: 0;
  color: #000;
}

.window-content {
  flex: 1;
  overflow: auto;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

.window-content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.window-content::-webkit-scrollbar-track {
  background-color: #c3c7cb;
  image-rendering: pixelated;
}

.window-content::-webkit-scrollbar-thumb {
  background-color: #c3c7cb;
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
  box-shadow: inset 1px 1px 0 #868a8e;
}

.window-content::-webkit-scrollbar-button {
  height: 16px;
  width: 16px;
  background-color: #c3c7cb;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  border-top: 1px solid #c3c7cb;
  border-left: 1px solid #c3c7cb;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:single-button:horizontal:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC");
}

::-webkit-scrollbar-button:single-button:horizontal:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII=");
}

/* Eliminar completamente el espacio de los botones adicionales */
::-webkit-scrollbar-button:horizontal:increment:start,
::-webkit-scrollbar-button:horizontal:decrement:end,
::-webkit-scrollbar-button:vertical:increment:start,
::-webkit-scrollbar-button:vertical:decrement:end {
  display: none;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

.window-content::-webkit-scrollbar-corner {
  background-color: #c3c7cb;
}

.window-content::-webkit-resizer {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAN0lEQVR4Ae3MgQUAMBRDwU5fFF05lb/CARTBw2Ulof0DxPtcwp3hNuEYnjbcEW4TjuFpwx3h9gMWGgZ2Y/PT2gAAAABJRU5ErkJggg==");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-color: #c3c7cb;
  image-rendering: pixelated;
}

.image-wrapper {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}

.image-wrapper img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.window-footer {
  background-color: #e0e0e0;
  border-top: 2px solid #808080;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  padding: 2px 6px;
  height: 20px;
  display: flex;
  align-items: center;
  color: black;
}

/* -------- Ventana INFO específica -------- */

#window-info {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  resize: both;
  overflow: hidden;
  position: absolute;
  display: flex;
  flex-direction: column;
  background-color: #c0c0c0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border: 1px solid #000;
  min-width: 200px;
  min-height: 150px;
}

@media (max-width: 768px) {
  #window-info {
    width: 50vw;
    height: 40vh;
  }
}

@media (min-width: 769px) {
  #window-info {
    width: 15vw;
    height: 40vh;
  }
}

.info-text p {
  color: #97b2a5;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.info-text h3 {
  color: #826567;
  font-family: "Courier New", monospace;
  margin-bottom: 8px;
  font-size: 14px;
}

#window-info .window-content {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 15px 30px;
}

#window-info {
  top: 8%;
  left: 78%;
  transform: none;
}

#window-tour {
  top: 25%;
  left: 55%;
  transform: none;
}

#window-kbrn {
  top: 60%;
  left: 15%;
  transform: none;
}

#window-lostfiles {
  top: 5%;
  left: 5%;
  transform: none;
}

@media (max-width: 768px) {
  #window-info {
    top: 50%;
    left: 52%;
    transform: none;
  }

  #window-tour {
    top: 8%;
    left: 8%;
    transform: none;
  }

  #window-kbrn {
    top: 65%;
    left: 5%;
    transform: none;
  }

  #window-lostfiles {
    top: 25%;
    left: 6%;
    transform: none;
  }
}

/* ============================= */
/* 🎬 ESTILOS REPRODUCTOR VIDEO */
/* ============================= */

#window-video {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: auto;
  min-width: 400px;
  max-width: 800px;
}

@media (max-width: 768px) {
  #window-video {
    width: 90vw;
    min-width: 300px;
    max-width: 500px;
  }
}

.video-container {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #000;
}

/* Contenedor del video con relación 16:9 */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-player {
  width: 100%;
  height: 100%;
  background-color: #000;
  object-fit: contain;
  display: block;
}

.video-controls {
  width: 100%;
  background-color: #c0c0c0;
  padding: 12px;
  border-top: 2px solid #808080;
  flex-shrink: 0;
}

.video-progress {
  height: 10px;
  width: 100%;
  background-color: #f0f0f0;
  border: 2px inset #a0a0a0;
  position: relative;
  margin-bottom: 12px;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #404040;
  transition: width 0.1s ease;
}

.video-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.video-buttons button {
  width: 70px;
  height: 30px;
  background-color: #f0f0f0;
  border: 2px outset #c0c0c0;
  font-size: 12px;
  font-family: "Courier New", monospace !important;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-buttons button:hover {
  background-color: #e0e0e0;
}

.video-buttons button:active {
  border-style: inset;
  background-color: #d0d0d0;
}

/* ============================= */
/* 🎵 ESTILOS RETRO Ela Sounds */
/* ============================= */

/* Ventana principal */
.kbrn-window {
  width: 450px;
  max-width: 95vw;
  background-color: #c0c0c0;
  border: 1px solid #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Sombra difuminada */
  font-family: Tahoma, sans-serif;
  overflow: hidden;
  resize: none;
  z-index: 100;
  position: absolute; /* necesario para poder moverla */
  display: flex; /* Cambiar para layout correcto */
  flex-direction: column; /* Para estructura vertical */
}

/* Barra superior */
.kbrn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  background: linear-gradient(to right, #7b0000, #b30000);
  color: yellow;
  font-size: 13px;
  padding: 0 6px;
  user-select: none;
}

.kbrn-header .title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbrn-header img {
  width: 16px;
  height: 16px;
}

/* Botones de ventana */
.kbrn-header .window-buttons {
  display: flex;
  gap: 2px;
}

.kbrn-header .window-buttons button {
  width: 18px;
  height: 18px;
  padding: 0;
  background-color: #c0c0c0;
  border: 2px outset #fff;
  font-size: 12px;
  cursor: default;
  color: #000;
}

.kbrn-header .window-buttons button:disabled {
  color: gray;
  cursor: not-allowed;
}

/* Contenido */
.kbrn-content {
  display: flex;
  flex-direction: row;
  padding: 8px;
  gap: 12px;
}

.kbrn-cover {
  width: 30%;
  aspect-ratio: 1 / 1;
  background-color: black;
  background-size: cover;
  background-position: center;
  border: 1px solid #000;
}

.kbrn-controls {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kbrn-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: black;
}

.kbrn-row select {
  flex: 1;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 2px;
  background-color: #f0f0f0;
  border: 2px inset #a0a0a0;
  outline: none;
  pointer-events: auto;
}

.kbrn-row select:disabled {
  background-color: #e0e0e0;
  color: gray;
  pointer-events: none;
}

.kbrn-row select {
  /* ... lo que ya tienes ... */
  appearance: auto; /* ✅ Esto hace que vuelva la flechita por defecto del navegador */
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.kbrn-progress {
  height: 8px;
  width: 100%;
  background-color: #f0f0f0;
  border: 2px inset #a0a0a0;
  position: relative;
}

.kbrn-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #404040;
}

.kbrn-buttons {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.kbrn-buttons button {
  flex: 1;
  height: 24px;
  background-color: #f0f0f0;
  border: 2px outset #c0c0c0;
  font-size: 10px;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
  color: #000;
  font-family: "Courier New", monospace !important;
}

.kbrn-buttons button:disabled {
  color: gray;
  cursor: not-allowed;
}

/* Ventana Archivos Eladio */

.lostfiles-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.lostfiles-table {
  min-width: 800px; /* Ajusta este valor según tu contenido */
  width: 100%;
  border-collapse: collapse;
}

.lostfiles-window {
  display: block; /* Cambiar de none a block para que esté visible por defecto */
  position: fixed; /* Cambiado de absolute a fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 700px;
  height: auto;
  border: 2px solid #000;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  z-index: 2000; /* Z-index base más alto para mantener prioridad */
}

.lostfiles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  background: linear-gradient(to bottom, #7b0000, #b30000);
  font-size: 24px;
  padding: 0 6px;
  user-select: none;
}

.lostfiles-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lostfiles-title img {
  width: 24px;
  height: 24px;
}

.lostfiles-buttons {
  display: flex;
  gap: 8px;
}

.lostfiles-buttons a,
.lostfiles-buttons button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-family: Tahoma, sans-serif;
  padding: 7px 12px;
  cursor: pointer;
  text-decoration: none;
}

.lostfiles-buttons button.selected {
  background: linear-gradient(to bottom, #70b3f0, #007fff);
  color: #fff;
  border: 1px solid #0055cc;
  border-radius: 5px 5px 0px 0px;
}

.lostfiles-buttons a:hover {
  text-decoration: underline;
}

.lostfiles-subheader {
  background: linear-gradient(to right, #e9e7e3, #ffffff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  border-top: 1px solid #494949;
  border-bottom: 1px solid #494949;
  color: #000;
}

.lostfiles-subheader .left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lostfiles-subheader .left img {
  width: 24px;
  height: 24px;
}

.lostfiles-info {
  background: linear-gradient(to right, #e9e7e3, #ffffff);
  padding: 10px 10px;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  color: #000;
  border-bottom: 1px solid #a0a0a0;
}

.lostfiles-upload {
  background: linear-gradient(to right, #e9e7e3, #ffffff);
  padding: 4px 10px;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  color: #000;
  display: flex;
  gap: 4px;
  align-items: center;
}

.lostfiles-upload .jp {
  color: #8b0000;
}

.lostfiles-table {
  width: 100%;
  font-size: 16px;
  font-family: "Tahoma", sans-serif;
  border-collapse: collapse;
  background: #f5f5f5;
}

.lostfiles-table th,
.lostfiles-table td {
  padding: 3px 3px;
  border: 0 solid #aaa;
  border-bottom: 1px solid #aaa;
  text-align: left;
  color: black;
}

.lostfiles-table tr:hover {
  background: #9c9c9c;
}

.lostfiles-table tr:hover td {
  color: #fff;
}

.progress-bar {
  width: 100px;
  height: 10px;
  background-color: #eee;
  border: 1px solid #999;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: darkred;
  transition: width 0.3s;
}

.status-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 4px;
  padding-left: 5px;
}
.download-btn img {
  width: 24px;
  height: 24px;
}

.lostfiles-table td:nth-child(2) {
  text-align: center;
  vertical-align: middle;
}

.lostfiles-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lostfiles-title-text {
  margin-left: 8px;
  font-weight: bold;
  font-size: 14px;
}

.lostfiles-title-text {
  color: white;
}

.lostfiles-nav {
  background: linear-gradient(to bottom, #7b0000, #b30000);
  border: 2px solid #681a1a;
  border-radius: 6px;
  padding: 4px 8px 0px 8px;
}

.lostfiles-nav-contenedor {
  background: linear-gradient(to bottom, #7b0000, #b30000);
  padding: 2px;
}

.lostfiles-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lostfiles-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lostfiles-controls {
  display: flex;
  gap: 2px;
}

.lostfiles-controls button.disabled-btn {
  width: 32px;
  height: 18px;
  background: linear-gradient(to bottom, #660000, #3c0000);
  border: 1px solid #1a0000;
  color: white;
  font-size: 14px;
  font-weight: bold;
  font-family: monospace;
  cursor: not-allowed;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0.6;
}

.lostfiles-controls button.disabled-btn img {
  width: 18px;
  height: 18px;
}

.lostfiles-header .close-btn img {
  width: 18px;
  height: 18px;
}

.lostfiles-header .close-btn {
  width: 32px;
  height: 18px;
  background: linear-gradient(to bottom, #660000, #3c0000);
  border: 1px solid #1a0000;
  color: white;
  font-size: 12px;
  font-family: monospace;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lostfiles-table thead {
  background: linear-gradient(
    to bottom,
    #fff,
    #bcbec0
  ); /* degradado rojo oscuro */
  color: white;
  font-weight: bold;
}

.lostfiles-table thead th {
  padding: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  border-right: 1px solid #aaa;
}

.lostfiles-table thead th:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .lostfiles-header {
    height: 28px;
  }

  .lostfiles-title img {
    width: 18px;
    height: 18px;
  }

  .lostfiles-buttons a,
  .lostfiles-buttons button {
    font-size: 14px;
  }

  .lostfiles-subheader {
    font-size: 14px;
  }

  .lostfiles-info {
    font-size: 14px;
  }

  .lostfiles-upload {
    font-size: 14px;
  }

  .lostfiles-table {
    font-size: 14px;
  }

  .lostfiles-table {
    min-width: 600px;
  }

  .status-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
  }
}

/* 🔧 Quita estilos nativos de iOS y otros navegadores a botones y selects */
button,
select,
input,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  box-shadow: none;
  border-radius: 0;
}

/* Asegura que los botones no se vean azulados o con sombra al tocar */
button:focus,
select:focus,
input:focus {
  outline: none;
  box-shadow: none;
}

/* Asegura que el texto no se vuelva azul o subrayado en tap largo */
* {
  -webkit-tap-highlight-color: transparent;
}

/* NUEVOS ESTILOS FORMULARIO */

.d-none {
  display: none;
}

.div-body-form {
  background: url("../assets/img/bg-pixel1.jpg") no-repeat center center;
  background-size: cover;
  margin: 0;
  padding: 0;
  background-color: black;
  /* Fallback si no carga imagen */
  font-family: "Courier New", monospace;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.section-email,
.section-form {
  background: #c0c0c0;
  width: 380px;
  height: auto;
  box-shadow: 0px 6px 10px 0px #00000060;
  overflow: scroll;
}
.section-email .window-header,
.section-form .window-header {
  cursor: default;
}
.form-container {
  padding: 20px;
  box-sizing: border-box;
}
.form-control,
.form-select,
.choices__inner {
  flex: 1;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 5px 2px;
  background-color: #f0f0f0;
  border: 2px inset #a0a0a0;
  outline: none;
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}
.choices__inner {
  height: auto;
  min-height: auto!important;
  padding: 0 !important;
}
.btn-registro {
  flex: 1;
  height: auto;
  background-color: #f0f0f0;
  border: 2px outset #c0c0c0;
  font-size: 16px;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
  color: #000;
  font-family: "Courier New", monospace !important;
  padding: 6px 10px;
  width: max-content;
  display: block;
  margin: 10px auto 0;
}
input[type="checkbox"] {
  -webkit-appearance: auto; /* Vuelve a la apariencia por defecto del navegador */
  appearance: auto; /* Estándar para compatibilidad */
}

/* ===================================== */
/* 🪟 SISTEMA DE GESTIÓN DE VENTANAS */
/* ===================================== */

.managed-window {
  transition: all 0.3s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.managed-window.window-active {
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
}

.managed-window.window-active .window-header,
.managed-window.window-active .lostfiles-header,
.managed-window.window-active .kbrn-header,
.managed-window.window-active .file-manager-header {
  background: linear-gradient(to right, #0078d4, #106ebe);
  color: white;
}

.managed-window:not(.window-active) .window-header,
.managed-window:not(.window-active) .lostfiles-header,
.managed-window:not(.window-active) .kbrn-header,
.managed-window:not(.window-active) .file-manager-header {
  background: linear-gradient(to right, #808080, #c0c0c0);
  color: #606060;
}

.managed-window .window-header,
.managed-window .lostfiles-header,
.managed-window .kbrn-header,
.managed-window .file-manager-header {
  cursor: move;
  user-select: none;
}

.managed-window.minimized {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Efectos de animación para abrir/cerrar */
.managed-window {
  animation: windowOpen 0.3s ease-out;
}

@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes windowWelcome {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Estilos para botones de control de ventana */
.window-controls {
  display: flex;
  gap: 2px;
  align-items: center;
}

.minimize-btn,
.maximize-btn,
.close-btn {
  width: 16px;
  height: 14px;
  border: 1px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  color: black;
  font-family: "MS Sans Serif", sans-serif;
}

.minimize-btn:hover,
.maximize-btn:hover,
.close-btn:hover {
  background: #e0e0e0;
}

.minimize-btn:active,
.maximize-btn:active,
.close-btn:active {
  border-color: #808080 #f0f0f0 #f0f0f0 #808080;
}

/* Taskbar window buttons */
.taskbar-window-btn {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
  color: black;
  cursor: pointer;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-window-btn.active {
  border-color: #808080 #f0f0f0 #f0f0f0 #808080;
  background: #a0a0a0;
}

.taskbar-window-btn:hover {
  background: #e8e4dc;
}

/* ===================================== */
/* 📁 ADMINISTRADOR DE ARCHIVOS */
/* ===================================== */

.file-manager-window {
  display: none;
  position: absolute;
  top: 12%;
  left: 35%;
  width: 600px;
  height: 400px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  z-index: 100;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  color: #000000; /* Forzar texto negro */
}

.file-manager-window * {
  color: #000000 !important; /* Forzar texto negro en todos los elementos hijos */
}

.file-manager-window.minimized {
  height: 30px;
  overflow: hidden;
  transition: height 0.3s ease;
}

.file-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #008080;
  color: white;
  padding: 2px 4px;
  font-weight: bold;
  font-size: 11px;
}

.file-manager-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-manager-controls {
  display: flex;
  gap: 2px;
}

.minimize-btn,
.file-manager-controls .close-btn {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-manager-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 50px);
}

.file-manager-nav {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  cursor: pointer;
  font-size: 11px;
  margin-right: 2px;
}

.nav-btn.active {
  background: #ffffff;
  border-color: #808080 #f0f0f0 #f0f0f0 #808080;
}

.file-manager-files {
  flex: 1;
  overflow-y: auto;
  background: white;
  padding: 8px;
}

.file-section {
  display: none;
}

.file-section.active {
  display: block;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s ease;
  user-select: none;
}

.file-item:hover {
  background-color: #e6f3ff;
  border-color: #0078d4;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-item:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.file-item .file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

.file-item span {
  margin-top: 4px;
  font-size: 10px;
  text-align: center;
  word-break: break-word;
  max-width: 80px;
}

.file-manager-footer {
  background: #c0c0c0;
  border-top: 1px solid #808080;
  padding: 2px 8px;
  font-size: 10px;
}

/* Visor de Imágenes */
.image-viewer-window {
  display: none;
  position: absolute;
  top: 18%;
  left: 42%;
  width: 500px;
  height: 400px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #f0f0f0 #808080 #808080 #f0f0f0;
  font-family: "MS Sans Serif", sans-serif;
  z-index: 110;
  color: #000000; /* Forzar texto negro */
}

.image-viewer-window * {
  color: #000000 !important; /* Forzar texto negro en todos los elementos hijos */
}

.image-viewer-window .window-content {
  height: calc(100% - 50px);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-viewer-window .window-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .file-manager-window {
    width: 90vw;
    height: 70vh;
    left: 5vw;
    top: 15%;
  }

  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
  }

  .image-viewer-window {
    width: 90vw;
    height: 60vh;
    left: 5vw;
    top: 20%;
  }
}
.phone-input-container {
  display: flex;
  align-items: center;
}
.phone-input-container select {
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  padding: 5px 2px;
  background-color: #f0f0f0;
  border: 2px inset #a0a0a0;
  outline: none;
  pointer-events: auto;
  box-sizing: border-box;
}

/* ===================================
   🎯 MEJORAS DE ARRASTRE DE VENTANAS
   =================================== */

/* Optimizaciones para headers de ventanas */
.window-header,
.lostfiles-header,
.kbrn-header,
.file-manager-header {
  cursor: move !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  /* Mejorar rendimiento durante el arrastre */
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Estado durante el arrastre */
.window-header:active,
.lostfiles-header:active,
.kbrn-header:active,
.file-manager-header:active {
  cursor: grabbing !important;
}

/* Optimización de rendimiento para ventanas */
.window,
[id^="window-"] {
  /* Habilitar aceleración por hardware */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;

  /* Mejorar el posicionamiento */
  position: absolute !important;
}

/* Optimizaciones específicas para arrastre fluido */
.dragging {
  /* Desactivar transiciones durante el arrastre */
  transition: none !important;
  /* Mejorar rendimiento */
  transform: translateZ(0) !important;
  will-change: transform !important;
  pointer-events: none !important;
}

/* Asegurar que los botones de control no interfieran */
.close-btn,
.minimize-btn,
.maximize-btn,
.control-btn {
  cursor: pointer !important;
  user-select: none !important;
  pointer-events: auto !important;
}

/* Mejorar cursor en áreas arrastrables */
.window-header
  *:not(.close-btn):not(.minimize-btn):not(.maximize-btn):not(button):not(
    input
  ):not(select) {
  cursor: inherit !important;
  pointer-events: none !important;
}

/* Restaurar pointer-events para elementos interactivos */
.window-header .close-btn,
.window-header .minimize-btn,
.window-header .maximize-btn,
.window-header button,
.window-header input,
.window-header select {
  pointer-events: auto !important;
}

/* Optimización para dispositivos táctiles */
@media (pointer: coarse) {
  .window-header,
  .lostfiles-header,
  .kbrn-header,
  .file-manager-header {
    min-height: 30px;
    touch-action: none;
  }
}

/* Transiciones suaves para ventanas */
.window:not(.dragging) {
  transition: transform 0.1s ease-out, left 0.1s ease-out, top 0.1s ease-out;
}
