 :root {
            --pink: #ff007f;
            --cyan: #00f3ff;
            --bg: #0b0114;
            --grid: rgba(0, 243, 255, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: var(--bg);
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            overflow-x: hidden;
            scrollbar-width: none;
        }

        /* Oculta scrollbars */
        *::-webkit-scrollbar,
        body::-webkit-scrollbar {
            display: none;
        }

        /* Bloquea scroll cuando un modal está abierto */
        body:has(.trigger-check:checked) {
            overflow: hidden;
        }

        /* =========================
           FONDO RETRO
        ========================= */

        .background-retro {
            position: fixed;
            inset: 0;
            z-index: -2;
            background:
                linear-gradient(
                    to bottom,
                    #140526 0%,
                    #05000a 60%,
                    #1a022d 100%
                );
        }

        .retro-sun {
            position: absolute;
            top: 15%;
            left: 50%;
            transform: translateX(-50%);

            width: 300px;
            height: 300px;

            border-radius: 50%;

            background:
                linear-gradient(
                    to bottom,
                    var(--pink) 0%,
                    #ffaa00 100%
                );

            box-shadow:
                0 0 60px rgba(255, 0, 127, 0.5);

            z-index: -1;

            mask-image:
                linear-gradient(
                    white 0% 40%,
                    transparent 40% 45%,
                    white 45% 55%,
                    transparent 55% 62%,
                    white 62% 70%,
                    transparent 70% 80%,
                    white 80% 87%,
                    transparent 87% 95%,
                    white 95% 100%
                );

            -webkit-mask-image:
                linear-gradient(
                    white 0% 40%,
                    transparent 40% 45%,
                    white 45% 55%,
                    transparent 55% 62%,
                    white 62% 70%,
                    transparent 70% 80%,
                    white 80% 87%,
                    transparent 87% 95%,
                    white 95% 100%
                );
        }

        .grid-container {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 45vh;

            perspective: 200px;
            overflow: hidden;

            border-top: 2px solid var(--pink);

            box-shadow:
                0 -10px 30px rgba(255, 0, 127, 0.3);
        }

        .grid-lines {
            position: absolute;

            top: -100%;
            left: -50%;

            width: 200%;
            height: 300%;

            background-image:
                linear-gradient(
                    transparent 0%,
                    var(--grid) 2px,
                    transparent 2px
                ),
                linear-gradient(
                    90deg,
                    transparent 0%,
                    var(--grid) 2px,
                    transparent 2px
                );

            background-size: 60px 60px;

            transform: rotateX(65deg);

            animation: gridMove 4s linear infinite;
        }

        @keyframes gridMove {
            to {
                background-position: 0 60px;
            }
        }

        /* =========================
           TEXTOS
        ========================= */

        .neon-text-pink {
            text-shadow:
                0 0 5px #fff,
                0 0 10px var(--pink),
                0 0 20px var(--pink);
        }

        .neon-text-cyan {
            text-shadow:
                0 0 5px #fff,
                0 0 10px var(--cyan),
                0 0 20px var(--cyan);
        }

        header {
            text-align: center;
            padding: 5rem 1rem 2rem;
        }

        h1 {
            font-family: 'Press Start 2P', cursive;
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
        }

        header p {
            font-size: 1.1rem;
            letter-spacing: 4px;
            text-transform: uppercase;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem 6rem;
        }

        /* =========================
           GRID
        ========================= */

        .projects-grid {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
        }

        .project-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .trigger-check {
            display: none;
        }

        /* =========================
           OVERLAYS
        ========================= */

        .open-overlay {
            position: absolute;

            top: 0;
            left: 0;
            right: 0;
            bottom: 70px;

            z-index: 5;

            cursor: pointer;
        }

        .close-overlay {
            display: none;

            position: fixed;
            inset: 0;

            width: 100vw;
            height: 100vh;

            background: rgba(4, 1, 8, 0.85);

            backdrop-filter: blur(8px);

            will-change: backdrop-filter;

            z-index: 90;
        }

        /* =========================
           CARD
        ========================= */

        .project-card {
            background: rgba(11, 1, 20, 0.95);

            border-radius: 8px;
            padding: 2rem;

            display: flex;
            flex-direction: column;
            justify-content: space-between;

            border: 2px solid var(--cyan);

            box-shadow:
                0 0 15px var(--cyan),
                inset 0 0 10px rgba(0, 243, 255, 0.3);

            height: 100%;
            min-height: 30vh;

            transition:
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s,
                border-color 0.4s;

            user-select: text;
        }

        .project-wrapper:hover .project-card {
            transform: translateY(-8px);

            border-color: var(--pink);

            box-shadow:
                0 0 25px var(--pink),
                inset 0 0 10px rgba(255, 0, 127, 0.4);
        }

        /* =========================
           MODAL ABIERTO
        ========================= */

        .trigger-check:checked ~ .open-overlay {
            display: none;
        }

        .trigger-check:checked ~ .close-overlay {
            display: block;
        }

        .trigger-check:checked ~ .project-card {
            position: fixed;

            top: 50%;
            left: 50%;

            transform: translate(-50%, -50%);

            width: 90vw;
            max-width: 600px;

            max-height: 85vh;

            z-index: 100;

            border-color: #fff;

            box-shadow:
                0 0 15px #fff,
                0 0 30px var(--pink),
                0 0 60px var(--cyan),
                inset 0 0 30px rgba(255, 0, 127, 0.6);
        }

        .card-body {
            overflow-y: auto;
            margin-bottom: 1.5rem;
            padding-right: 5px;
        }

        .project-card h3 {
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }

        .project-card p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #d1c7dc;
        }

        /* =========================
           BOTÓN CERRAR
        ========================= */

        .close-btn {
            position: absolute;

            top: 15px;
            right: 20px;

            font-size: 2.5rem;
            line-height: 1;

            color: var(--pink);

            cursor: pointer;

            display: none;

            z-index: 110;

            transition:
                transform 0.2s,
                color 0.2s;
        }

        .close-btn:hover {
            transform: scale(1.2);

            color: #fff;

            text-shadow:
                0 0 15px var(--pink);
        }

        .trigger-check:checked ~ .project-card .close-btn {
            display: block;
        }

        /* =========================
           BOTÓN
        ========================= */

        .btn {
            display: block;

            text-align: center;

            padding: 0.7rem 1.5rem;

            margin-top: auto;

            font-weight: bold;
            font-size: 0.85rem;

            letter-spacing: 2px;
            text-transform: uppercase;

            text-decoration: none;

            color: #fff;

            background: transparent;

            border: 2px solid var(--pink);
            border-radius: 4px;

            transition: all 0.3s ease;

            box-shadow:
                0 0 10px rgba(255, 0, 127, 0.4);
        }

        .btn:hover {
            background: var(--pink);

            color: #000;

            box-shadow:
                0 0 25px var(--pink);
        }

        /* =========================
           FOOTER
        ========================= */

        footer {
            text-align: center;

            padding: 2rem 1rem;

            font-size: 0.8rem;

            color: #8b7ca2;

            background:
                rgba(11, 1, 20, 0.9);
        }

        /* =========================
           RESPONSIVE
        ========================= */

        @media (max-width: 768px) {

            h1 {
                font-size: 1.4rem;
                line-height: 1.5;
            }

            header p {
                font-size: 0.8rem;
                letter-spacing: 2px;
            }

            .retro-sun {
                width: 220px;
                height: 220px;
            }

            .project-card {
                padding: 1.5rem;
            }

            .trigger-check:checked ~ .project-card {
                width: 95vw;
                max-height: 90vh;
            }
        }