/* Estilos base y utilidades globales */
* {
    margin: 0;
    transition: all 0.2s ease;
    scroll-behavior: smooth;
    color: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: url("images/mouse/cursor.png"), auto;
    overflow-x: hidden;
}

main > section[id] {
    scroll-margin-top: 6rem;
}

.section-gradient {
    background: linear-gradient(to bottom, var(--section-start-color), var(--section-end-color));
}

.clickable {
    cursor: url("images/mouse/pointer.png"), pointer;
}

/* Cabecera y navegación */
header {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    z-index: 6996;
    display: flex;
    position: sticky;
    top: 0;
    box-shadow: 0px 0px 5px 2px #02111B;

    background-color: #052f4a;

    padding: 10px;

    .left {
        display: inherit;
        align-items: center;
        margin-right: auto;

        p {
            margin-left: 15px;
            font-size: 30px;
        }

        a:last-child {
            text-decoration: none;
        }

        a:last-child:hover p {
            color: rgb(0, 0, 0);
        }

        img {
            height: 50px
        }
    }

    .right {
        display: inherit;
        align-items: center;
        margin-left: auto;

        a {
            text-decoration: none;
            font-size: 20px;
            padding: 10px;
        }

        a:hover {
            color: rgb(0, 0, 0);
        }
    }

    .menu-toggle {
        display: none;
    }
}

/* Portada */
#banner {
    height: 560px;
    --section-start-color: black;
    --section-end-color: #1f2d12;

    padding: 50px;
    padding-top: 80px;
    padding-bottom: 15px;

    .content {
        display: grid;
        grid-template-columns: 1fr 1fr;

        .links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;

            .play-link {
                padding: 4px 10px;
                margin-top: 12px;
                font-size: 28px;
                border-radius: 12px;
            }
        }

        .left {
            display: flex;
            flex-direction: column;
            align-items: center;

            p {
                font-size: 30px;
                margin-top: 40px;
                margin-bottom: 60px;
                text-align: center;
            }
        }

        .right {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
    }

    h1 {
        font-size: 90px;
        padding-left: 30px;
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

    img {
        width: 100%;
        max-width: 400px;
    }
}

/* Nest Invaders */
#nest-invaders {
    background-image: url(images/bg_forest_2.png);
    background-size: cover;

    text-align: center;

    padding: 50px;
    padding-bottom: 30px;

    .content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        h2 {
            margin: 0;
            font-size: clamp(2rem, 4vw, 3rem);
            line-height: 1.1;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        }

        .game-subtitle {
            margin: 12px 0 24px;
            font-size: clamp(1.2rem, 2.5vw, 1.6rem);
            font-weight: bold;
        }

        #caracteristicas {
            width: min(100%, 440px);
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            background: rgba(6, 22, 15, 0.8);
            font-size: 18px;
            text-align: left;

            p {
                margin: 10px 0;
            }

            ul {
                margin: 0 0 16px;
                padding-left: 24px;
                list-style: square;
            }

            > div {
                display: flex;
                align-items: center;
                gap: 8px;
            }

            img {
                width: auto;
                height: 55px;
                padding: 8px;
                margin: 0;
            }
        }
    }

    .right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-width: 0;
    }

    .right > div {
        width: 100%;
    }

    img {
        width: 100%;
        max-width: 400px;
        margin-top: 10px;
    }

    iframe {
        box-sizing: border-box;
        display: block;
        width: 100%;
        max-width: 640px;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 15px auto 0;
    }
}

