* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
}

header {
    background: #1a1a2e;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header p {
    color: #888;
    margin-top: 5px;
    font-size: 14px;
}

nav {
    background: #16213e;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s;
}

nav a:hover, nav a.activo {
    background: #e94560;
    color: white;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.categoria {
    background: #e94560;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card-body h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.card-body h2 a:hover { color: #e94560; }

.card-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.detalle { max-width: 800px; }

.volver {
    display: inline-block;
    margin-bottom: 20px;
    color: #e94560;
    text-decoration: none;
}

.detalle article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detalle h2 {
    font-size: 28px;
    margin: 15px 0;
    line-height: 1.3;
}

.detalle-img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.descripcion {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin: 15px 0;
}

.contenido {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.leer-mas {
    display: inline-block;
    margin-top: 20px;
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
}

.vacio {
    text-align: center;
    color: #999;
    padding: 40px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    margin-top: 40px;
}
