/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente y cuerpo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #2c2c2c;
    line-height: 1.7;
    font-size: 17px;
}

/* Encabezado */
header {
    background: #1e3a5f;
    color: #fff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease-in-out;
}

header:hover {
    background: #244a76;
}

header .logo h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
}

header .logo a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

header .logo a:hover {
    color: #ffd700;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
}

/* Contenido principal */
.content {
    flex: 3;
    padding-right: 40px;
}

/* Sidebar derecho */
.sidebar {
    flex: 1;
    background: #ffffff;
    padding: 25px;
    border-left: 4px solid #1e3a5f;
    position: sticky;
    top: 30px;
    height: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    animation: fadeIn 0.6s ease-out both;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 20px;
    color: #1e3a5f;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.sidebar ul li {
    margin: 12px 0;
}

.sidebar ul a {
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.sidebar ul a:hover {
    color: #d97706;
    padding-left: 5px;
}

/* Artículos */
.post {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #1e3a5f;
    border-radius: 6px;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.5s ease both;
}

.post:hover {
    transform: translateY(-5px);
}

.post h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.post a {
    text-decoration: none;
    color: #1e3a5f;
    transition: color 0.3s ease;
}

.post a:hover {
    color: #d97706;
}

/* Footer */
footer {
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    font-size: 14px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Animaciones */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