/* Ajuste de la sección del juego */
@media (max-width: 900px) {
    #nest-invaders .content {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Enlaces de acción compartidos */
.play-link {
    display: inline-block;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    padding: 5px 15px;
    margin-top: 20px;
    font-size: 40px;
    background-color: #2f7e0d;
    text-decoration: none;

    border: none;
    border-radius: 15px;
}

.play-link:hover {
    background-color: #225a0a;
    transform: translateY(-1px);
}

.play-link:active {
    transform: translateY(1px);
}

/* Información de Nest Invaders */
#aboutNest {
    --section-start-color: #1f2d12;
    --section-end-color: #0a081d;

    padding-top: 30px;
    padding-bottom: 30px;

    h2 {
        font-size: 2em;
        margin-bottom: 0.67em;
        margin-top: 10px;
    }

    p {
        font-size: 20px;
    }

    .content {
        padding: 50px;
        padding-bottom: 15px;
        padding-top: 10px;

        align-items: center;

        #gameInfo {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 32px;
            align-items: center;

            #screenshots {
                position: relative;
                min-width: 0;
                overflow: hidden;
                border-radius: 16px;
                background: rgba(0, 0, 0, 0.3);

                #gameplayShowcase {
                    display: block;
                    width: 100%;
                    max-height: 480px;
                    padding: 0;
                    object-fit: contain;
                }

                .screenshot-arrow {
                    position: absolute;
                    z-index: 1;
                    top: 50%;
                    display: grid;
                    width: 48px;
                    height: 64px;
                    padding: 0;
                    place-items: center;
                    border: 1px solid rgba(255, 255, 255, 0.25);
                    border-radius: 12px;
                    background: rgba(5, 25, 16, 0.8);
                    font-size: 42px;
                    line-height: 1;
                    transform: translateY(-50%);
                    cursor: pointer;

                    &:hover {
                        background: #2f7e0d;
                    }

                    &:focus-visible {
                        outline: 3px solid #fff;
                        outline-offset: 3px;
                    }
                }

                .previous {
                    left: 12px;
                }

                .next {
                    right: 12px;
                }
            }

            #gameDescription {
                padding: 28px;
                border: 1px solid rgba(255, 255, 255, 0.18);
                border-radius: 16px;
                background: rgba(6, 22, 15, 0.72);

                h3 {
                    margin-bottom: 14px;
                    font-size: clamp(1.5rem, 2.5vw, 2rem);
                }

                p {
                    line-height: 1.6;
                }
            }
        }
    }
}

/* Efectos de imagen y preferencias de movimiento */
@media (hover: hover) {
    #aboutNest #screenshots img:hover,
    #devlog .hito-imagenes img:hover,
    #habilidades .skills-art-images img:hover,
    #habilidades .navmesh-visual img:hover,
    #marketing .metrics-panel img:hover {
        z-index: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 6px 10px rgb(0 0 0 / 35%));
    }
}

@media (prefers-reduced-motion: reduce) {
    #aboutNest #screenshots img,
    #aboutNest #screenshots img:hover,
    #devlog .hito-imagenes img,
    #devlog .hito-imagenes img:hover,
    #habilidades .skills-art-images img,
    #habilidades .skills-art-images img:hover,
    #habilidades .navmesh-visual img,
    #habilidades .navmesh-visual img:hover,
    #marketing .metrics-panel img,
    #marketing .metrics-panel img:hover {
        transition: none;
        transform: none;
        filter: none;
    }
}

/* Equipo y proyectos */
#aboutUs {
    padding: 50px;
    padding-bottom: 20px;
    padding-top: 30px;
    text-align: center;
    --section-start-color: #0a081d;
    --section-end-color: #14081d;

    h2 {
        margin-bottom: 40px;
        margin-top: 10px;
        font-size: 35px;
    }

    .content {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 50px;
        margin-bottom: 20px;
    }

    .member {
        padding: 15px;
        text-align: center;
        background-color: #5f2f8f;
        border: 3px solid black;
        clip-path: polygon(10% 0, 100% 0, 100% 85%, 90% 100%, 0 100%, 0 15%);
        position: relative;
        cursor: url("images/mouse/pointer.png"), pointer;
        font: inherit;
        transition: translate 0.2s ease, filter 0.2s ease;

        img {
            width: 100%;
            max-width: 180px;
            border-radius: 10px;
        }

        .nombre {
            font-size: 25px;
            margin-bottom: 10px;
        }
    }

    .member:focus-visible {
        outline: 3px solid white;
        outline-offset: 4px;
    }

    .member:hover {
        translate: 0 -4px;
        filter: drop-shadow(0 9px 20px rgb(0 0 0 / 30%));
    }

    .member:nth-child(5) {
        grid-column: 1 / 2;
        transform: translateX(50%);
    }

    .member:nth-child(6) {
        grid-column: 2 / 4;
        width: calc(50% - 50px);
        justify-self: center;
    }

    .member:nth-child(7) {
        grid-column: 4 / 5;
        transform: translateX(-50%);
    }

    .team-projects {
        max-width: 1000px;
        margin: 56px auto 20px;
    }

    .team-projects h3 {
        margin: 0 0 10px;
        font-size: 28px;
    }

    .team-projects-intro {
        margin-bottom: 24px;
        color: rgb(255 255 255 / 80%);
    }

    .team-projects-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border: 3px solid black;
        background-color: #5f2f8f;
        clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 12%);
        font: inherit;
        font-size: 20px;
        cursor: url("images/mouse/pointer.png"), pointer;
        transition: translate 0.2s ease, filter 0.2s ease;
    }

    .project-card img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 8px;
    }

    .project-card:hover {
        translate: 0 -4px;
        filter: drop-shadow(0 9px 20px rgb(0 0 0 / 30%));
    }

    .project-card:focus-visible {
        outline: 3px solid white;
        outline-offset: 4px;
    }
}

