/* Blog Educativo Styles */

:root {
    --blog-gradient: linear-gradient(135deg, #0071bc 0%, #29abe2 100%);
    --featured-gradient: linear-gradient(135deg, #29abe2 0%, #0071bc 100%);
    --learning-gradient: linear-gradient(135deg, #0071bc 0%, #1a3a53 100%);
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #0071bc 100%);
    --light-gray: #e9ecef;
}

/* Blog Hero Section */
.blog-hero {
    background: var(--blog-gradient);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></g></svg>') repeat;
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.learning-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.knowledge-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.knowledge-circle i {
    font-size: 3rem;
    color: white;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-float {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite var(--delay);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-float:nth-child(1) {
    top: 10%;
    left: 10%;
}

.icon-float:nth-child(2) {
    top: 10%;
    right: 10%;
}

.icon-float:nth-child(3) {
    bottom: 10%;
    left: 10%;
}

.icon-float:nth-child(4) {
    bottom: 10%;
    right: 10%;
}

.icon-float i {
    color: white;
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Back Link Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* Filters Section - Layout Responsive Mejorado */
.blog-filters {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    padding: 25px 0;
    border-bottom: 2px solid rgba(0, 113, 188, 0.1);
    position: relative;
    z-index: 100;
}

.blog-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.filters-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.search-box {
    position: relative;
    max-width: 350px;
    min-width: 280px;
    flex-shrink: 0;
}

/* Mejorar scroll horizontal en móviles */
.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tabs::-webkit-scrollbar-track {
    background: rgba(0, 113, 188, 0.1);
    border-radius: 10px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 2px solid rgba(0, 113, 188, 0.15);
    border-radius: 30px;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
    min-height: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 113, 188, 0.08);
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
}

.filter-tab i {
    font-size: 1.1rem;
    transition: all 0.4s ease;
    opacity: 0.8;
}

.filter-tab:hover i {
    transform: scale(1.15) rotate(5deg);
    opacity: 1;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.35);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--secondary), var(--primary));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.7;
}

.filter-tab.active i {
    opacity: 1;
    color: white;
    transform: scale(1.1);
}

.filter-tab.active:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.4);
}

.search-box {
    position: relative;
    max-width: 350px;
    min-width: 280px;
    flex-shrink: 0;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid rgba(0, 113, 188, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 113, 188, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.1), 0 4px 15px rgba(0, 113, 188, 0.15);
    background: #ffffff;
}

.search-box input::placeholder {
    color: var(--gray);
    opacity: 0.8;
}

/* Featured Content */
.featured-content {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
}

.featured-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.featured-content h2 i {
    color: var(--accent);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.featured-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.main-feature {
    height: fit-content;
}

.article-image {
    position: relative;
    height: 250px;
    background: var(--featured-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 2.5rem;
    color: white;
}

.article-category {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
    font-weight: 700;
    text-shadow: none;
    border: 1px solid rgba(0, 113, 188, 0.2);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.article-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.article-content.compact {
    padding: 20px;
}

.article-content h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
    margin-top: 10px; /* Evita superposición con category */
}

.article-content h4 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
    margin-top: 8px; /* Evita superposición con category */
}

.article-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-favorite {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
}

.btn-favorite:hover,
.btn-favorite.favorited {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-secondary .featured-article {
    display: flex;
    align-items: stretch;
    padding: 0;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
}

.featured-secondary .article-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-secondary .article-icon {
    width: 120px;
    height: auto;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.featured-secondary .article-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.featured-secondary .featured-article:hover .article-icon::before {
    transform: translateX(100%);
}

.featured-secondary .article-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Content Grid */
.blog-content {
    padding: 60px 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
}

.content-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: white;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: white;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.articles-grid.list-view {
    grid-template-columns: 1fr;
}

.articles-grid.list-view .article-card {
    display: flex;
    align-items: stretch;
    padding: 0;
    height: auto;
}

.articles-grid.list-view .card-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-grid.list-view .article-icon {
    width: 120px;
    height: auto;
    margin: 0;
    border-radius: 0 0 0 15px;
    align-self: stretch;
}

.article-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 113, 188, 0.08);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 113, 188, 0.12);
    border-color: rgba(0, 113, 188, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 25px 25px 0;
    position: relative;
    z-index: 5;
    margin-bottom: 5px;
    flex-wrap: wrap;
    min-height: 40px;
}

.article-level {
    background: linear-gradient(135deg, var(--accent) 0%, #e55a2a 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 25px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.article-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 113, 188, 0.25);
    position: relative;
    overflow: hidden;
}

.article-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.article-card:hover .article-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.article-icon i {
    font-size: 2rem;
    color: white;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Íconos específicos por categoría */
.article-card[data-category="guias"] .article-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.article-card[data-category="tutoriales"] .article-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, #1f9fd1 100%);
}

.article-card[data-category="herramientas"] .article-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #e55a2a 100%);
}

.article-card[data-category="normativa"] .article-icon {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
}

.card-content h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
    margin-top: 0;
    font-weight: 700;
    text-align: center;
    clear: both;
}

.card-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, rgba(0, 113, 188, 0.1) 0%, rgba(41, 171, 226, 0.1) 100%);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 113, 188, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-2px);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 113, 188, 0.1);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.article-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-right: 5px;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-sm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.btn-sm:hover::before {
    width: 300px;
    height: 300px;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Learning Path */
.learning-path {
    background: var(--learning-gradient);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.learning-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><path d="M20 20l10-10v10z"/></g></g></svg>') repeat;
    opacity: 0.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.section-header h2 i {
    color: rgba(255, 255, 255, 0.8);
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.path-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
    position: relative;
}

.path-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 100%;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step-marker {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    z-index: 2;
    position: relative;
}

.step-content h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    opacity: 0.9;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.path-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.path-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* CTA Section */
.blog-cta {
    padding: 80px 0;
    background: var(--blog-gradient);
    color: white;
}

.blog-cta .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 25px;
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-visual {
    flex-shrink: 0;
}

.support-illustration {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.support-illustration i {
    font-size: 4rem;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
    
    .blog-hero-content {
        max-width: 100%;
    }
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .filters-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .search-box {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 968px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-secondary .featured-article {
        flex-direction: row;
        align-items: stretch;
    }
    
    .featured-secondary .article-icon {
        width: 120px;
        height: auto;
        border-radius: 0;
        min-height: 120px;
    }
    
    .path-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .path-step:not(:last-child)::after {
        display: none;
    }
    
    .blog-cta .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .blog-filters {
        padding: 15px 0;
        position: static; /* Remove sticky on mobile */
        background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    }
    
    .filters-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
        flex: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .search-box {
        max-width: none;
        min-width: 0;
        width: 100%;
        order: -1; /* Colocar búsqueda arriba en móviles */
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 42px;
        border-radius: 25px;
        gap: 6px;
        transform: none !important; /* Disable transform on mobile */
        box-shadow: 0 2px 8px rgba(0, 113, 188, 0.1);
    }
    
    .filter-tab:hover {
        transform: none !important; /* Disable hover transforms on mobile */
    }
    
    .filter-tab.active {
        transform: none !important; /* Disable active transforms on mobile */
    }
    
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .content-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        margin: 0;
        width: 100%;
        max-width: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-category {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        margin-top: 0;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
        border-radius: 18px;
    }
    
    .article-icon i {
        font-size: 1.8rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .card-content p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    
    .card-header {
        padding: 20px 20px 0;
        gap: 10px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-footer {
        padding: 18px 20px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .featured-secondary .article-icon {
        width: 100px;
        min-height: 100px;
    }
    
    .featured-secondary .article-icon i {
        font-size: 2rem;
    }
    
    .back-link {
        margin-bottom: 15px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-content,
    .blog-content,
    .learning-path,
    .blog-cta {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter States */
.article-card.hidden {
    display: none;
}

.article-card.show {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading .article-card {
    opacity: 0.5;
    pointer-events: none;
}

.loading .load-more-btn {
    opacity: 0.5;
    pointer-events: none;
}

.loading .load-more-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.filter-tab:focus,
.view-btn:focus,
.btn:focus,
.path-link:focus,
.back-link:focus {
    outline: 3px solid rgba(0, 113, 188, 0.5);
    outline-offset: 2px;
}

.search-box input:focus {
    outline: 3px solid rgba(0, 113, 188, 0.3);
    outline-offset: 2px;
}

/* Estados de interacción mejorados */
.article-card {
    cursor: pointer;
    position: relative;
}

.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.article-card:focus-within::after {
    opacity: 0.05;
}

.article-card:focus-within {
    outline: 3px solid rgba(0, 113, 188, 0.4);
    outline-offset: 2px;
}

.featured-article {
    cursor: pointer;
    position: relative;
}

.featured-article::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.featured-article:focus-within::after {
    opacity: 0.05;
}

.featured-article:focus-within {
    outline: 3px solid rgba(0, 113, 188, 0.4);
    outline-offset: 2px;
}

/* Mejoras en animaciones de los íconos */
.article-card:hover .article-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 113, 188, 0.35);
}

.featured-article:hover .article-icon {
    transform: scale(1.05);
}

/* Estados de nivel más específicos */
.article-level.basico {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
}

.article-level.intermedio {
    background: linear-gradient(135deg, var(--secondary) 0%, #1f9fd1 100%);
}

.article-level.avanzado {
    background: linear-gradient(135deg, var(--accent) 0%, #e55a2a 100%);
}

/* Print styles */
@media print {
    .blog-hero,
    .blog-filters,
    .blog-cta,
    .cta-visual,
    header,
    footer {
        display: none !important;
    }
    
    .featured-content,
    .blog-content {
        padding: 20px 0 !important;
    }
    
    .article-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
