.tutorial-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .tutorial-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .tutorial-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
        }

        .tutorial-image {
            aspect-ratio: 16/9;
            overflow: hidden;
            position: relative;
        }

        .tutorial-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .tutorial-card:hover .tutorial-image img {
            transform: scale(1.05);
        }

        .tutorial-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .tutorial-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
            gap: 1rem;
        }

        .tutorial-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .tutorial-title a {
            color: var(--text-primary);
            text-decoration: none;
        }

        .tutorial-title a:hover {
            color: var(--accent-color);
        }

        .tutorial-meta {
            display: flex;
            gap: 0.5rem;
            margin-top: auto;
        }

        .tutorial-info {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin-top: auto;
        }

        .tutorial-info span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .difficulty {
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
        }

        .difficulty.principiante { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
        .difficulty.intermedio { background: rgba(234, 179, 8, 0.1); color: #eab308; }
        .difficulty.avanzado { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

        .views {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            background: var(--bg-light);
        }

        /* Filtros sidebar */
        .filters-sidebar {
            position: sticky;
            top: 90px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            height: fit-content;
        }

        /* Header mejorado */
        .content-header {
            background: var(--bg-secondary);
            padding: 4rem 0;
            margin: -2rem -2rem 2rem -2rem; /* Márgenes negativos para compensar el padding del wrapper */
            text-align: center;
            position: relative;
            border-bottom: 1px solid var(--border-color);
        }

        .content-header::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(
                800px circle at 100% 100%,
                rgba(var(--accent-color-rgb), 0.05),
                transparent
            );
            pointer-events: none;
        }

        .content-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .content-header p {
            font-size: 1.1rem;
            opacity: 0.8;
        }

        /* Wrapper y contenedor principal */
        .main-wrapper {
            margin-left: 250px; /* Ancho del sidebar */
            min-height: 100vh;
            background: var(--bg-light);
            transition: all var(--transition-quick);
            padding-top: 70px; /* Altura del navbar */
        }

        .content-container {
            padding: 2rem;
        }

        /* Ajustes para sidebar colapsado */
        .main-wrapper.expanded {
            margin-left: 70px;
        }

        /* Estilos específicos para tutoriales */
        .tutorials-header {
            background: var(--bg-secondary);
            padding: 4rem 0;
            margin: -2rem -2rem 2rem -2rem;
            text-align: center;
            position: relative;
            border-bottom: 1px solid var(--border-color);
            border-radius: 0 0 24px 24px;
        }

        .tutorials-header::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(
                800px circle at 100% 100%,
                rgba(var(--accent-color-rgb), 0.1),
                transparent
            );
            pointer-events: none;
        }

        .tutorials-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .tutorials-header p {
            font-size: 1.1rem;
            opacity: 0.8;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Actualiza los estilos de los controles */
        .tutorials-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .tutorials-stats {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .tutorials-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-left: auto;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            background: var(--bg-light);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .filter-btn:hover,
        .filter-btn.active {
            border-color: var(--accent-color);
            background: rgba(var(--accent-color-rgb), 0.1);
            color: var(--accent-color);
        }

        .tutorials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .tutorial-card {
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .tutorial-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border-color: var(--accent-color);
        }

        .tutorial-card-image {
            aspect-ratio: 16/9;
            position: relative;
            overflow: hidden;
        }

        .tutorial-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .tutorial-card:hover .tutorial-card-image img {
            transform: scale(1.05);
        }

        .difficulty-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .difficulty-badge.principiante {
            background: #22c55e;
            color: white;
        }

        .difficulty-badge.intermedio {
            background: #eab308;
            color: white;
        }

        .difficulty-badge.avanzado {
            background: #ef4444;
            color: white;
        }

        .tutorial-card-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .tutorial-card-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }

        .tutorial-card-title a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .tutorial-card-title a:hover {
            color: var(--accent-color);
        }

        .tutorial-card-description {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
            flex: 1;
            display: -webkit-box;
            line-clamp: 3;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tutorial-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .tutorial-meta-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .tutorial-meta-info small {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .tutorial-meta-info i {
            color: var(--accent-color);
            font-size: 0.9rem;
        }

        .tutorial-btn {
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .tutorial-btn:hover {
            color: var(--accent-color);
            transform: translateX(4px);
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .tech-badge {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .load-more-section {
            text-align: center;
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .load-more-btn {
            padding: 1rem 2rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .load-more-btn:hover {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }

        /* Responsive */
        @media (max-width: 991.98px) {
            .main-wrapper {
                margin-left: 0;
                padding-top: 70px;
            }

            .content-header {
                margin: -1rem -1rem 1rem -1rem;
                padding: 3rem 0;
            }

            .content-header h1 {
                font-size: 2rem;
            }

            .content-container {
                padding: 1rem;
            }

            .main-wrapper.expanded {
                margin-left: 0;
            }

            .tutorials-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 1.5rem;
            }
            
            .tutorials-controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .tutorials-filters {
                margin-left: 0;
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .tutorials-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
            }

            .tutorials-stats {
                justify-content: center;
            }

            .tutorials-filters {
                margin-left: 0;
                justify-content: center;
                gap: 0.5rem;
                overflow-x: auto;
                padding-bottom: 0.5rem;
                -webkit-overflow-scrolling: touch;
            }

            .tutorials-filters::-webkit-scrollbar {
                height: 4px;
            }

            .tutorials-filters::-webkit-scrollbar-track {
                background: var(--bg-secondary);
                border-radius: 4px;
            }

            .tutorials-filters::-webkit-scrollbar-thumb {
                background: var(--border-color);
                border-radius: 4px;
            }

            .filter-btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.85rem;
                flex-shrink: 0;
            }

            #sortSelect {
                width: 100%;
                margin-top: 0.5rem;
            }
        }

        @media (max-width: 576px) {
            .tutorials-grid {
                grid-template-columns: 1fr;
            }
            
            .tutorials-header h1 {
                font-size: 2rem;
            }
            
            .tutorials-header {
                padding: 3rem 1rem;
            }
        }

        @media (max-width: 480px) {
            .tutorials-header {
                padding: 2rem 1rem;
            }

            .tutorials-header h1 {
                font-size: 1.75rem;
            }

            .tutorials-filters {
                flex-wrap: nowrap;
                justify-content: flex-start;
                padding: 0.5rem;
                margin: -0.5rem;
            }
        }