/* Objetivos y juegos referentes */
#objetivos {
    padding: 30px 50px 30px;
    --section-start-color: #14081d;
    --section-end-color: #05051a;
    color: #2c043b;

    h1, h2 {
        margin-bottom: 20px;
    }

    > h2 {
        font-size: 2em;
        margin-top: 0.67em;
    }

    .content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }

    .cartas-objetivos {
        padding: 10px;
        align-items: center;
    }

    .juegos-similares {
        display: flex;
        flex-direction: column;
        align-self: center;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        text-align: center;

        h2 {
            margin-bottom: 16px;
        }

        .grid {
            display: grid;
            width: 100%;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: clamp(10px, 2vw, 20px);
        }

        .grid > .referencia-card {
            min-width: 0;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            padding: 0;
            outline-offset: 4px;
        }

        #objetivos .juegos-similares .referencia-card {
            max-width: none;
            margin: 0;
            aspect-ratio: 16 / 9;
        }

        .referencia-card .carta {
            border: 1px solid rgb(255 255 255 / 22%);
            border-radius: 12px;
            box-shadow: 0 5px 14px rgb(0 0 0 / 20%);
        }

        .referencia-card:hover .carta,
        .referencia-card:focus .carta {
            box-shadow: 0 9px 20px rgb(0 0 0 / 30%);
        }

        .referencia-card .frente {
            display: block;
            overflow: hidden;
            padding: 0;
            background: #0c6da9;

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            h3 {
                position: absolute;
                right: 0;
                bottom: 0;
                left: 0;
                padding: 8px;
                background: rgb(5 5 26 / 78%);
                font-size: clamp(14px, 1.5vw, 19px);
                line-height: 1.25;
            }
        }

        .referencia-card .dorso {
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto;
            padding: clamp(10px, 1.4vw, 18px);
            font-size: clamp(12px, 1.2vw, 16px);

            h3 {
                margin-bottom: 8px;
                font-size: clamp(14px, 1.5vw, 19px);
                line-height: 1.25;
            }

            p {
                margin: 0;
                line-height: 1.4;
            }
        }
    }

    .escena { 
        width: 500px; 
        height: 300px; 
        perspective: 800px;
        padding: 20px; 
    }
    .carta { 
        position: relative; 
        width: 100%; 
        height: 100%; 
        transition: transform .7s; 
        transform-style: preserve-3d; 
    }
    .escena:hover .carta { 
        transform: rotateY(180deg); 
    }
    .escena:focus .carta {
        transform: rotateY(180deg);
    }
    .cara { 
        position: absolute; 
        inset: 0; 
        border-radius: 16px; 
        backface-visibility: hidden; 
        display: grid; 
        place-content: center; 
        text-align: center; 
        padding: 16px; 
    }
    .frente { 
        background: linear-gradient(135deg, #7700ff, #5ec7ff); 
        color: #fff; 
        font-weight: 900; 
        font-size: 22px; 
    }
    .dorso  { 
        background: #151a2e; 
        color: #eef0ff; 
        transform: rotateY(180deg); 
        font-size: 20px;
        
        p {
            margin-top: 10px;
        }
    }
}

/* Marketing y resultados */
#marketing {
    --section-start-color: #05051a;
    --section-end-color: #081b25;
    padding: 56px 32px 72px;

    > h2 {
        max-width: 1120px;
        margin: 0 auto 30px;
        padding-left: 30px;
        font-size: clamp(32px, 4vw, 46px);
        letter-spacing: 0.08em;
    }

    .metrics-panel {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: center;
        gap: clamp(24px, 4vw, 48px);
        max-width: 1120px;
        margin: 0 auto;
        padding: clamp(20px, 3vw, 36px);
        border: 1px solid rgb(255 255 255 / 14%);
        border-radius: 18px;
        background: rgb(8 28 39 / 82%);
        box-shadow: 0 8px 24px rgb(0 0 0 / 22%);

        > img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            border: 1px solid rgb(255 255 255 / 12%);
            border-radius: 12px;
            object-fit: cover;
            transition: transform 0.2s ease, filter 0.2s ease;
        }
    }

    .metrics-copy {
        h3 {
            margin-bottom: 16px;
            color: #8fe3ad;
            font-size: clamp(26px, 3vw, 34px);
        }

        p {
            margin: 0 0 14px;
            font-size: 18px;
            line-height: 1.65;
        }
    }
}

