/*
Theme Name: Windows XP OS Portfolio
Author: Tu Nombre
Description: Portafolio 100% interactivo estilo Windows XP.
Version: 1.0
*/

/* --- RESET Y FUENTES --- */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
body {
    font-family: 'Tahoma', sans-serif;
    overflow: hidden; /* Sin scroll, es un escritorio */
    background-color: #004e98; /* Color de fondo si falla la imagen */
    /* PON AQUÍ LA URL DE TU IMAGEN BLISS DE XP */
    background-image: url('images/FONDO DE PANTALA.PNG'); 
    background-size: cover;
    background-position: center;
    height: 100vh; width: 100vw;
}

/* --- ESCRITORIO E ÍCONOS --- */
#desktop { 
    padding: 20px; /* Más espacio desde los bordes de la pantalla */
    display: flex; 
    flex-direction: column; 
    gap: 35px; /* Más separación vertical entre los íconos (como en tu imagen) */
    height: calc(100vh - 40px); 
    flex-wrap: wrap; 
    align-content: flex-start; 
}

.desktop-icon {
    width: 90px; /* Contenedor más ancho para que quepa bien el texto */
    text-align: center; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.desktop-icon img { 
    width: 65px; /* ¡AQUÍ ESTÁ LA MAGIA! Íconos mucho más grandes */
    height: 65px; 
    margin-bottom: 8px; /* Un poco más de espacio entre el ícono y el texto */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6)); /* Sombra más pronunciada */
    pointer-events: none; 
}

.desktop-icon span {
    color: white; 
    font-size: 13px; /* Letra un poco más grande */
    font-weight: 500;
    text-shadow: 1px 1px 2px black, 0px 0px 4px black; /* Sombra fuerte para que se lea perfecto sobre el pasto */
    background: transparent; 
    padding: 3px 5px; 
    border-radius: 3px; 
    border: 1px dotted transparent;
    line-height: 1.2;
}

.desktop-icon:active span, .desktop-icon.selected span { 
    background: #0055e5; 
    border-color: #ffffff90; 
    opacity: 0.8; 
}

