/* ================================================================= */
/* ESTILOS GLOBALES RETRO / CYBERPUNK - TERROR DEL PLANETA (CsO)      */
/* ================================================================= */

* {
    box-sizing: border-box;
    cursor: crosshair;
}

body.cso-body {
    background-color: #000000;
    color: #00ffcc;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
}

/* ================================================================= */
/* BARRA SUPERIOR ESTILO WINDOWS 95 / NETSCAPE                      */
/* ================================================================= */

.win95-bar {
    background: navy;
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 2px solid #fff;
}

.win-buttons {
    display: flex;
    gap: 2px;
}

.win-btn {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ================================================================= */
/* MARQUESINA DE FLUJOS                                              */
/* ================================================================= */

.marquee-container {
    background: #ff0055;
    color: #ffff00;
    border-bottom: 2px dashed #00ffcc;
    font-weight: bold;
    font-size: 14px;
    padding: 2px 0;
}

/* ================================================================= */
/* CONTENEDOR PRINCIPAL Y NAVEGACIÓN                                 */
/* ================================================================= */

.container {
    max-width: 900px;
    margin: 20px auto;
    border: 2px ridge #00ffcc;
    padding: 15px;
    background: #050505;
}

.retro-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: #111;
    border: 2px solid #00ffcc;
    padding: 8px;
    margin-bottom: 20px;
    gap: 5px;
}

.nav-link {
    color: #ff0055;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 6px;
}

.nav-link:hover {
    background: #ff0055;
    color: #000;
}

/* ================================================================= */
/* TÍTULOS Y GLITCH                                                  */
/* ================================================================= */

.glitch-title {
    font-size: 2.2rem;
    text-align: center;
    color: #ff0055;
    text-shadow: 3px 3px #00ffcc, -3px -3px #ffff00;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ================================================================= */
/* FIELDSETS Y TERMINAL CON SCROLL                                   */
/* ================================================================= */

.retro-fieldset {
    border: 2px solid #ff0055;
    padding: 15px;
    margin-bottom: 20px;
    background: #0a0a0a;
}

.retro-fieldset legend {
    color: #ffff00;
    font-weight: bold;
    padding: 0 5px;
}

.terminal-screen {
    height: 120px;
    overflow-y: auto;
    background: #000;
    border: 1px inset #00ffcc;
    padding: 10px;
    font-size: 0.85rem;
}

.terminal-line {
    margin: 0 0 5px 0;
    color: #00ffcc;
}

/* ================================================================= */
/* MIX-MEDIA GRID Y COMPONENTES INTERACTIVOS                         */
/* ================================================================= */

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

.media-box {
    border: 2px dotted #ffff00;
    padding: 10px;
    background: #0f050f;
}

.media-box h3 {
    margin-top: 0;
    color: #ffff00;
    font-size: 1rem;
    border-bottom: 1px dashed #ffff00;
    padding-bottom: 4px;
}

.pixel-box {
    width: 100%;
    height: 80px;
    background: repeating-linear-gradient(45deg, #ff0055, #ff0055 10px, #000 10px, #000 20px);
    margin-bottom: 10px;
    border: 1px solid #fff;
}

.retro-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    color: #000;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.retro-button:active {
    border-color: #000 #fff #fff #000;
}

/* ================================================================= */
/* GALERÍA Y FOTOS                                                   */
/* ================================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.photo-frame {
    border: 2px solid #c0c0c0;
    background: #1a1a1a;
    padding: 5px;
    text-align: center;
}

.photo-placeholder {
    width: 100%;
    height: 120px;
    background: #222;
    border: 1px dashed #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffcc;
    font-size: 0.8rem;
}

/* ================================================================= */
/* VISUALIZADOR DE AUDIO                                             */
/* ================================================================= */

.audio-visualizer {
    display: flex;
    justify-content: space-between;
    height: 40px;
    align-items: flex-end;
    background: #000;
    padding: 5px;
    border: 1px solid #00ffcc;
    margin-top: 10px;
}

.bar {
    width: 15%;
    background: #ff0055;
    animation: pulse-bar 0.8s infinite alternate;
}

.bar:nth-child(1) { animation-delay: 0.0s; background: #ff0055; }
.bar:nth-child(2) { animation-delay: 0.2s; background: #ffff00; }
.bar:nth-child(3) { animation-delay: 0.4s; background: #00ffcc; }
.bar:nth-child(4) { animation-delay: 0.1s; background: #ff00ff; }
.bar:nth-child(5) { animation-delay: 0.5s; background: #00ff00; }

@keyframes pulse-bar {
    0% { height: 10%; }
    100% { height: 100%; }
}

/* ================================================================= */
/* PIE DE PÁGINA (FOOTER)                                            */
/* ================================================================= */

.retro-footer {
    text-align: center;
    border-top: 2px groove #00ffcc;
    margin-top: 30px;
    padding: 10px;
    font-size: 0.75rem;
    color: #777;
}