/* Devlog */
#devlog {
    --section-start-color: #081b25;
    --section-end-color: #05051a;
    padding: 56px 32px 72px;

    h2 {
        max-width: 1120px;
        margin: 0 auto 30px;
        font-size: clamp(32px, 4vw, 46px);
        letter-spacing: 0.08em;
        padding-left: 30px;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 18px;
        width: min(100%, 1120px);
        margin: 0 auto;
    }

    .hito {
        overflow: hidden;
        border: 1px solid rgb(143 212 255 / 32%);
        border-radius: 16px;
        background: linear-gradient(135deg, rgb(22 58 99 / 96%), rgb(12 40 71 / 96%));
        box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
    }

    .hito[open] {
        border-color: #5ec7ff;
        box-shadow: 0 16px 38px rgb(0 0 0 / 36%);
    }

    .hito summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 23px 30px;
        color: #eef0ff;
        cursor: url("images/mouse/pointer.png"), pointer;
        font-size: clamp(20px, 2.5vw, 28px);
        font-weight: 750;
        letter-spacing: 0.06em;
        list-style: none;
    }

    .hito summary::-webkit-details-marker {
        display: none;
    }

    .hito summary::after {
        content: "+";
        display: grid;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        place-items: center;
        border: 1px solid rgb(143 212 255 / 55%);
        border-radius: 50%;
        color: #8fd4ff;
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
    }

    .hito[open] summary {
        background: rgb(94 199 255 / 10%);
    }

    .hito[open] summary::after {
        content: "−";
    }

    .hito-imagenes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 30px 32px 26px;

        .left,
        .right {
            min-width: 0;
        }

        h2 {
            margin-bottom: 12px;
            color: #8fd4ff;
            font-size: 20px;
        }

        img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            border: 1px solid rgb(255 255 255 / 14%);
            border-radius: 10px;
            object-fit: cover;
            transition: transform 0.2s ease, filter 0.2s ease;
        }
    }

    hr {
        margin: 0 32px;
        border: 0;
        border-top: 1px solid rgb(143 212 255 / 30%);
    }

    .hito-lista {
        padding: 22px 32px 30px;

        ul {
            display: grid;
            gap: 12px;
            padding-left: 22px;
        }

        li {
            padding-left: 4px;
            line-height: 1.6;
        }

        li::marker {
            color: #5ec7ff;
        }
    }
}

/* Devlog en pantallas medianas */
@media (max-width: 700px) {
    #devlog {
        padding: 42px 24px 54px;

        h2 {
            margin-bottom: 22px;
        }

        .hito summary {
            padding: 19px 22px;
        }

        .hito-imagenes {
            gap: 16px;
            padding: 24px 22px;

            h2 {
                font-size: 17px;
            }
        }

        hr {
            margin: 0 22px;
        }

        .hito-lista {
            padding: 20px 22px 24px;
        }
    }
}

/* Devlog en pantallas pequeñas */
@media (max-width: 520px) {
    #devlog {
        padding: 34px 16px 44px;

        .hito-imagenes {
            grid-template-columns: minmax(0, 1fr);
            gap: 20px;
            padding: 22px 18px;

            img {
                aspect-ratio: 16 / 10;
            }
        }

        .hito summary {
            padding: 17px 18px;
        }

        hr {
            margin: 0 18px;
        }

        .hito-lista {
            padding: 18px 18px 22px;
        }
    }
}

/* Habilidades del equipo */
#habilidades {
    --section-start-color: #05051a;
    --section-end-color: #081b25;
    padding: 62px 32px 76px;
}

#contacto {
    --section-start-color: #081b25;
    --section-end-color: #05051a;
    padding: 12px 32px 76px;
}

.contact-panel {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 64px);
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgb(143 212 255 / 18%);
    border-radius: 20px;
    background: linear-gradient(140deg, rgb(15 36 52 / 96%), rgb(10 20 40 / 96%));
    box-shadow: 0 16px 38px rgb(0 0 0 / 20%);
}

.contact-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 42px);
}

.contact-heading > p:last-child {
    color: #c1ccda;
    font-size: 17px;
    line-height: 1.65;
}

.contact-form {
    min-width: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    color: #d7e3ed;
    font-size: 14px;
    font-weight: 650;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgb(143 212 255 / 25%);
    border-radius: 10px;
    background: rgb(5 15 29 / 78%);
    color: #fff;
    font: inherit;
}

.contact-field select {
    color-scheme: dark;
}

.contact-field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9eacba;
    opacity: 1;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
    outline: 2px solid #78e2ad;
    outline-offset: 2px;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.contact-form-footer p {
    color: #c1ccda;
    font-size: 13px;
    line-height: 1.5;
}

.contact-submit {
    flex: 0 0 auto;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: #2f7e0d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    opacity: 0.65;
    cursor: not-allowed;
}

