:root {
    --bg: #020408;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --text-main: #f0f2f5;
    --text-dim: #94a3b8;
    --terminal-bg: #1a1b26;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Navegación Responsiva */
.glass-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; background: rgba(2, 4, 8, 0.95);
    backdrop-filter: blur(15px); position: fixed; width: 100%; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-logo { height: 50px; mix-blend-mode: screen; filter: brightness(1.2); }
.back-btn { color: var(--accent); text-decoration: none; font-family: 'Fira Code', monospace; font-size: 0.8rem; }

/* Hero con Texto Flexible */
.hero-mini { padding: 120px 5% 40px; text-align: center; }
.path { font-family: 'Fira Code', monospace; color: var(--accent); opacity: 0.6; display: block; margin-bottom: 10px; font-size: 0.8rem; }
h1 { font-family: 'Fira Code', monospace; font-size: clamp(1.8rem, 6vw, 3rem); margin-bottom: 15px; }
.highlight { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }

/* Grid que cambia a 1 columna en móvil */
.linux-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; padding: 20px 5% 40px;
}
.linux-card { background: rgba(255, 255, 255, 0.02); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; }
.card-image { width: 100%; height: 180px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.card-body { padding: 20px; }
.tag { font-family: 'Fira Code', monospace; color: var(--accent); font-size: 0.7rem; margin-bottom: 8px; display: block; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }

/* Terminal Adaptable */
.terminal-footer { padding: 20px 5% 40px; }
.terminal-window { background: var(--terminal-bg); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.terminal-header { background: #32344a; padding: 10px 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-body { padding: 15px; font-family: 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.6; overflow-x: auto; white-space: nowrap; }
.user { color: #73daca; } .path-term { color: #7aa2f7; }
.output { color: #cfc9c2; padding-left: 10px; display: block; }

/* --- MODAL POP-UP (Perfeccionado para Celular) --- */
.modal-oss {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(3, 5, 10, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.modal-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1100px; animation: zoomAnim 0.3s ease; }
.modal-content-oss { max-width: 100%; max-height: 65vh; border: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 0 30px var(--accent-glow); object-fit: contain; }
#caption { margin-top: 15px; color: var(--accent); font-family: 'Fira Code', monospace; font-size: 0.95rem; text-align: center; width: 100%; padding: 10px; background: rgba(0, 229, 255, 0.05); border-radius: 8px; border: 1px solid rgba(0, 229, 255, 0.1); }
.close-modal { position: absolute; top: 15px; right: 20px; color: #fff; font-size: 40px; cursor: pointer; }

/* --- FOOTER --- */
.main-footer { padding: 40px 20px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.main-footer p { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.5px; }

@keyframes zoomAnim { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }

/* Ajuste móvil extra */
@media (max-width: 600px) {
    .linux-grid { grid-template-columns: 1fr; }
    .hero-mini { padding-top: 100px; }
}