.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header del blog */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

/* Layout principal */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Sección principal de artículos */
.blog-main {
    animation: fadeIn 1s ease;
}

/* Artículo destacado */
.featured-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-post .post-image {
    height: 350px;
    overflow: hidden;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.featured-post .post-content {
    padding: 25px;
}

.featured-post .post-category {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-post .post-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.featured-post .post-excerpt {
    margin-bottom: 20px;
    color: #555;
}

.featured-post .post-meta {
    display: flex;
    align-items: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.featured-post .post-date {
    margin-right: 20px;
}

.featured-post .read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.featured-post .read-more:hover {
    color: #2980b9;
}

/* Grid de posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-card .post-image {
    height: 200px;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-category {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-card .post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    color: #95a5a6;
    font-size: 0.8rem;
}

.post-card .read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.post-card .read-more:hover {
    color: #2980b9;
}

/* Sidebar */
.blog-sidebar {
    animation: fadeInRight 1s ease;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* Widget de búsqueda */
.search-widget {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-widget input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-widget button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.search-widget button:hover {
    color: #3498db;
}

/* Widget de categorías */
.categories-widget ul {
    list-style: none;
}

.categories-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
}

.categories-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: #3498db;
}

.categories-widget .category-count {
    background-color: #ecf0f1;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Widget de artículos recientes */
.recent-posts-widget .recent-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.recent-posts-widget .recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-widget .recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.recent-posts-widget .recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-posts-widget .recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.recent-posts-widget .recent-post-info a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-widget .recent-post-info a:hover {
    color: #3498db;
}

.recent-posts-widget .recent-post-date {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Widget de suscripción */
.subscribe-widget p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.subscribe-widget form {
    display: flex;
    flex-direction: column;
}

.subscribe-widget input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.subscribe-widget input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.subscribe-widget button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-widget button:hover {
    background-color: #2980b9;
}

/* Sección de video */
.video-section {
    margin-top: 60px;
    animation: fadeIn 1.2s ease;
}

.video-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.video-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 5px;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    animation: fadeIn 1.5s ease;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #3498db;
    color: #fff;
}

.pagination a.active {
    background-color: #3498db;
    color: #fff;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividad */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
}