.skills-heading,
.skills-panel {
    box-sizing: border-box;
    width: min(100%, 1120px);
    margin-right: auto;
    margin-left: auto;
}

.skills-heading {
    margin-bottom: 42px;
    text-align: center;
}

.skills-eyebrow {
    margin-bottom: 10px;
    color: #78e2ad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.skills-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: 0.08em;
}

.skills-intro {
    max-width: 620px;
    margin: 0 auto;
    color: #c1ccda;
    font-size: 17px;
    line-height: 1.6;
}

.skills-panel {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgb(143 212 255 / 18%);
    border-radius: 20px;
    background: linear-gradient(140deg, rgb(15 36 52 / 96%), rgb(10 20 40 / 96%));
    box-shadow: 0 16px 38px rgb(0 0 0 / 20%);
}

.skills-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.skills-panel-heading h3 {
    font-size: clamp(23px, 3vw, 30px);
}

.skills-panel-heading > p {
    max-width: 420px;
    color: #c1ccda;
    line-height: 1.55;
}

.skills-art-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.skills-art-card {
    min-width: 0;
}

.skills-art-images {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 12px;
    background: linear-gradient(145deg, rgb(20 38 53 / 90%), rgb(8 20 31 / 90%));
}

.slide-indicators {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 50%;
    display: flex;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    background: rgb(5 25 16 / 82%);
    transform: translateX(-50%);
}

.slide-indicators button {
    box-sizing: border-box;
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.slide-indicators button[aria-current="true"] {
    border-color: #78e2ad;
    background: #78e2ad;
    transform: scale(1.2);
}

.slide-indicators button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.skills-art-images img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
}

.skills-art-images .skills-art-landscape {
    object-fit: cover;
}

.skills-art-images .art-gallery-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    display: grid;
    width: 40px;
    height: 52px;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 10px;
    background: rgb(5 25 16 / 82%);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.skills-art-images .art-gallery-arrow:hover {
    background: #2f7e0d;
}

.skills-art-images .art-gallery-arrow:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.skills-art-images .previous {
    left: 16px;
}

.skills-art-images .next {
    right: 16px;
}

.skills-art-card > p {
    margin-top: 11px;
    color: #d7e3ed;
    font-size: 14px;
    font-weight: 650;
}

.skills-code-panel {
    border-color: rgb(120 226 173 / 24%);
    background: linear-gradient(140deg, rgb(13 39 45 / 97%), rgb(10 24 39 / 97%));
}

.skills-code-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: center;
}

.navmesh-visual {
    min-width: 0;
}

.navmesh-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.skills-code-lead {
    margin-bottom: 10px;
    color: #eaf7ff;
    font-size: 20px;
    font-weight: 750;
}

.skills-code-copy > p:not(.skills-code-lead, .skills-code-note) {
    color: #c1ccda;
    line-height: 1.65;
}

.navmesh-steps {
    display: grid;
    gap: 17px;
    margin: 22px 0 18px;
    padding: 0;
    list-style: none;
}

.navmesh-steps li {
    display: flex;
    align-items: start;
    gap: 13px;
}

.navmesh-steps li > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid rgb(120 226 173 / 45%);
    border-radius: 50%;
    color: #9af0c1;
    font-size: 11px;
    font-weight: 800;
}

.navmesh-steps b {
    display: block;
    margin: 1px 0 3px;
    color: #f1f7fc;
}

.navmesh-steps p {
    color: #b8c7d3;
    font-size: 14px;
    line-height: 1.5;
}

.skills-code-note {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgb(120 226 173 / 25%);
    border-radius: 999px;
    color: #aaf0c8;
    font-size: 12px;
    font-weight: 700;
}

.skills-music-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgb(143 212 255 / 20%);
    border-radius: 17px;
    background: linear-gradient(115deg, rgb(22 58 99 / 64%), rgb(15 30 55 / 78%));
}

.music-art {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(143 212 255 / 30%);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 45%, #35556c, #17223b 67%, #10172b);
}

.music-art-orbit {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgb(143 212 255 / 26%);
    border-radius: 50%;
    box-shadow: 0 0 34px rgb(143 212 255 / 12%), inset 0 0 30px rgb(143 212 255 / 9%);
}

.music-art-note {
    position: relative;
    margin-top: -18px;
    color: #a9eaff;
    font-size: 66px;
    text-shadow: 0 0 28px rgb(94 199 255 / 50%);
}

