body {
    margin: 0;
    font-family: Andada Pro, serif;
    background-color: #121212;
    color: #fff;
}

header {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 0;
}

    header .overlay {
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        text-align: center;
        padding: 0 20px;
        color: white;
    }

footer {
    text-align: center;
    padding: 20px;
    background-color: #1e1e1e;
    font-size: 0.9em;
}

section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.button-container {
    text-align: center;
    margin: 40px 0;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* quitamos padding lateral */
    z-index: 10;
    box-sizing: border-box;
}

    nav a {
        color: #ccc;
        text-decoration: none;
        padding: 10px 20px;
        transition: color 0.3s;
        font-weight: 600;
    }

        nav a:hover {
            color: #fff;
            background-color: transparent;
            border-radius: 5px;
        }

.nav-left {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: 10;
    padding-left: 0px;
    flex-shrink: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    flex-shrink: 1;
}

.lang-btn {
    background-color: #2e2e2e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: background-color 0.3s;
}

    .lang-btn svg {
        stroke: white;
        transition: transform 0.3s ease;
    }

    .lang-btn[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown {
    position: relative;
    font-size: 1em;
    user-select: none;
}

.lang-btn:hover, .lang-btn:focus {
    background-color: #ff6600;
    outline: none;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2e2e2e;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    width: max-content;
    min-width: 140px;
    z-index: 100;
}

    .lang-list[hidden] {
        display: none;
    }

    .lang-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        cursor: pointer;
        color: white;
        font-weight: 500;
        border-radius: 6px;
    }

        .lang-list li:hover, .lang-list li:focus {
            background-color: #ff6600;
            outline: none;
        }

        .lang-list li[aria-selected="true"] {
            background-color: #ff6600;
            font-weight: 700;
        }

.language-dropdown .lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.language-dropdown .flag-icon {
    width: 20px;
    height: 14px;
}

.discord-button img {
    width: 45px;
    height: 45px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
    vertical-align: middle;
    border-radius: 4px;
    cursor: pointer;
    display: block;
}

.discord-button:hover img {
    filter: brightness(1);
}

.play-button {
    background-color: transparent;
    color: #ccc;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s, border 0.3s;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid #ccc;
}

    .play-button:hover {
        color: white;
        border: 2px solid white;
        background-color: transparent;
    }

.kickstarter-button {
    background-color: #05ce78; /* Kickstarter green */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(5, 206, 120, 0.4);
    display: inline-block;
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    font-weight: 700;
    border: none;
    font-family: 'Montserrat', sans-serif; /* Kickstarter-like */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

    .kickstarter-button:hover {
        background-color: #04b96a;
        box-shadow: 0 6px 12px rgba(5, 206, 120, 0.5);
    }

#habilidades-container {
    flex: 0 0 400px; /* ancho fijo de 400px */
    width: 400px;
    padding: 0 15px;
    text-align: center;
}

.container > div:nth-child(2) {
    flex: 1; /* toma el resto del espacio */
    width: 100%;
    max-width: none; /* elimina límite */
}

#habilidades {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Alinea todas las imágenes en la parte superior */
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    margin: 0 -15px;
    /* Estilos para la barra de scroll */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #00bcd4 #2e2e2e; /* Color del scroll (Firefox) */
}

    #habilidades > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 80px; /* Ancho mínimo para cada habilidad */
        flex: 0 0 auto; /* Evita que se compriman */
    }

        #habilidades > div p {
            margin-top: 5px;
            font-size: 12px;
            text-align: center;
            user-select: none;
        }

    #habilidades p {
        text-align: center;
        font-size: 12px;
        margin: 0;
        line-height: 1.3;
        max-width: 80px; /* Mismo ancho que el contenedor */
        word-wrap: break-word;
    }

    #habilidades img {
        width: 60px;
        height: 60px;
        object-fit: contain; /* Asegura que la imagen mantenga sus proporciones */
        margin-bottom: 5px; /* Espacio entre imagen y texto */
    }

        #habilidades img.selected {
            border: 2px solid #00bcd4;
            box-shadow: 0 0 10px #00bcd4;
            transform: scale(1.1);
        }

        #habilidades img:hover {
            transform: scale(1.1);
            border: 2px solid #00bcd4;
        }

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px; /* espacio entre habilidades y video */
    max-width: 1400px;
    margin: 0 auto; /* centra el contenedor en la página */
    padding: 80px 20px;
    box-sizing: border-box;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#descripcionHabilidad {
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* añade espacio a los lados */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

#videoHabilidad {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

    #videoHabilidad video,
    #videoHabilidad source {
        width: 100%;
        height: auto;
        display: block;
    }

/* AJUSTES PARA MÓVILES */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 20px 15px;
        padding: 0;
        align-items: stretch;
    }

    #habilidades-container {
        flex: 0 0 0;
        padding: 0;
        width: 100%;
    }

    #habilidades {
        padding: 5px 10px; /* Padding interno reducido */
        margin-bottom: 0; /* Sin margen inferior */
    }


    #habilidades::-webkit-scrollbar {
        height: 6px;
    }

    #habilidades::-webkit-scrollbar-track {
        background: #2e2e2e; /* Color de fondo de la pista */
        border-radius: 3px;
    }

    #habilidades::-webkit-scrollbar-thumb {
        background-color: #00bcd4; /* Color del pulgar */
        border-radius: 3px;
    }

        #habilidades::-webkit-scrollbar-thumb:hover {
            background-color: #0095a8; /* Color al pasar el mouse */
        }

    #habilidades img {
        flex: 0 0 auto;
        scroll-snap-align: start; /* Alineación de scroll */
    }

    video {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-top: 20px;
    }

    #descripcionHabilidad {
        max-width: 100%;
        padding: 0 10px;
    }

    .play-button {
        display: none;
    }

    nav a {
        font-size: 0.85em;
    }

    .nav-left {
        gap: 6px;
        margin-left: 5px;
        padding-left: 8px;
    }

        .nav-left a {
            padding: 5px 5px; /* menos espacio interno */
        }

    .nav-right {
        gap: 6px;
        margin-right: 0px;
    }

        .nav-right a {
            padding: 0px 0px; /* menos espacio interno */
        }


    .language-dropdown {
        font-size: 0.75em;
        max-width: 100px;
    }

        .language-dropdown .lang-btn {
            padding: 4px 6px;
            gap: 4px;
        }

        .language-dropdown .flag-icon {
            width: 16px;
            height: 12px;
        }

    .discord-button img {
        width: 20px;
        height: 20px;
    }
}
