:root {
    --primary: #2ecc71;
    --primary-hover: #27ae60;
    --dark-overlay: rgba(10, 15, 24, 0.85);
    --glass: rgba(20, 20, 20, 0.7);
    --text: #e0e0e0;
    --card-bg: rgba(30, 30, 30, 0.6);
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(to bottom, var(--dark-overlay), rgba(10, 15, 24, 0.95)),
                url('../img/cybersinfronteras_bkg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* --- Navegación --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 204, 113, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.nav-brand span { color: var(--primary); }

.nav-links a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* --- Layout Contenido --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Grid de Artículos (Cargado por JSON) --- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
    border-color: var(--primary);
}

.article-card h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.article-card p {
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem;
    color: #777;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

/* --- Home Specifics --- */
.home-center {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.btn-main {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-main:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin: 5px 10px; }
}