.music-art-label {
    position: absolute;
    bottom: 17px;
    color: rgb(232 244 255 / 76%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1.5;
    text-align: center;
}

.music-details {
    min-width: 0;
}

.music-details .skills-eyebrow {
    color: #8fd4ff;
}

.music-details h4 {
    margin-bottom: 5px;
    font-size: clamp(22px, 3vw, 30px);
}

.music-track-meta {
    color: #c1ccda;
    font-size: 14px;
}

.music-audio {
    display: block;
    width: 100%;
    margin-top: 22px;
}

/* Habilidades en pantallas medianas */
@media (max-width: 850px) {
    #habilidades {
        padding: 48px 24px 58px;
    }

    #contacto {
        padding: 8px 24px 58px;
    }

    .contact-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .skills-code-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Habilidades en pantallas pequeñas */
@media (max-width: 560px) {
    #habilidades {
        padding: 38px 16px 46px;
    }

    #contacto {
        padding: 0 16px 46px;
    }

    .contact-panel {
        gap: 22px;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .contact-heading h2 {
        font-size: 30px;
    }

    .contact-heading > p:last-child {
        font-size: 15px;
    }

    .contact-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .contact-field-full {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit {
        width: 100%;
    }

    .skills-heading {
        margin-bottom: 30px;
    }

    .skills-intro {
        font-size: 15px;
    }

    .skills-panel {
        margin-top: 18px;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .skills-panel-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 19px;
    }

    .skills-panel-heading > p {
        font-size: 14px;
    }

    .skills-art-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .skills-art-images .art-gallery-arrow {
        width: 44px;
        height: 56px;
        font-size: 36px;
    }

    .skills-art-card > p {
        margin-top: 8px;
        font-size: 12px;
    }

    .skills-code-lead {
        font-size: 18px;
    }

    .skills-music-card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 20px;
        padding: 18px;
        text-align: center;
    }

    .music-art {
        width: min(100%, 190px);
    }

    .music-details {
        width: 100%;
    }
}


/* Pie de página */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0px 0px 5px 2px #02111B;
    font-size: 18px;

    background-color: #052f4a;

    padding: 10px;

    .left {
        display: flex;
        flex-direction: column;
        margin-right: auto;
        padding-left: 20px;
        padding-top: 10px;

        a {
            text-decoration: none;
        }
    }

    .right {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        padding-right: 20px;
        padding-top: 10px;
    }

    img {
        width: 40px;
        padding: 5px;
    }

    #cright {
        grid-column: 1 / 3;
        text-align: center;
    }
}

/* Diálogos de miembros y proyectos */
dialog.member-profile {
    box-sizing: border-box;
    position: fixed;
    top: 50vh;
    left: 50vw;
    margin: 0;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: clamp(20px, 4vw, 36px);
    border: 3px solid black;
    background: #5f2f8f;
    color: white;
    transform: translate(-50%, -50%);
    font-size: clamp(16px, 1.5vw, 20px);

    h2 {
        font-size: clamp(30px, 3vw, 30px);
        padding-bottom: 15px;
    }

    p{
        margin-bottom: 12px;
    }
}

dialog.member-profile::backdrop {
    background: rgb(0 0 0 / 80%);
}

.member-profile-close {
    display: block;
    margin: 0 0 16px auto;
    padding: 5px 15px;
    border: 2px solid black;
    border-radius: 15px;
    background-color: #2a0c60;
    color: white;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 20px;
    cursor: url("images/mouse/pointer.png"), pointer;
}

.member-profile-close:hover {
    background-color: #190739;
    transform: translateY(-1px);
}

.member-profile-close:active {
    transform: translateY(1px);
}

.member-profile-content {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;

    img {
        width: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

    h2 {
        margin-bottom: 12px;
        font-size: 30px;
    }

    p {
        line-height: 1.6;
    }
}

.member-profile-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 2px solid rgb(0 0 0 / 35%);
    border-radius: 12px;
    background-color: #163a63;
    color: white;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-decoration: none;
    cursor: url("images/mouse/pointer.png"), pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.member-profile-content a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.member-profile-content a[href*="github.com"]:hover {
    background-color: #0c2847;
}

.member-profile-content a[href*="artstation.com"] {
    background-color: #8fd4ff;
    color: #08243a;
}

.member-profile-content a[href*="artstation.com"]:hover {
    background-color: #6bc3fa;
}

.member-profile-content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgb(0 0 0 / 25%);
}

.member-profile-content a:active {
    transform: translateY(1px);
    box-shadow: none;
}

.member-profile-content a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.project-profile-content {
    align-items: start;
}

.project-profile-content h2 {
    margin-bottom: 12px;
}

.project-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -4px 0 12px;
    padding: 0;
    list-style: none;
}

.project-members li {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgb(42 12 96 / 65%);
    font-size: 0.9em;
}

.project-profile-content .play-link {
    display: flex;
    width: fit-content;
    margin-top: 4px;
    margin-right: auto;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 12px;
    background-color: #163a63;
    font-size: 22px;
}

