
       /* Base Styles & Variables */
        :root {
            --bg-dark: #121212;
            --bg-card: #1f1f1f;
            --bg-card-alt: #242423;
            --accent: #e74c3c;
            --accent-hover: #c0392b;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --border: #333;
            --shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-dark);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
        }

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

        /* HEADER Responsive */
        header {
            background-color: var(--bg-card);
            color: white;
            padding: 1rem 5%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .Name h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .container-menu nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .container-menu nav ul li a {
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .container-menu nav ul li a:not(.btn-contact-nav):hover {
            background-color: var(--border);
            color: #ffffff;
        }

        .btn-contact-nav {
            background-color: var(--accent) !important;
            color: white !important;
            padding: 0.6rem 1.2rem !important;
            border-radius: 50px !important;
            font-weight: bold !important;
            box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
        }

        .btn-contact-nav:hover {
            background-color: var(--accent-hover) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(231, 76, 60, 0.5);
        }

        /* MAIN Content */
        main {
            flex-grow: 1;
            padding: 2rem 5%;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin: 0 0 0.5rem 0;
            color: var(--text-primary);
        }

        .subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            font-size: 1.1rem;
        }

        /* FILTROS */
        .filter-bar {
            display: flex;
            justify-content: center;
            gap: 0.8rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: 0.3s;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        /* GRID DE PROYECTOS */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 4rem;
        }

        .project-card {
            background-color: var(--bg-card);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.4s ease;
            display: flex;
            flex-direction: column;
            opacity: 1;
            transform: scale(1);
        }

        .project-card.hidden {
            display: none;
        }

        .project-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent);
            box-shadow: var(--shadow);
        }

        .project-thumb {
            height: 200px;
            background: #252525;
            position: relative;
            overflow: hidden;
        }

        .project-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .project-card:hover .project-thumb img {
            transform: scale(1.1);
        }

        .project-body {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-category {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .project-body h3 {
            margin: 0 0 0.8rem 0;
            font-size: 1.3rem;
            color: #fff;
        }

        .project-body p {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tech-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: auto;
        }

        .tag {
            font-size: 0.7rem;
            background: #2a2a2a;
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
            color: #ccc;
        }

        /* PAGINACIÓN */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .page-link {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }

        .page-link.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        .page-link:hover:not(.active) {
            background: #333;
        }

        /* FOOTER Responsive */
        footer {
            background-color: var(--bg-card);
            padding: 4rem 5% 2rem;
            margin-top: 5rem;
            border-top: 1px solid var(--border);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto 3rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }

        .footer-section h4 {
            color: var(--accent);
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
        }

        .footer-section p, .footer-section a {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
            transition: color 0.3s;
        }

        .footer-section a:hover { color: white; }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            background: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: 0.3s;
            font-size: 1.2rem;
        }

        .social-icon:hover {
            background: var(--accent);
            transform: translateY(-3px);
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            color: #666;
            font-size: 0.8rem;
            text-align: center;
        }

     @media (max-width: 768px) {
            header {
                flex-direction: column;
                padding: 1.5rem 1rem;
                gap: 1rem;
            }
            .container-menu nav ul {
                gap: 0.8rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .container-menu nav ul li a {
                font-size: 0.8rem;
                padding: 0.4rem 0.6rem;
            }
            main {
                padding: 2rem 5%;
            }
            .project-hero {
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 480px) {
            .Name h2 {
                font-size: 1.2rem;
            }
            .btn-contact-nav {
                padding: 0.5rem 1rem !important;
            }
        }