* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Apple Color Emoji", 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #2e7d32;
}

.subtitulo {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.fecha {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #444;
}

.leer-mas {
    display: inline-block;
    margin-top: 10px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.leer-mas:hover {
    color: #1b5e20;
}

.paginador {
    text-align: center;
    margin-top: 30px;
}

.paginador a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #e0f2f1;
    color: #00695c;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.paginador a:hover {
    background-color: #b2dfdb;
}

.paginador a.activo {
    background-color: #26a69a;
    color: white;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .card h2 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}

.articulo-detalle {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Apple Color Emoji", 'Segoe UI', sans-serif;
}

.articulo-detalle h1 {
    font-size: 2.2rem;
    color: #2e7d32;
    margin-bottom: 15px;
}

.articulo-detalle .fecha {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 25px;
}

.articulo-detalle .contenido {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
}

.articulo-detalle .btn-volver {
    display: inline-block;
    padding: 12px 20px;
    background-color: #2e7d32;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.articulo-detalle .btn-volver:hover {
    background-color: #1b5e20;
}

/* Responsive */

@media (max-width: 600px) {
    .articulo-detalle {
        padding: 20px;
        margin: 15px;
    }
    .articulo-detalle h1 {
        font-size: 1.6rem;
    }
    .articulo-detalle .contenido {
        font-size: 1rem;
    }
    .articulo-detalle .btn-volver {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}