.project-profile-content .play-link:hover {
    background-color: #0c2847;
}

/* Diálogos en pantallas pequeñas */
@media (max-width: 560px) {
    .member-profile-content {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;

        img {
            max-width: 180px;
        }
    }
}

/* Diálogos en pantallas apaisadas y de poca altura */
@media (orientation: landscape) and (max-height: 600px) {
    dialog.member-profile.project-profile {
        top: 50%;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        height: fit-content;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px clamp(14px, 3vw, 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateY(-50%);
    }

    .project-profile .member-profile-close {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 17px;
    }

    .project-profile .project-profile-content {
        gap: clamp(10px, 2vw, 18px);
    }

    .project-profile .member-profile-content {
        grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
        align-items: center;
        text-align: left;
    }

    #aboutUs .project-profile h2 {
        margin-bottom: 6px;
        padding-bottom: 0;
        font-size: clamp(20px, 4vh, 24px);
    }

    .project-profile-content > img {
        width: 100%;
        max-width: none;
        max-height: 30vh;
        aspect-ratio: 16 / 10;
        object-fit: contain;
    }

    .project-profile .project-profile-content p {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.35;
    }

    .project-profile .project-members {
        gap: 6px;
        margin: -2px 0 8px;
    }

    .project-profile .project-members li {
        padding: 3px 8px;
        font-size: 12px;
    }

    .project-profile .project-profile-content .play-link {
        margin-top: 2px;
        padding: 6px 10px;
        font-size: 17px;
    }
}

/* Ajustes responsive de las secciones */
@media (max-width: 1100px) {
    #aboutNest .content #gameInfo {
        grid-template-columns: minmax(0, 1fr);
    }

    #objetivos .escena {
        box-sizing: border-box;
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 5 / 3;
    }

    #objetivos .cara {
        box-sizing: border-box;
    }
}

