body {
    background-color: #111111;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #F0C040;
    padding: 16px 32px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

header nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s, letter-spacing 0.3s;
}

header nav ul li a:hover {
    color: #F0C040;
    letter-spacing: 3px;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bienvenida {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bienvenida h1 {
    font-size: 80px;
    color: #F0C040;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: entradaTitulo 1.2s ease-out both;
}

.bienvenida p {
    font-size: 18px;
    color: #FFFFFF;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-out both;
}

.btn-jugar {
    margin-top: 16px;
    padding: 16px 48px;
    background-color: transparent;
    border: 2px solid #F0C040;
    color: #F0C040;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-jugar:hover {
    background-color: #F0C040;
    color: #111111;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.5);
}

.btn-jugar:active {
    transform: scale(0.98);
}

footer {
    background-color: #1a1a1a;
    border-top: 2px solid #F0C040;
    padding: 16px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

footer p {
    color: #7A8FA6;
    font-size: 13px;
}

.sobre-nosotros {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.sobre-nosotros h1 {
    font-size: 42px;
    color: #F0C040;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    animation: entradaTitulo 1s ease-out both;
}

.subtitulo {
    color: #7A8FA6;
    font-size: 18px;
    text-align: center;
    margin-top: -40px;
    animation: fadeIn 1.5s ease-out both;
}

.tarjetas {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.tarjeta {
    border: 2px solid #F0C040;
    padding: 40px 36px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 1s ease-out both;
}

.tarjeta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 24px rgba(240, 192, 64, 0.3);
}

.foto-perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #F0C040;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.foto-perfil:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 16px rgba(240, 192, 64, 0.6);
}

.tarjeta h2 {
    color: #F0C040;
    font-size: 20px;
}

.rol {
    color: #2ECC40;
    font-size: 14px;
    font-style: italic;
}

.bio {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.7;
}

.dato {
    color: #7A8FA6;
    font-size: 13px;
}

.btn-github {
    margin-top: 8px;
    padding: 10px 28px;
    border: 2px solid #F0C040;
    color: #F0C040;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-github:hover {
    background-color: #F0C040;
    color: #111111;
    box-shadow: 0 0 16px rgba(240, 192, 64, 0.5);
}

.seccion-proyecto {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #333333;
    padding-top: 40px;
}

.seccion-proyecto h2 {
    color: #F0C040;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.seccion-proyecto p {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.8;
}

.pantalla {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 60px 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.pantalla.activa {
    display: flex;
    animation: fadeIn 0.4s ease-out both;
}

.pantalla h1 {
    font-size: 42px;
    color: #F0C040;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 500px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo label {
    color: #7A8FA6;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.campo input,
.campo select {
    background-color: #1a1a1a;
    border: 2px solid #F0C040;
    color: #FFFFFF;
    padding: 12px 16px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus,
.campo select:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.campo select option {
    background-color: #1a1a1a;
}

.genero-texto {
    color: #2ECC40;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    animation: pulsoVerde 2s infinite;
}

.juego-cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.temporizador {
    font-size: 48px;
    color: #F0C040;
    letter-spacing: 4px;
    font-weight: bold;
    transition: color 0.3s;
}

.temporizador.urgente {
    color: #FF4444;
    animation: parpadeo 0.5s infinite;
}

.puntuacion {
    color: #7A8FA6;
    font-size: 16px;
}

.tablero-rival {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tablero-rival h2 {
    color: #F0C040;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.palabra-rival {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    padding: 16px 24px;
    font-size: 22px;
    letter-spacing: 6px;
    color: #FFFFFF;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.palabra-rival:hover {
    transform: scaleX(1.01);
    border-color: #555555;
}

.palabra-rival.adivinada {
    border-color: #2ECC40;
    color: #2ECC40;
    animation: adivinada 0.5s ease-out both;
}

.acciones {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
}

.accion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.accion h3 {
    color: #7A8FA6;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fila-input {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.fila-input input {
    background-color: #1a1a1a;
    border: 2px solid #F0C040;
    color: #FFFFFF;
    padding: 10px 14px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    flex: 1;
    min-width: 0;
    height: 44px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fila-input input:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.fila-input .btn-jugar {
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 0;
}

.mensaje {
    font-size: 14px;
    min-height: 20px;
}

.mensaje.ok {
    color: #2ECC40;
    animation: fadeIn 0.3s ease-out both;
}

.mensaje.error {
    color: #FF4444;
    animation: sacudida 0.4s ease-out both;
}

.puntuacion-final {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.puntuacion-final .tarjeta {
    min-width: 200px;
    animation: entradaTitulo 0.6s ease-out both;
}

.puntuacion-final .tarjeta p {
    color: #2ECC40;
    font-size: 20px;
}

.contenedor-ranking {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    animation: fadeIn 0.6s ease-out both;
}

.tabla-ranking {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border: 2px solid #F0C040;
}

.tabla-ranking th,
.tabla-ranking td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333333;
}

.tabla-ranking th {
    color: #F0C040;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #111111;
}

.tabla-ranking tr {
    transition: background-color 0.2s;
}

.tabla-ranking tr:hover {
    background-color: #222222;
}

.tabla-ranking td {
    font-size: 18px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #333333;
    border-top: 4px solid #F0C040;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

.video-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

@keyframes entradaTitulo {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes parpadeo {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes pulsoVerde {
    0%   { text-shadow: 0 0 0px #2ECC40; }
    50%  { text-shadow: 0 0 12px #2ECC40; }
    100% { text-shadow: 0 0 0px #2ECC40; }
}

@keyframes adivinada {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes sacudida {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-6px); }
    50%  { transform: translateX(6px); }
    75%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}