:root {
    --bg: #03050a;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --text-main: #f0f2f5;
    --text-dim: #94a3b8;
}

* { 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(3, 5, 10, 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 */
.hero-mini { padding: 120px 5% 40px; text-align: center; }
h1 { font-family: 'Fira Code', monospace; font-size: clamp(1.8rem, 6vw, 3rem); margin-bottom: 10px; }
.highlight { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }

/* Grid de herramientas */
.tools-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; padding: 20px 5% 40px;
}
.tool-card { background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; transition: 0.4s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.tool-image { width: 100%; height: 200px; overflow: hidden; background: #000; }
.tool-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; opacity: 0.8; }
.tool-info { padding: 20px; }
.tool-info h3 { color: var(--accent); font-size: 1.25rem; margin-bottom: 10px; font-family: 'Fira Code', monospace; }
.tool-info p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }

/* Sección extra */
.more-oss { padding: 40px 5%; }
.more-content { max-width: 800px; margin: 0 auto; border: 1px dashed var(--accent); padding: 30px 20px; border-radius: 15px; text-align: center; background: rgba(0, 229, 255, 0.02); }
.cta-oss { display: inline-block; margin-top: 20px; padding: 12px 25px; background: var(--accent); color: #000; text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; }
.cta-oss:hover { box-shadow: 0 0 20px var(--accent); transform: scale(1.05); }

/* MODAL POP-UP (Centrado para PC y 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: 60px 20px;
    text-align: center;
    background-color: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.main-footer p { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 1px; }

@keyframes zoomAnim { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }

/* Ajustes para Celular */
@media (max-width: 600px) {
    .tools-container { grid-template-columns: 1fr; }
    .hero-mini { padding-top: 100px; }
}