html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    background: #000;
    color: #00ff66;
    font-family: monospace;
}

/* PANTALLA DE BIENVENIDA */
#pantallaBienvenida {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logoBienvenida {
    width:200px;
    opacity:0;
    filter:drop-shadow(0 0 6px #00ff66);
    transition:opacity 0.2s;
}

#textoBienvenida {
    margin-top:25px;
    font-size:26px;
    letter-spacing:2px;
    color:#00ff66;
    text-shadow:0 0 6px #00ff66;
}

#cursorBienvenida {
    font-size:26px;
    margin-top:5px;
    color:#00ff66;
    text-shadow:0 0 6px #00ff66;
}

/* BARRA SUPERIOR WIN95 */
.barra-w95 {
    width: 100%;
    min-height: 38px;
    background: linear-gradient(to bottom, #0055aa, #003f7d);
    border-bottom: 3px solid #002a52;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    color: white;
    box-shadow: 0 2px 0 #001d38;
    box-sizing: border-box;
}

#top-bar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999 !important;
}

#grupo-botones {
    display: flex;
    align-items: center;
    gap: 12px;
}

.barra-w95-titulo {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 0 #001d38;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#reloj {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 0 #001d38;
    padding-left: 10px;
    white-space: nowrap;
}

/* BOTONES WIN95 */
.btn-w95, .btn-premium-w95 {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #7d7d7d;
    border-bottom-color: #7d7d7d;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #000;
}

.btn-w95:active, .btn-premium-w95:active {
    border: 2px solid #7d7d7d;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    background: #b0b0b0;
}

.w95-select, .win95-input {
    background:#c0c0c0;
    border:2px solid #ffffff;
    border-right-color:#7d7d7d;
    border-bottom-color:#7d7d7d;
    padding:3px 6px;
    font-size:13px;
}

/* MAPA */
#contenedorMapa {
    position: fixed !important;
    top: 38px !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 38px) !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1 !important;
}

#iframeMapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    z-index: 1 !important;
    pointer-events: auto !important;
}

#iconos {
    display: none !important;
}

/* LOGIN */
#login-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 3px solid #00ff00;
    width: 350px;
    padding: 0;
    box-shadow: 0 0 15px #00ff00;
    z-index: 99999;
    display:none;
    color:#00ff66;
}

.login-header {
    background:#00ff00;
    color:#000;
    padding:4px 8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:bold;
}

.login-header button {
    background:#c0c0c0;
    border:2px solid #fff;
    border-right-color:#7d7d7d;
    border-bottom-color:#7d7d7d;
    cursor:pointer;
    width:24px;
    height:22px;
    padding:0;
}

#login-window form {
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

#login-window input {
    background:#000;
    border:1px solid #00ff66;
    color:#00ff66;
    padding:4px;
}

/* ANIMACIONES LOGIN */
@keyframes loginOpen {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; filter: blur(6px); }
    60% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; filter: blur(0); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes loginClose {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; filter: blur(6px); }
}

.login-anim-open { animation: loginOpen 0.35s ease-out forwards; }
.login-anim-close { animation: loginClose 0.25s ease-in forwards; }

#login-window.minimizado {
    height: 32px;
    overflow: hidden;
}

/* ESCAPARATE */
.ventana-escaparate {
    position: fixed;
    top: 120px;
    left: 120px;
    width: 620px;
    height: 520px;
    background: #c0c0c0;
    border: 3px solid #fff;
    border-right-color: #7d7d7d;
    border-bottom-color: #7d7d7d;
    box-shadow: 4px 4px 0 #000;
    z-index: 2000;
    display: none;
    font-family: 'MS Sans Serif';
}

.ventana-barra {
    background:#000080;
    color:#fff;
    padding:4px 8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:move;
    font-size:13px;
}

.escaparate-contenido {
    display:flex;
    height:calc(100% - 26px);
}

.escaparate-fotos {
    width:55%;
    padding:10px;
    overflow-y:auto;
    background:#000;
    color:#00ff66;
}

.escaparate-datos {
    width:45%;
    padding:10px;
    background:#111;
    color:#00ff66;
    display:flex;
    flex-direction:column;
}

.escaparate-chat-mensajes {
    flex:1;
    border:1px solid #00ff66;
    padding:6px;
    margin-bottom:8px;
    overflow-y:auto;
    background:#000;
}

/* MODAL FOTO */
.modal-foto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-imagen {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #00ff66;
    box-shadow: 0 0 20px #00ff66;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #00ff66;
    cursor: pointer;
}

/* TERMINAL */
.bc-terminal {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 360px;
    height: 520px;
    background: #000;
    border: 2px solid #00ff66;
    box-shadow: 0 0 12px #00ff66;
    display: flex;
    flex-direction: column;
    z-index: 2500;
}

.bc-hidden { display: none; }

/* ============================================================
   RESPONSIVE MÓVIL — Ventanas Win95 reales
   ============================================================ */
@media (max-width: 600px) {

    /* TODAS las ventanas Win95, sin excepción */
    .window,
    .ventana-escaparate,
    #ventanaEscaparate,
    .ventanaEscaparate,
    .ventanaFreemium,
    #ventanaFreemium,
    .ventanaPremium,
    #ventanaPremium {
        width: 92vw !important;
        height: auto !important;
        max-height: 70vh !important;
        left: 4vw !important;
        top: 90px !important;
        position: fixed !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
    }

    /* Barra de título */
    .ventana-barra,
    .window-title {
        padding: 10px !important;
        font-size: 16px !important;
    }

    /* Contenido interno del escaparate */
    .escaparate-contenido {
        flex-direction: column !important;
        height: auto !important;
    }

    .escaparate-fotos,
    .escaparate-datos {
        width: 100% !important;
        height: auto !important;
    }

    .escaparate-chat-mensajes {
        max-height: 200px !important;
    }
    @media only screen and (max-width: 600px) {

    * {
        max-width: 100% !important;
    }

    .ventana-escaparate,
    #ventanaEscaparate,
    .ventanaFreemium,
    #ventanaFreemium,
    .ventanaPremium,
    #ventanaPremium,
    .window {
        width: 92vw !important;
        height: auto !important;
        max-height: 70vh !important;
        left: 4vw !important;
        top: 90px !important;
        position: fixed !important;
        overflow-y: auto !important;
        z-index: 999999 !important;
    }
}

}
