:root {
    --primary: #2c3e50;
    --accent: #27ae60;
    --light: #f4f7f6;
    --text: #333;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo span { color: var(--accent); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 4rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }

.card-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

footer {
    background: var(--primary);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer a { color: #fff; }
/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: #fff;
    padding: 15px 5%;
    display: none; /* Se mantiene oculto hasta que el código detecte si es necesario */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    box-sizing: border-box;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 70%;
}

.cookie-banner a {
    color: var(--accent);
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn-rechazar {
    background-color: #555;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner p {
        max-width: 100%;
    }
}
