body{
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2326c2, #9e31c2);
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    align-items: center;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

section {
    width: 80%;
    max-width: 600px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.255);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Botones coherentes */
button {
    background: linear-gradient(90deg, #2326c2 60%, #9e31c2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 22px;
    margin: 10px 5px 20px 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

button:hover {
    background: linear-gradient(90deg, #1a1d8f 60%, #7a2597 100%);
    transform: translateY(-2px) scale(1.03);
}

/* Input coherente */
input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 1rem;
    margin-bottom: 10px;
    width: 70%;
    box-sizing: border-box;
}

/* Listas de amigos y resultados */
ul#listaAmigos, ul#resultado {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    text-align: left;
    color: #fff;
    font-size: 1.1rem;
    background: rgba(35, 38, 194, 0.10);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(35,38,194,0.08);
    padding: 10px 0 10px 0;
}

ul#listaAmigos li, ul#resultado li {
    background: rgba(50, 50, 90, 0.25);
    margin-bottom: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    border-left: 4px solid #9e31c2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

ul#listaAmigos li span.posicion {
    display: inline-block;
    min-width: 28px;
    background: #9e31c2;
    color: #fff;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 8px;
    margin-right: 8px;
    text-align: center;
    box-shadow: 0 1px 3px #2326c233;
    font-size: 1rem;
}

/* Títulos y textos */
h1, h2 {
    color: #fff;
    text-shadow: 1px 2px 8px #2326c255;
}

.description p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 18px;
}