.votacion-juegos {
    background: #f7fbff;
    color: #17202a;
    min-height: 100vh;
}

.votacion-contenedor,
.votacion-formulario,
.votacion-panel-resultados,
.votacion-tabla {
    width: min(1120px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
}

.votacion-cabecera {
    background: linear-gradient(135deg, #12355b, #2364aa);
    color: #fff;
    padding: 150px 18px 82px;
}

.votacion-etiqueta {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f6c445;
    color: #1b2430;
    font-weight: 800;
}

.votacion-cabecera h1 {
    max-width: 790px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.02;
}

.votacion-cabecera p:not(.votacion-etiqueta) {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1.12rem;
    line-height: 1.5;
}

.votacion-formulario,
.votacion-panel-resultados {
    margin-top: -54px;
    margin-bottom: 34px;
}

.votacion-bloque,
.votacion-panel-resultados,
.votacion-tabla {
    background: #fff;
    border: 1px solid rgba(18, 53, 91, .16);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(18, 53, 91, .12);
}

.votacion-bloque {
    padding: 22px;
    margin-bottom: 18px;
}

.votacion-titulo-bloque {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.votacion-titulo-bloque span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #49a078;
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
}

.votacion-titulo-bloque h2 {
    margin: 0 0 4px;
    color: #12355b;
    font-size: 1.45rem;
}

.votacion-titulo-bloque p {
    margin: 0;
    color: #506070;
}

.votacion-grilla-campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.votacion-campo-ancho {
    grid-column: 1 / -1;
}

.votacion-campo label {
    color: #17202a;
    font-weight: 800;
}

.votacion-campo select,
.votacion-campo input {
    width: 100%;
    min-height: 52px;
    border: 2px solid rgba(18, 53, 91, .16);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #17202a;
    font: inherit;
}

.votacion-campo select:focus,
.votacion-campo input:focus {
    border-color: #49a078;
    outline: 3px solid rgba(73, 160, 120, .18);
}

.votacion-oculto {
    display: none;
}

.votacion-grilla-juegos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.votacion-tarjeta-juego {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(18, 53, 91, .1);
    cursor: pointer;
}

.votacion-tarjeta-juego input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.votacion-tarjeta-juego img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border-bottom: 1px solid rgba(18, 53, 91, .16);
}

.votacion-tarjeta-juego strong,
.votacion-tarjeta-juego small {
    display: block;
    padding: 0 14px;
}

.votacion-tarjeta-juego strong {
    padding-top: 14px;
    color: #12355b;
    font-size: 1.18rem;
}

.votacion-tarjeta-juego small {
    padding-bottom: 16px;
    color: #506070;
    font-size: .98rem;
}

.votacion-marca {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #12355b;
    color: #fff;
    font-weight: 900;
}

.votacion-tarjeta-juego:has(input:checked) {
    border-color: #f6c445;
    box-shadow: 0 18px 32px rgba(246, 196, 69, .28);
}

.votacion-tarjeta-juego:has(input:checked) .votacion-marca {
    background: #49a078;
}

.votacion-acciones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-bottom: 34px;
}

.votacion-boton {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    padding: 14px 24px;
    background: #ef6f6c;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

.votacion-boton:disabled {
    opacity: .65;
    cursor: wait;
}

.votacion-mensaje {
    margin: 0;
    font-weight: 800;
}

.votacion-mensaje-ok {
    color: #18794e;
}

.votacion-mensaje-error {
    color: #b42318;
}

.votacion-panel-resultados,
.votacion-tabla {
    padding: 22px;
}

.votacion-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(18, 53, 91, .16);
}

.votacion-total span {
    color: #506070;
    font-weight: 800;
}

.votacion-total strong {
    color: #12355b;
    font-size: 2.4rem;
}

.votacion-admin-acciones a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #12355b;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.votacion-fila-resultado {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 2fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 53, 91, .16);
}

.votacion-fila-resultado:last-child {
    border-bottom: 0;
}

.votacion-fila-resultado span,
.votacion-fila-resultado em {
    color: #506070;
    font-style: normal;
}

.votacion-barra {
    height: 18px;
    overflow: hidden;
    border-radius: 8px;
    background: #e8eef5;
}

.votacion-barra span {
    display: block;
    height: 100%;
    background: #49a078;
}

.votacion-tabla {
    margin-bottom: 44px;
}

.votacion-tabla h2 {
    color: #12355b;
}

.votacion-tabla table {
    width: 100%;
    border-collapse: collapse;
}

.votacion-tabla th,
.votacion-tabla td {
    padding: 12px;
    border-bottom: 1px solid rgba(18, 53, 91, .16);
    text-align: left;
}

.votacion-tabla th {
    color: #12355b;
}

@supports not selector(:has(*)) {
    .votacion-tarjeta-juego input:checked + .votacion-marca {
        background: #49a078;
    }
}

@media (max-width: 820px) {
    .votacion-grilla-campos,
    .votacion-grilla-juegos {
        grid-template-columns: 1fr;
    }

    .votacion-acciones {
        display: block;
    }

    .votacion-boton {
        width: 100%;
        margin-top: 14px;
    }

    .votacion-fila-resultado {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .votacion-cabecera {
        padding-top: 120px;
    }

    .votacion-bloque {
        padding: 16px;
    }

    .votacion-titulo-bloque {
        display: block;
    }

    .votacion-titulo-bloque span {
        margin-bottom: 12px;
    }
}
