/* === RESET Y CONFIGURACIÓN BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fbfd;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === HEADER / HERO === */
.hero {
    background: linear-gradient(135deg, #4a6cf7, #6366f1);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

/* === BOTONES DE NAVEGACIÓN === */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Añadir manejo genérico de estado 'active' y foco accesible */
.btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Indicador de foco para navegación por teclado */
.btn:focus-visible {
    outline: 3px solid rgba(74,108,247,0.18);
    outline-offset: 3px;
}

.btn-home {
    background: #ff6b6b;
    color: white;
}
.btn-home:hover {
    background: #ff5252;
}

.btn-about {
    background: #4ecdc4;
    color: white;
}
.btn-about:hover {
    background: #26a69a;
}

.btn-blog {
    background: #ffe066;
    color: #222;
}
.btn-blog:hover, .btn-blog.active {
    background: #ffd54f;
}

/* === PUBLICACIONES === */
.section-title {
    text-align: center;
    margin: 2.5rem 0 1.8rem;
    color: #2d3748;
    font-size: 1.8rem;
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #6366f1;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.post-card h3 a {
    color: #4a5568;
    font-size: 1.3rem;
    font-weight: 700;
}

.post-card h3 a:hover {
    color: #4a6cf7;
}

.post-card p {
    margin-top: 0.6rem;
    color: #666;
}

/* === FOOTER === */
footer {
    background: #2d3748;
    color: #e2e8f0;
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 3rem;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .posts-grid {
        gap: 1rem;
    }

    .post-card h3 a {
        font-size: 1.15rem;
    }
}