/* Estilos generales */
body {
    font-family: "MS Sans Serif", Arial, sans-serif;
    background-color: #008080;
    margin: 0;
    padding: 20px;
    color: #000;
    font-size: 11px;
}

/* Ventana estilo Windows 98 */
.window {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-text {
    font-weight: bold;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.window-body {
    padding: 10px;
}

/* Barra de menú */
.menu-bar {
    background-color: #c0c0c0;
    border: 1px inset #c0c0c0;
    padding: 2px;
    margin-bottom: 10px;
}

.menu-bar-item {
    padding: 3px 10px;
    margin-right: 5px;
    display: inline-block;
}

.menu-bar-item:hover {
    background-color: #000080;
    color: white;
}

/* Botones estilo Windows 98 */
button {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 3px 10px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
}

button:active {
    border: 2px inset #c0c0c0;
}

/* Galería de imágenes */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.gallery-item:hover {
    background-color: #e0e0e0;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border: 1px inset #c0c0c0;
}

.gallery-item p {
    margin: 5px 0 0;
    font-weight: bold;
}

/* Página de vista detallada */
.fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 10px;
}

.fullscreen-content img, .fullscreen-content iframe {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.back-button {
    display: block;
    margin: 10px auto 0;
}

/* Barra de estado */
.status-bar {
    background-color: #c0c0c0;
    border: 1px inset #c0c0c0;
    padding: 2px 5px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}