/* --- VENTANAS (WINDOWS) --- */
.window {
    position: absolute; width: 600px; height: 400px; background: #ece9d8;
    border: 3px solid #0055e5; border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5); display: none; flex-direction: column;
    top: 10%; left: 15%;
}
.window.active { display: flex; }
.title-bar {
    background: linear-gradient(to right, #0058e6 0%, #3a93ff 100%);
    padding: 3px 5px; display: flex; justify-content: space-between; align-items: center;
    color: white; font-weight: bold; font-size: 13px; border-radius: 5px 5px 0 0; cursor: default;
}
.title-bar-text { display: flex; align-items: center; gap: 5px; }
.title-bar-text img { width: 16px; height: 16px; }
.title-bar-controls { display: flex; gap: 2px; }
.title-bar-controls button {
    width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; font-weight: bold; cursor: pointer; color: white;
}
.btn-minimize, .btn-maximize { background: linear-gradient(to bottom, #4992fc, #1860e6); }
.btn-close { background: linear-gradient(to bottom, #f96d52, #e14023); }
.btn-close:hover { background: #f84b2e; }

.window-content { padding: 10px; flex-grow: 1; overflow-y: auto; background: white; border: 2px inset #fff; user-select: text; }

/* --- CONTENIDO DE WP (Posts y Proyectos) --- */
.post-item { border-bottom: 1px solid #ccc; padding-bottom: 15px; margin-bottom: 15px; }
.post-item h2 { font-size: 18px; color: #0055e5; margin-bottom: 5px; }
.post-item img { max-width: 100%; height: auto; margin-top: 10px; border: 1px solid #aaa; }
.post-item p { font-size: 13px; color: #333; line-height: 1.5; }

/* --- BARRA DE TAREAS --- */
#taskbar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 35px;
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #333 100%);
    display: flex; align-items: center; z-index: 9999; justify-content: space-between; padding-right: 10px;
}
#start-button {
    background: linear-gradient(to bottom, #3b8e39 0%, #4cbe49 50%, #3b8e39 100%);
    border: none; border-radius: 0 10px 10px 0; height: 100%; padding: 0 20px 0 10px;
    color: white; font-weight: bold; font-style: italic; font-size: 16px; display: flex; align-items: center; gap: 5px;
    cursor: pointer; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.5);
}
#start-button:hover { filter: brightness(1.1); }
#start-button img { width: 20px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5)); }

#taskbar-apps { display: flex; gap: 2px; flex-grow: 1; margin-left: 10px; }
.taskbar-item {
    background: linear-gradient(to bottom, #3b8cf8 0%, #1758ce 100%);
    border: 1px solid #0f3a8b; border-radius: 3px; color: white; padding: 0 10px; height: 28px;
    display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; min-width: 120px;
}
.taskbar-item.active-app { background: linear-gradient(to bottom, #1d60db 0%, #0c338e 100%); box-shadow: inset 1px 1px 3px rgba(0,0,0,0.5); }
.taskbar-item img { width: 16px; }

#taskbar-tray { background: #0f86d9; height: 100%; border-left: 1px solid #084c8a; padding: 0 15px; display: flex; align-items: center; color: white; font-size: 12px; box-shadow: inset 1px 0px 2px rgba(255,255,255,0.3); }

/* 1. CAMBIO DE FONDO EN EL BODY */
body {
    font-family: 'Tahoma', sans-serif;
    overflow: hidden;
    background-color: #004e98; 
    /* AQUÍ TU NUEVO FONDO */
    background-image: url('images/FONDO DE PANTALLA.PNG'); 
    background-size: cover;
    background-position: center;
    height: 100vh; width: 100vw;
}

/* --- MENÚ DE INICIO ESTILO IDÉNTICO A LA FOTO --- */
#start-menu {
    position: fixed; bottom: 35px; left: 0; width: 420px; height: 500px;
    background: #fff; border: 2px solid #0055e5; border-radius: 5px 5px 0 0;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.5); display: none; flex-direction: column; z-index: 10000;
}
#start-menu.active { display: flex; }

/* Cabecera azul oscuro */
.sm-header {
    background: linear-gradient(to bottom, #165be5 0%, #3e81f7 10%, #165be5 100%); 
    height: 60px; display: flex; align-items: center; padding: 10px; color: white; font-size: 16px; font-weight: bold; border-radius: 3px 3px 0 0;
    border-bottom: 1px solid #fff;
    box-shadow: inset 0px 1px 2px rgba(255,255,255,0.5);
}
.sm-header img { width: 42px; height: 42px; border: 2px solid white; border-radius: 5px; margin-right: 10px; box-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* Cuerpo dividido en 2 */
.sm-body { display: flex; flex-grow: 1; overflow: hidden; }

/* Columna Izquierda (Blanca) */
.sm-left { width: 50%; background: white; padding: 5px; display: flex; flex-direction: column; }
.sm-item-left {
    display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; color: #333; text-decoration: none; border: 1px solid transparent;
}
.sm-item-left:hover { background: #2f71cd; color: white; border-radius: 3px; }
.sm-item-left:hover span, .sm-item-left:hover small { color: white; }
.sm-item-left img { width: 32px; height: 32px; }
.sm-text-block { display: flex; flex-direction: column; }
.sm-text-block span { font-size: 12px; font-weight: bold; }
.sm-text-block small { font-size: 10px; color: #777; margin-top: 2px; }
.sm-divider { border-bottom: 1px solid #d3d3d3; margin: 5px 10px; }
.sm-all-programs { 
    margin-top: auto; padding: 10px; text-align: center; font-size: 12px; font-weight: bold; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid #d3d3d3;
}
.sm-all-programs img { width: 16px; }

/* Columna Derecha (Celeste) */
.sm-right { width: 50%; background: #d3e5fa; padding: 5px; border-left: 1px solid #95bcee; display:flex; flex-direction: column;}
.sm-item-right {
    display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; color: #00136b; font-size: 12px; text-decoration: none; border: 1px solid transparent;
}
.sm-item-right:hover { background: #2f71cd; color: white; border-radius: 3px; }
.sm-item-right img { width: 24px; height: 24px; }
.sm-item-right.bold { font-weight: bold; }

/* Pie de página (Log off / Shut down) */
.sm-footer { 
    background: linear-gradient(to bottom, #165be5 0%, #3e81f7 10%, #165be5 100%); 
    height: 45px; display: flex; justify-content: flex-end; align-items: center; padding: 0 10px; gap: 15px; border-top: 1px solid #fff;
}
.sm-btn-action {
    display: flex; align-items: center; gap: 5px; color: white; font-size: 12px; cursor: pointer; background: transparent; border: none; font-family: 'Tahoma';
}
.sm-btn-action:hover { text-decoration: underline; }
.sm-btn-icon { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; border: 1px solid white; box-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.icon-orange { background: linear-gradient(to bottom, #f3a936, #cf6c00); }
.icon-red { background: linear-gradient(to bottom, #f35b5b, #cc0000); }
.sm-btn-icon img { width: 16px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5)); }
/* --- PANTALLA DE CARGA (BOOT SCREEN) --- */
#boot-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000;
    z-index: 999999; /* Por encima de todo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out; /* Transición suave al desaparecer */
    color: white;
    cursor: wait;
}

.boot-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 80px;
}

.boot-logo {
    width: 130px;
    filter: drop-shadow(0px 0px 5px rgba(255,255,255,0.2));
}

.boot-text {
    font-family: 'Arial', sans-serif; /* Más fiel a la fuente original de arranque */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.boot-small {
    font-size: 18px;
    letter-spacing: 1px;
}

.boot-large {
    font-size: 65px;
    font-weight: bold;
    letter-spacing: -2px;
    margin: -10px 0;
}

.boot-xp {
    color: #ff6600; /* Naranja clásico de XP */
    font-size: 35px;
    vertical-align: super;
    margin-left: 5px;
}

.boot-medium {
    font-size: 26px;
    font-weight: normal;
}

/* La barra de carga gris */
.boot-loader-container {
    width: 250px;
    height: 18px;
    border: 2px solid #555555;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* Los 3 cuadritos azules que se mueven */
.boot-loader-blocks {
    position: absolute;
    height: 100%;
    width: 35px;
    display: flex;
    gap: 2px;
    padding: 2px;
    top: 0;
    left: -50px; /* Empieza fuera de la pantalla */
    animation: loadingAnim 2.5s infinite linear;
}

.boot-block {
    flex: 1;
    background: linear-gradient(to bottom, #2b4cf5 0%, #6385ff 50%, #2b4cf5 100%);
    border-radius: 1px;
}

/* Animación de izquierda a derecha */
@keyframes loadingAnim {
    0% { left: -50px; }
    100% { left: 260px; }
}
/* --- VISTA DE CARPETAS (MINIATURAS) --- */
.folder-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; padding: 10px;
}
.folder-item {
    text-align: center; cursor: pointer; padding: 5px; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center;
}
.folder-item:hover { background: rgba(0, 85, 229, 0.1); border: 1px solid rgba(0, 85, 229, 0.3); border-radius: 3px; }
.folder-item img {
    width: 60px; height: 60px; object-fit: cover; margin-bottom: 5px; border: 1px solid #ccc; background: white; padding: 2px;
}
.folder-item span { font-size: 11px; color: #333; word-break: break-word; }

/* --- INTERNET EXPLORER (Navegador Interno) --- */
.ie-address-bar {
    background: #ece9d8; padding: 5px; border-bottom: 1px solid #ccc; display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.ie-address-bar input { flex-grow: 1; padding: 3px; border: 1px inset #ccc; }
#ie-iframe { width: 100%; height: 100%; border: none; background: white; }

/* --- VISOR DE IMÁGENES --- */
.image-viewer-content {
    display: flex; height: 100%; background: #eef3fa;
}
.img-viewer-left {
    flex: 2; display: flex; align-items: center; justify-content: center; padding: 10px; background: #333;
}
.img-viewer-left img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.img-viewer-right {
    flex: 1; padding: 20px; background: white; border-left: 2px groove #fff; overflow-y: auto; font-size: 13px;
}
.img-viewer-right h2 { font-size: 18px; color: #0055e5; margin-bottom: 10px; }
/* --- PANTALLA DE INICIO DE SESIÓN (LOGON SCREEN) --- */
#logon-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #5a7edc;
    /* Efecto de líneas horizontales sutiles de XP */
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 100% 4px;
    z-index: 999990; /* Justo debajo de la pantalla negra de carga */
    display: flex; flex-direction: column; justify-content: space-between;
    font-family: 'Arial', sans-serif;
    transition: opacity 0.8s ease-out;
}

.logon-top-bar { height: 12vh; background: #003399; width: 100%; border-bottom: 2px solid #5a7edc; }
.logon-bottom-bar { 
    height: 12vh; background: #003399; width: 100%; 
    border-top: 2px solid #ef8218; /* La clásica línea naranja */
    display: flex; justify-content: space-between; align-items: center; padding: 0 40px; color: white;
}

.logon-center {
    display: flex; flex-grow: 1; align-items: center; justify-content: center; gap: 40px; padding: 20px;
}

/* Izquierda */
.logon-left { display: flex; flex-direction: column; align-items: flex-end; color: white; text-align: right; }
.logon-logo-container { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.logon-logo { width: 50px; filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3)); }
.logon-brand { font-size: 45px; font-weight: bold; letter-spacing: -1px; }
.logon-xp { color: #ff6600; font-size: 25px; vertical-align: super; margin-left: 2px; }
.logon-role { font-size: 16px; color: #a6c0ff; font-weight: bold; margin-bottom: 30px; }
.logon-instruction { font-size: 14px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

/* Línea separadora */
.logon-divider {
    height: 300px; width: 1px;
    background: linear-gradient(to bottom, transparent, #ffffff80, transparent);
}

/* Derecha (Usuario) */
.logon-right { width: 350px; }
.logon-user {
    display: flex; align-items: center; gap: 15px; padding: 10px;
    border: 2px solid transparent; border-radius: 5px; cursor: pointer; transition: all 0.2s;
}
.logon-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #f6b553; /* Borde amarillo de XP al pasar el ratón */
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 0 10px rgba(0,0,0,0.3);
}
.logon-avatar {
    width: 65px; height: 65px; border: 2px solid white; border-radius: 5px; box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.logon-user-info { display: flex; flex-direction: column; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.logon-username { font-size: 22px; font-weight: bold; }
.logon-user:hover .logon-username { text-decoration: underline; }
.logon-status { font-size: 12px; color: #a6c0ff; font-weight: bold; }

/* Botones y tips inferiores */
.logon-power { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px; border-radius: 3px; font-size: 14px; font-weight: bold; }
.logon-power:hover { background: rgba(255,255,255,0.1); }
.logon-power img { width: 24px; }
.logon-tip { font-size: 13px; text-align: right; line-height: 1.4; color: #d0e0ff; }
/* =========================================
   DISEÑO DEL MiPod CLASSIC (iPod)
   ========================================= */

/* Carcasa metálica */
.ipod-casing {
    background: linear-gradient(to bottom, #d9d9d9 0%, #a3a3a3 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        inset 2px 2px 5px rgba(255,255,255,0.8), 
        inset -2px -2px 5px rgba(0,0,0,0.2), 
        5px 10px 20px rgba(0,0,0,0.6);
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    border: 1px solid #777;
    position: relative;
    font-family: 'Arial', sans-serif;
}

/* Botón de cerrar discreto en la carcasa */
.ipod-close {
    position: absolute; top: 10px; right: 15px;
    background: transparent; border: none; color: #666;
    font-size: 10px; font-weight: bold; cursor: pointer; z-index: 20;
}
.ipod-close:hover { color: red; }

/* La pantalla */
.ipod-screen {
    background: #fff;
    width: 100%; height: 180px;
    border: 3px solid #222;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0px 2px 5px rgba(0,0,0,0.3);
    margin-top: 10px;
}

/* Barra superior de la pantalla */
.ipod-topbar {
    background: linear-gradient(to bottom, #f0f0f0, #c0c0c0);
    display: flex; justify-content: space-between; align-items: center;
    padding: 2px 8px; font-size: 12px; font-weight: bold; color: #000;
    border-bottom: 1px solid #999;
}

/* Lista de artistas */
.ipod-list { list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: bold; color: #000; }
.ipod-list li { display: flex; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.ipod-list li:hover { background: #e0e0e0; }
/* Elemento seleccionado (Azul clásico) */
.ipod-list li.active { background: linear-gradient(to bottom, #5092f8, #1059e4); color: white; }

/* Contenedor de la rueda */
.ipod-wheel-container { margin-top: 35px; width: 100%; display: flex; justify-content: center; }

/* La rueda blanca (Click Wheel) */
.ipod-wheel {
    width: 160px; height: 160px;
    background: #f4f4f4;
    border-radius: 50%;
    position: relative;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
}

/* Textos de la rueda */
.wheel-btn {
    position: absolute;
    font-size: 10px; font-weight: bold; color: #888; letter-spacing: 1px;
}
.wheel-menu { top: 12px; }
.wheel-play { bottom: 12px; }
.wheel-prev { left: 12px; }
.wheel-next { right: 12px; }

/* Botón central gris */
.ipod-center-btn {
    width: 60px; height: 60px;
    background: linear-gradient(to bottom, #d6d6d6, #aaaaaa);
    border-radius: 50%;
    box-shadow: inset 0px 2px 4px rgba(255,255,255,0.8), inset 0px -2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: filter 0.1s;
}
.ipod-center-btn:active { filter: brightness(0.9); }
/* =========================================
   DISEÑO HOJA DE VIDA (CV)
   ========================================= */

.cv-body-scroll { overflow-y: auto !important; }

/* La "Página" del PDF */
/* La "Página" del PDF */
.cv-page {
    background: white;
    width: 100%;
    max-width: 780px;
    margin: 0 auto; /* ¡ESTO ES LO QUE LO CENTRA Y PERMITE EL SCROLL! */
    box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    font-family: 'Arial', sans-serif;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* Encabezado */
.cv-header { display: flex; align-items: center; position: relative; margin-bottom: 20px; }
.cv-photo-container { padding-left: 40px; position: relative; z-index: 2; }
.cv-photo { 
    width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
    border: 6px solid white; box-shadow: 0 4px 6px rgba(0,0,0,0.2); background: #eee;
}
.cv-header-bg {
    background: #23222a; /* Color oscuro del encabezado */
    color: white; flex-grow: 1;
    padding: 30px 40px 30px 80px; margin-left: -60px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); /* Corte diagonal exacto */
}
.cv-header-bg h1 { font-size: 32px; letter-spacing: 2px; margin-bottom: 5px; font-weight: 800; }
.cv-header-bg h2 { font-size: 18px; font-weight: 300; letter-spacing: 5px; color: #ccc; }

/* Cuerpo a dos columnas */
.cv-content { display: flex; padding: 0 40px 40px 40px; gap: 30px; }
.cv-left { width: 35%; }
.cv-right { width: 65%; }

/* Secciones y Títulos */
.cv-section { margin-bottom: 30px; }
.cv-section h3 {
    font-size: 16px; font-weight: bold; letter-spacing: 2px; margin-bottom: 15px;
    padding-bottom: 5px; border-bottom: 1px solid #23222a; color: #23222a;
}
.cv-section p { font-size: 12px; line-height: 1.6; color: #555; margin-bottom: 5px; }
.cv-bold { font-weight: bold; color: #333 !important; }
.cv-date { color: #888 !important; font-style: italic; }

/* Habilidades (Puntitos) */
.cv-skill { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: bold;}
.cv-dots { display: flex; gap: 4px; }
.cv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ccc; display: inline-block; }
.cv-dots i.filled { background: #231f54; /* Azul oscuro de los puntos */ }

/* Idiomas */
.cv-list { list-style: disc; padding-left: 20px; font-size: 12px; color: #555; }
.cv-list li { margin-bottom: 5px; }

/* Contacto Superior Derecho */
.cv-contact { display: flex; gap: 20px; font-size: 12px; font-weight: bold; color: #666; margin-bottom: 30px; margin-top: -10px; }

/* Línea de Tiempo (Experiencia) */
.cv-timeline { border-left: 2px solid #333; margin-left: 6px; padding-left: 20px; }
.cv-time-item { position: relative; margin-bottom: 25px; }
/* Circulito de la línea de tiempo */
.cv-time-item::before {
    content: ''; position: absolute; left: -27px; top: 2px;
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #333; background: white;
}
.cv-time-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.cv-job { font-size: 14px; font-weight: bold; color: #222; }
.cv-company { font-size: 12px; color: #666; margin-bottom: 8px; }
/* =========================================
   EFECTO GRANO Y GLITCH CRT
   ========================================= */

#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* pointer-events: none es VITAL para que la capa no bloquee tus clics */
    pointer-events: none;
    z-index: 99999999; /* Por encima del boot screen y absolutamente todo */
    
    /* Añadimos las scanlines (líneas del monitor) y el ruido SVG */
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), 
        url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    
    background-size: 100% 4px, 150px 150px;
    opacity: 0.15; /* 0.07 es súper sutil. Súbelo a 0.15 si lo quieres más fuerte */
    
    animation: grain-glitch 0.2s infinite steps(2);
}

/* Animación para que el grano se mueva simulando estática */
@keyframes grain-glitch {
    0%, 100% { background-position: 0 0, 0 0; }
    10% { background-position: 0 0, -5% -10%; }
    30% { background-position: 0 0, 7% -25%; }
    50% { background-position: 0 0, -15% 10%; }
    70% { background-position: 0 0, 0% 15%; }
    90% { background-position: 0 0, -10% 10%; }
}

/* =========================================
   DISEÑO DEL MI BOY COLOR (GAMEBOY)
   ========================================= */

/* Carcasa púrpura */
.gb-casing {
    background: #6f349d; /* Púrpura clásico */
    background-image: linear-gradient(to right, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
    border-radius: 10px 10px 25px 25px;
    padding: 20px;
    box-shadow: 
        inset 3px 3px 10px rgba(255,255,255,0.2), 
        inset -5px -5px 15px rgba(0,0,0,0.4), 
        5px 10px 25px rgba(0,0,0,0.7);
    width: 100%; height: 100%;
    position: relative;
    font-family: 'Arial', sans-serif;
    border: 1px solid #4a216b;
}

/* Botón oculto para cerrar */
.gb-close {
    position: absolute; top: 10px; right: 15px;
    background: transparent; border: none; color: #4a216b;
    font-size: 12px; font-weight: bold; cursor: pointer; z-index: 20;
}
.gb-close:hover { color: white; }

/* Borde negro de la pantalla */
.gb-bezel {
    background: #111;
    border-radius: 10px 10px 35px 10px;
    padding: 20px 30px 10px 30px;
    margin-top: 15px;
    position: relative;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.2);
}

/* LED de encendido */
.gb-led-area { position: absolute; left: 10px; top: 40px; text-align: center; }
.gb-led {
    width: 8px; height: 8px; border-radius: 50%;
    background: #39ff14; box-shadow: 0 0 5px #39ff14, inset 1px 1px 2px rgba(255,255,255,0.8);
    margin: 0 auto 3px auto;
}
.gb-led-area span { color: #888; font-size: 6px; font-weight: bold; letter-spacing: 1px; }

/* Pantalla del juego */
.gb-screen {
    background: #000;
    width: 100%; height: 200px;
    border: 2px solid #333;
    box-shadow: inset 0px 2px 10px rgba(0,0,0,0.9);
    margin-left: 5px;
}

/* Logo "MI BOY COLOR" */
.gb-logo {
    color: #ccc; text-align: center; font-weight: bold;
    font-size: 15px; margin-top: 10px; letter-spacing: 1px;
    font-style: italic; margin-left: 10px;
}
.gb-logo span { font-style: normal; font-size: 16px; margin-left: -1px; }

/* Controles Generales */
.gb-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding: 0 10px; }

/* D-Pad (Cruz direccional) */
.gb-dpad { position: relative; width: 80px; height: 80px; }
.gb-dpad-v { position: absolute; width: 26px; height: 80px; background: #222; left: 27px; border-radius: 3px; box-shadow: 2px 2px 3px rgba(0,0,0,0.5); }
.gb-dpad-h { position: absolute; width: 80px; height: 26px; background: #222; top: 27px; border-radius: 3px; box-shadow: 2px 2px 3px rgba(0,0,0,0.5); }
.gb-dpad-center { position: absolute; width: 24px; height: 24px; background: #222; top: 28px; left: 28px; border-radius: 50%; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.1); }

/* Botones A y B */
.gb-action-btns { display: flex; gap: 15px; transform: rotate(-20deg); margin-right: 10px; }
.gb-btn-ab {
    width: 38px; height: 38px; background: #222; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.6), inset -1px -1px 2px rgba(255,255,255,0.2);
    position: relative;
}
.gb-btn-ab span { color: #6f349d; font-weight: bold; font-size: 14px; position: absolute; bottom: -20px; left: 10px; transform: rotate(20deg); text-shadow: 0px 1px 1px rgba(255,255,255,0.2); }

/* Botones Select y Start */
.gb-system-btns { display: flex; justify-content: center; gap: 20px; margin-top: 35px; margin-left: -20px; }
.gb-btn-pill { text-align: center; }
.gb-btn-pill::before {
    content: ''; display: block; width: 35px; height: 10px;
    background: #222; border-radius: 10px; transform: rotate(-20deg);
    box-shadow: 1px 2px 3px rgba(0,0,0,0.5), inset -1px -1px 2px rgba(255,255,255,0.2);
    margin-bottom: 5px; cursor: pointer;
}
.gb-btn-pill span { font-size: 8px; color: #3b1757; font-weight: bold; letter-spacing: 1px; }

/* Bocina (Puntitos usando text-shadow) */
.gb-speaker {
    position: absolute; bottom: 30px; right: 30px;
    width: 4px; height: 4px; background: #3b1757; border-radius: 50%;
    box-shadow: 
        10px 0 0 #3b1757, 20px 0 0 #3b1757, 30px 0 0 #3b1757,
        0 10px 0 #3b1757, 10px 10px 0 #3b1757, 20px 10px 0 #3b1757, 30px 10px 0 #3b1757,
        0 20px 0 #3b1757, 10px 20px 0 #3b1757, 20px 20px 0 #3b1757, 30px 20px 0 #3b1757,
        0 30px 0 #3b1757, 10px 30px 0 #3b1757, 20px 30px 0 #3b1757, 30px 30px 0 #3b1757;
    transform: rotate(-15deg);
}
/* =========================================
   ESTILOS PARA MAXIMIZAR Y MINIATURAS
   ========================================= */

/* Botón de maximizar */
.btn-maximize { background: linear-gradient(to bottom, #4992fc, #1860e6); font-size: 14px; line-height: 1; }

/* Clase que se activa al maximizar la ventana */
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 32px) !important; /* 32px es el alto de la barra de tareas */
    border-radius: 0 !important;
}
.window.maximized .title-bar { border-radius: 0 !important; }

/* Mejorar el aspecto de las miniaturas en las carpetas */
.folder-item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important; /* Corta la imagen perfecto como un cuadrado */
    object-position: top center; /* Muestra la parte de arriba de la web */
    border: 1px solid #999;
    background: white;
    padding: 3px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border-radius: 2px;
}