@media (max-width: 800px) {
    * {
        box-sizing: border-box;
    }

    header {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;

        .left,
        .right {
            margin: 0 auto;
        }

        .right nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;

            a {
                padding: 8px;
                text-align: center;
            }
        }
    }

    #banner {
        height: auto;
        padding: 40px 24px;

        .content {
            grid-template-columns: minmax(0, 1fr);
            gap: 24px;

            .left {
                align-items: center;

                p {
                    text-align: center;
                    font-size: 24px;
                    margin-bottom: 16px;
                }
            }

            .links {
                justify-content: center;
            }

            .right img {
                max-width: 300px;
            }
        }

        h1 {
            padding-left: 0;
            font-size: clamp(56px, 10vw, 76px);
            text-align: center;
        }
    }

    #nest-invaders {
        padding: 40px 24px 30px;

        .content {
            grid-template-columns: minmax(0, 1fr);
            gap: 32px;
        }

        .play-link {
            font-size: clamp(30px, 7vw, 40px);
        }
    }

    #aboutNest {
        .content {
            padding: 32px 24px 15px;

            #gameInfo {
                grid-template-columns: minmax(0, 1fr);
                gap: 24px;

                #gameInfo {
                    gap: 20px;

                    #screenshots .screenshot-arrow {
                        width: 42px;
                        height: 54px;
                        font-size: 36px;
                    }

                    #gameDescription {
                        padding: 22px;
                    }
                }
            }
        }
    }

    #aboutUs {
        padding: 40px 24px 20px;

        .content {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
        }

        .member:nth-child(5),
        .member:nth-child(6),
        .member:nth-child(7) {
            grid-column: auto;
            width: auto;
            justify-self: stretch;
            transform: none;
        }

        .team-projects-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    #objetivos {
        padding: 30px 24px;

        .content {
            grid-template-columns: minmax(0, 1fr);
            gap: 24px;
        }

        .escena {
            box-sizing: border-box;
            width: 100%;
            max-width: 500px;
            height: auto;
            aspect-ratio: 5 / 3;
            margin: 0 auto;
        }

        .cara {
            box-sizing: border-box;
        }
    }

    #marketing {
        padding: 48px 24px 56px;

        > h2 {
            padding-left: 0;
        }

        .metrics-panel {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    footer {
        gap: 20px;

        .left,
        .right {
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .left a {
            overflow-wrap: anywhere;
        }

        .right > div {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
    }
}

/* Navegación móvil */
@media (max-width: 1100px) {
    main > section[id] {
        scroll-margin-top: 5rem;
    }

    header {
        align-items: center;
        flex-direction: row;
        gap: 0;

        .left,
        .right {
            margin: 0;
        }

        .left {
            margin-right: auto;
        }

        .right {
            position: static;
            align-items: center;
        }

        .menu-toggle {
            display: flex;
            width: 44px;
            height: 44px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px;
            border: 0;
            border-radius: 6px;
            background: transparent;
        }

        .menu-toggle:focus-visible {
            outline: 2px solid white;
            outline-offset: 2px;
        }

        .menu-toggle span {
            display: block;
            width: 26px;
            height: 3px;
            border-radius: 2px;
            background: white;
        }

        &.menu-open .menu-toggle span:first-child {
            transform: translateY(9px) rotate(45deg);
        }

        &.menu-open .menu-toggle span:nth-child(2) {
            opacity: 0;
        }

        &.menu-open .menu-toggle span:last-child {
            transform: translateY(-9px) rotate(-45deg);
        }

        .right nav {
            position: absolute;
            top: 100%;
            right: 16px;
            z-index: 1;
            display: none;
            width: min(280px, calc(100vw - 32px));
            flex-direction: column;
            align-items: stretch;
            padding: 8px;
            border-radius: 8px;
            background-color: #052f4a;
            box-shadow: 0 4px 12px rgb(0 0 0 / 35%);

            a {
                padding: 12px;
                text-align: left;
            }
        }

        &.mobile-nav-ready .right nav.is-open {
            display: flex;
        }
    }
}

/* Ajustes para móviles */
@media (max-width: 560px) {
    header {
        .left {
            img {
                height: 40px;
            }

            p {
                margin-left: 10px;
                font-size: 22px;
            }
        }

        .right nav a {
            padding: 6px;
            font-size: 16px;
        }
    }

    #banner {
        padding: 32px 16px;

        .content {
            gap: 20px;

            .left p {
                font-size: 19px;
            }

            .links {
                gap: 8px;

                .play-link {
                    padding: 4px 8px;
                    margin-top: 8px;
                    font-size: 21px;
                }
            }

            .right img {
                max-width: 220px;
            }
        }

        h1 {
            font-size: clamp(48px, 13vw, 64px);
        }
    }

    #nest-invaders {
        padding: 32px 16px 24px;

        .left {
            .game-subtitle {
                font-size: 21px;
            }

            #caracteristicas {
                padding: 16px;
                font-size: 17px;
            }
        }
    }

    #aboutNest {
        h2 {
            font-size: 26px;
        }

        .content {
            padding: 24px 16px 10px;

            p {
                font-size: 17px;
            }

            #gameDescription {
                padding: 18px;

                h3 {
                    font-size: 22px;
                }

                p {
                    font-size: 17px;
                }
            }
        }
    }

    #aboutUs {
        padding: 32px 16px 20px;

        h2 {
            margin-bottom: 28px;
            font-size: 30px;
        }

        .content {
            grid-template-columns: minmax(0, 1fr);
            gap: 18px;
        }

        .member {
            width: 100%;
            max-width: 360px;
            justify-self: center;

            .nombre {
                font-size: 22px;
            }
        }

        .member:nth-child(5),
        .member:nth-child(6),
        .member:nth-child(7) {
            width: 100%;
            justify-self: center;
        }

        .team-projects {
            margin-top: 40px;
        }

        .team-projects h3 {
            font-size: 25px;
        }

        .team-projects-grid {
            grid-template-columns: minmax(0, 1fr);
            justify-items: center;
        }

        .project-card {
            width: 100%;
            max-width: 360px;
        }
    }

    #objetivos {
        padding: 24px 16px;

        > h2 {
            font-size: 27px;
        }

        .cartas-objetivos {
            padding: 0;
        }

        .escena {
            padding: 10px;
        }

        .cara {
            padding: 12px;
        }

        .frente {
            font-size: 19px;
        }

        .dorso {
            font-size: 15px;
        }

        .juegos-similares {
            padding: 0;
        }

        .juegos-similares .grid {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    #marketing {
        padding: 36px 16px 44px;

        > h2 {
            margin-bottom: 22px;
            font-size: 27px;
            letter-spacing: 0.04em;
        }

        .metrics-panel {
            gap: 20px;
            padding: 16px;
        }

        .metrics-copy p {
            font-size: 16px;
        }
    }

    footer {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 16px;
        text-align: center;

        .left,
        .right {
            align-items: center;
        }

        #cright {
            grid-column: auto;
        }
    }
}

/* Ampliación de imágenes */
#art_zoom_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 11037;
    align-items: center;
    justify-content: center;
}

#art_zoom_overlay.active {
    display: flex;
}

#art_zoom_img {
    max-width: 90%;
    max-height: 90%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

#art_zoom_overlay.active #art_zoom_img {
    transform: scale(1);
    opacity: 1;
}