/* ==========================================================================
   Level Premios — Estilos del circuito de votación (frontend)
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────────────── */

.lp-circuito {
    --lp-azul:      #2271b1;
    --lp-azul-osc:  #135e96;
    --lp-acento:    #e1ff01;
    --lp-verde:     #00a32a;
    --lp-rojo:      #d63638;
    --lp-gris-bg:   #f6f7f8;
    --lp-gris-brd:  #dcdde1;
    --lp-gris-txt:  #646970;
    --lp-blanco:    #ffffff;
    --lp-negro:     #1d2327;
    --lp-radio:     8px;
    --lp-sombra:    0 2px 8px rgba(0,0,0,.10);
    --lp-trans:     .2s ease;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--lp-negro);
    line-height: 1.6;
}

/* ── Aviso genérico ─────────────────────────────────────────────────────── */

.lp-circuito-aviso {
    text-align: center;
    padding: 48px 24px;
    background: var(--lp-blanco);
    border: 1px solid var(--lp-gris-brd);
    border-radius: var(--lp-radio);
}

.lp-aviso-icono {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.lp-circuito-aviso h3 { font-size: 20px; margin-bottom: 8px; }
.lp-circuito-aviso p  { color: var(--lp-gris-txt); }
.lp-circuito-aviso a  { color: var(--lp-azul); text-decoration: underline; }

/* ── Pantallas ──────────────────────────────────────────────────────────── */

.lp-pantalla {
    animation: lp-fade-in .25s ease;
}

@keyframes lp-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Cabecera del circuito ──────────────────────────────────────────────── */



/* ── Fila 1: progreso global ─────────────────────────────────────────────── */

.lp-progreso-global {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.lp-progreso-izq {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.lp-progreso-etiqueta {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
    margin-bottom: 2px;
}

.lp-progreso-subtexto {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.lp-progreso-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,.12);
    border-radius: 4px;
    overflow: hidden;
}

.lp-progreso-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 4px;
    min-width: 4px;
    transition: width .6s ease;
}

.lp-progreso-ring {
    flex-shrink: 0;
    position: relative;
    width: 62px;
    height: 62px;
}

.lp-progreso-ring svg { width: 100%; height: 100%; }

.lp-ring-pista {
    fill: none;
    stroke: rgba(255,255,255,.12);
    stroke-width: 4;
}

.lp-ring-relleno {
    fill: none;
    stroke: #22c55e;
    stroke-width: 4;
    stroke-linecap: round;
}

.lp-ring-txt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

/* ── Fila 2: cómo funciona + temporizador ────────────────────────────────── */

.lp-cabecera-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.lp-como-funciona { flex: 1; min-width: 0; }

.lp-como-titulo {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin: 0 0 8px;
}

.lp-pasos { display: flex; gap: 18px; flex-wrap: wrap; }

.lp-paso { display: flex; align-items: flex-start; gap: 5px; align-items: center; }

.lp-paso-num {
    font-size: 13px;
    font-weight: 900;
    color: #e1ff01;
    flex-shrink: 0;
    line-height: 1.3;
    background: #e1ff01;
    color: #0d1b3e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-paso-icono {
    color: rgba(255,255,255,.85);
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-paso-texto {
    font-size: 18px;
    line-height: 1.35;
    color: rgba(255,255,255,.95);
    font-weight: 500;
}

.lp-paso-contenido {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-paso-sub {
    font-size: 12px;
    color: rgba(255,255,255,.60);
    line-height: 1.4;
    white-space: normal;
}


.lp-timer {
    flex-shrink: 0;
    text-align: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,.06);
}

.lp-timer-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin: 0 0 4px;
}

.lp-timer-valor {
    font-size: 16px;
    font-weight: 900;
    color: #e1ff01;
    letter-spacing: .04em;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.lp-timer-pie {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    margin: 4px 0 0;
}

@media (max-width: 540px) {
    .lp-progreso-texto { white-space: normal; }
    .lp-cabecera-info  { flex-direction: column; gap: 12px; }
    .lp-timer          { text-align: left; }
    .lp-pasos          { gap: 12px; }
}

.lp-circuito-info {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 52%, #2271b1 100%);
    border-radius: 16px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ── Grid de divisiones ─────────────────────────────────────────────────── */

.lp-divisiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.lp-division-card {
    background: transparent;
    border-radius: 14px;
    border: none;
    box-shadow: 0 0 0 2px #e1ff01, 0 2px 16px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--lp-trans), box-shadow var(--lp-trans);
}

.lp-division-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px #e1ff01, 0 8px 28px rgba(204,255,0,.20);
}

.lp-division-card--completa {
    box-shadow: 0 0 0 2px #22c55e, 0 2px 16px rgba(0,0,0,.08);
}

.lp-division-card--completa:hover {
    box-shadow: 0 0 0 2px #22c55e, 0 8px 28px rgba(34,197,94,.20);
}

.lp-division-card--bloqueada {
    box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 2px 16px rgba(0,0,0,.08);
    opacity: .55;
}

.lp-division-card--bloqueada:hover {
    transform: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 2px 16px rgba(0,0,0,.08);
}

.lp-card-lock {
    font-size: 14px;
    line-height: 1;
}

/* ── Cabecera de la tarjeta ─────────────────────────────────────────────── */

.lp-card-head {
    background: transparent;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    border-radius: 14px 14px 0 0;
    justify-content: center;
}

.lp-division-card--completa .lp-card-head {
    background: transparent;
}

.lp-card-check {
    font-size: 15px;
    color: #a8f0c0;
    flex-shrink: 0;
    font-weight: 700;
}

.lp-division-nombre {
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    text-align: left;
}

/* ── Cuerpo de la tarjeta ───────────────────────────────────────────────── */

.lp-card-body {
    background: transparent;
    padding: 20px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px #e1ff01;
    border-radius: 5px;
}

/* ── Anillo de progreso ─────────────────────────────────────────────────── */

.lp-anillo {
    position: relative;
    width: 84px;
    height: 84px;
}

.lp-anillo svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lp-anillo-bg {
    fill: none;
    stroke: rgba(255,255,255,.15);
    stroke-width: 5;
}

.lp-anillo-fill {
    fill: none;
    stroke: #e1ff01;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dasharray .4s ease;
}

.lp-division-card--completa .lp-anillo-fill { stroke: #22c55e; }

.lp-anillo-texto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.lp-division-card--completa .lp-anillo-texto {
    color: #22c55e;
    font-size: 22px;
}

/* ── Estado de la división ──────────────────────────────────────────────── */

.lp-division-estado { font-size: 12px; margin: 0; text-align: center; }

.lp-estado--completa  { color: #22c55e; font-weight: 700; }
.lp-estado--pendiente { color: rgba(255,255,255,.60); }
.lp-estado--bloqueada { color: rgba(255,255,255,.60); font-style: italic; }

/* ── Botón de entrada a la división ────────────────────────────────────── */

.lp-btn-entrar {
    width: 100%;
    background: #e1ff01;
    color: #0d1b3e;
    border: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background var(--lp-trans);
    letter-spacing: .02em;
    border-radius: 0 0 12px 12px;
}

.lp-btn-entrar:hover { background: #d9ff33; }

.lp-division-card--completa .lp-btn-entrar { background: #22c55e; color: #fff; }
.lp-division-card--completa .lp-btn-entrar:hover { background: #16a34a; }

.lp-btn-entrar--bloqueado,
.lp-btn-entrar:disabled {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.45);
    cursor: not-allowed;
}
.lp-btn-entrar--bloqueado:hover,
.lp-btn-entrar:disabled:hover { background: rgba(255,255,255,.10); }

/* ── Bloque de envío ────────────────────────────────────────────────────── */

.lp-enviar-bloque {
    display: none;
    text-align: center;
    padding: 32px 28px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 100%);
    border-radius: 14px;
    margin-top: 4px;
}

.lp-enviar-bloque--visible {
    display: block;
    animation: lp-fade-in .3s ease;
}

.lp-enviar-bloque p { color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: 15px; }

.lp-enviar-bloque--visible .lp-btn--grande {
    animation: lp-pulso-atencion 1.6s ease-out 3;
}

/* ── Botones ────────────────────────────────────────────────────────────── */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--lp-radio);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 18px;
    transition: background var(--lp-trans), transform var(--lp-trans), opacity var(--lp-trans);
    text-decoration: none;
}

.lp-btn:disabled { opacity: .45; cursor: not-allowed; }

.lp-btn--primario { background: var(--lp-azul); color: var(--lp-blanco); }
.lp-btn--primario:hover:not(:disabled) { background: var(--lp-azul-osc); }

.lp-btn--secundario {
    background: var(--lp-gris-bg);
    color: var(--lp-negro);
    border: 1px solid var(--lp-gris-brd);
}
.lp-btn--secundario:hover:not(:disabled) { background: var(--lp-gris-brd); }

.lp-btn--grande {
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    background: #e1ff01;
    color: #0d1b3e;
    border-radius: 10px;
    letter-spacing: .02em;
}
.lp-btn--grande:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204,255,0,.35);
}

/* ── Cabecera de votación ───────────────────────────────────────────────── */

.lp-votacion-cabecera {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.lp-btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,113,177,.12);
    border: 1px solid rgba(34,113,177,.30);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 6px 12px 6px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: background var(--lp-trans), border-color var(--lp-trans), color var(--lp-trans);
}

.lp-btn-volver::before {
    content: '←';
    font-size: 14px;
    line-height: 1;
}

.lp-btn-volver:hover {
    background: rgba(34,113,177,.20);
    border-color: var(--lp-azul);
    color: #fff;
}

.lp-votacion-titulo {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

/* ── Campo de fútbol SVG ────────────────────────────────────────────────── */

.lp-campo-contenedor {
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.lp-campo {
    width: 100%;
    max-width: 500px; /* ampliado para incluir afición en los laterales */
    height: auto;
    cursor: default;
    overflow: visible; /* permite que la sombra del césped se vea fuera del viewBox */
}

/* ── Marcadores de posición (SVG) ───────────────────────────────────────── */

.lp-pos {
    cursor: pointer;
    transition: opacity .15s;
}

.lp-pos:focus { outline: none; }

.lp-pos-shadow { fill: rgba(0, 0, 0, .28); }

.lp-pos-dot {
    fill: var(--lp-azul);
    transition: fill .22s ease, r .15s ease;
}

.lp-pos:hover .lp-pos-dot,
.lp-pos:focus .lp-pos-dot {
    fill: #e8a000;
}

.lp-pos--votado .lp-pos-dot { fill: #199d37; }
.lp-pos--votado:hover .lp-pos-dot,
.lp-pos--votado:focus .lp-pos-dot { fill: #0e7a28; }

/* Anillo de pulso */
.lp-pos-pulse {
    fill: none;
    stroke: rgba(255, 255, 255, .62);
    stroke-width: 2;
    animation: lp-pulse 2.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.lp-pos--votado .lp-pos-pulse {
    stroke: rgba(25, 180, 60, .5);
    animation-duration: 3s;
}

@keyframes lp-pulse {
    0%, 100% { transform: scale(.92); opacity: 0; }
    45%, 55%  { transform: scale(1.22); opacity: 1; }
}

/* Abreviación dentro del marcador */
.lp-pos-abbr {
    fill: #fff;
    font-size: 9.5px;
    font-weight: 700;
    font-family: system-ui, sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    letter-spacing: .5px;
}

.lp-pos--votado .lp-pos-abbr { display: none; }

/* Checkmark (solo visible cuando votado) */
.lp-pos-check {
    fill: #fff;
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    display: none;
}

.lp-pos--votado .lp-pos-check { display: block; }

/* Etiqueta bajo el marcador */
.lp-pos-label {
    fill: rgba(255, 255, 255, .92);
    font-size: 7.5px;
    font-family: system-ui, sans-serif;
    text-anchor: middle;
    pointer-events: none;
}

/* ── Indicadores de progreso (puntos debajo del campo) ──────────────────── */

.lp-campo-progreso {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 6px;
}

.lp-progreso-punto {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lp-gris-bg);
    border: 2px solid var(--lp-gris-brd);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background .22s, border-color .22s;
}

.lp-progreso-abbr {
    font-size: 9px;
    font-weight: 700;
    color: var(--lp-gris-txt);
    letter-spacing: .3px;
}

.lp-progreso-punto--votado {
    background: var(--lp-verde);
    border-color: var(--lp-verde);
}

.lp-progreso-punto--votado .lp-progreso-abbr {
    color: transparent;
    font-size: 0;
}

.lp-progreso-punto--votado::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

/* ── Instrucción bajo el campo ──────────────────────────────────────────── */

.lp-campo-instruccion {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 20px;
    padding: 6px 18px;
    margin: 8px auto 0;
    width: fit-content;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Pista de categoría completada ──────────────────────────────────────── */

@keyframes lp-slide-down {
    0%   { opacity: 0; transform: translateY(-14px) scale(.97); }
    60%  { opacity: 1; transform: translateY(3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lp-check-pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    50%       { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

.lp-campo-completado {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 100%);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    animation: lp-slide-down .4s cubic-bezier(.22,.68,0,1.2) both;
}

.lp-completado-check {
    width: 42px;
    height: 42px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
    animation: lp-check-pulso 1.8s ease-in-out 3;
}

.lp-completado-info { flex: 1; min-width: 0; }

.lp-completado-titulo {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.lp-completado-sub {
    font-size: 12px;
    color: rgba(255,255,255,.78);
    margin: 0;
}

.lp-completado-acciones {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.lp-completado-cta {
    flex-shrink: 0;
    background: #e1ff01;
    color: #0d1b3e;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--lp-trans), transform var(--lp-trans);
}

.lp-completado-cta:hover {
    background: #d9ff26;
    transform: translateY(-1px);
}

.lp-completado-cta--siguiente {
    background: transparent;
    color: #e1ff01;
    border: 1.5px solid #e1ff01;
}

.lp-completado-cta--siguiente:hover {
    background: rgba(225,255,1,.1);
}

.lp-completado-cta--enviar {
    background: #22c55e;
    color: #0d1b3e;
}

.lp-completado-cta--enviar:hover {
    background: #16a34a;
}

@keyframes lp-pulso-atencion {
    0%   { box-shadow: 0 0 0 0 rgba(225,255,1,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(225,255,1,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,255,1,0); }
}

.lp-completado-cta--pulso {
    animation: lp-pulso-atencion 1.6s ease-out 3;
}

@media (max-width: 480px) {
    .lp-campo-completado  { flex-wrap: wrap; }
    .lp-completado-acciones { width: 100%; }
    .lp-completado-cta    { width: 100%; text-align: center; }
}

/* ── Modal de candidatos ────────────────────────────────────────────────── */

.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 600px) {
    .lp-modal { align-items: center; }
}

.lp-modal-fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.lp-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 32px rgba(0,0,0,.22);
    animation: lp-modal-subir .28s ease;
}

@keyframes lp-modal-subir {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 600px) {
    .lp-modal-panel {
        border-radius: 16px;
        max-height: 82vh;
        animation: lp-fade-in .22s ease;
    }
}

.lp-modal-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.lp-modal-division-nombre {
    font-size: 11px;
    font-weight: 700;
    color: var(--lp-azul);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 3px;
}

.lp-modal-titulo {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111;
    line-height: 1.2;
}

.lp-modal-cerrar {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--lp-trans), color var(--lp-trans);
}

.lp-modal-cerrar:hover { background: #e5e7eb; color: #111; }

.lp-modal-cuerpo {
    overflow-y: auto;
    padding: 16px 16px 28px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* ── Banner de éxito tras votar ─────────────────────────────────────────── */

.lp-modal-exito {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    animation: lp-fade-in .22s ease;
}

.lp-modal-exito-icono {
    width: 34px;
    height: 34px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-modal-exito-texto {
    flex: 1;
    min-width: 0;
}

.lp-modal-exito-texto > strong {
    display: block;
    font-size: 14px;
    color: #15803d;
    margin-bottom: 2px;
}

.lp-modal-exito-texto p {
    font-size: 13px;
    color: #166534;
    margin: 0;
    line-height: 1.4;
}

.lp-modal-exito-texto strong { font-weight: 700; }

.lp-modal-exito-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
    background: var(--lp-azul);
    color: #fff;
    border-radius: 8px;
}

.lp-modal-exito-btn:hover { background: var(--lp-azul-osc); }

@media (max-width: 480px) {
    .lp-modal-exito { flex-wrap: wrap; }
    .lp-modal-exito-btn { width: 100%; justify-content: center; }
}

/* ── Grid de candidatos (dentro del modal) ──────────────────────────────── */

.lp-candidatos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.lp-candidato {
    background: var(--lp-blanco);
    border: 2px solid var(--lp-gris-brd);
    border-radius: var(--lp-radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--lp-trans), box-shadow var(--lp-trans);
}

.lp-candidato:hover {
    border-color: var(--lp-azul);
    box-shadow: var(--lp-sombra);
}

.lp-candidato--votado {
    border-color: var(--lp-verde);
    background: #f0fdf4;
}

/* ── Foto del candidato ─────────────────────────────────────────────────── */

.lp-candidato-foto {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--lp-gris-bg);
}

.lp-candidato-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--lp-gris-txt);
    background: var(--lp-gris-bg);
}

.lp-votado-sello {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--lp-verde);
    color: var(--lp-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* ── Info del candidato ─────────────────────────────────────────────────── */

.lp-candidato-info { padding: 10px 12px; flex: 1; }

.lp-candidato-nombre {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.lp-candidato-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    margin: 0;
}

.lp-stat dt {
    font-size: 9px;
    color: var(--lp-gris-txt);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.lp-stat dd {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

/* ── Botón votar ────────────────────────────────────────────────────────── */

.lp-btn-votar {
    margin: 0 12px 12px;
    width: calc(100% - 24px);
    background: var(--lp-azul);
    color: var(--lp-blanco);
    border: none;
    border-radius: 6px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lp-trans), transform var(--lp-trans);
}

.lp-btn-votar:hover {
    background: var(--lp-azul-osc);
    transform: translateY(-1px);
}

.lp-btn-votar--activo { background: var(--lp-verde); }
.lp-btn-votar--activo:hover { background: #008a22; }

.lp-badge-enviado {
    display: block;
    text-align: center;
    color: var(--lp-verde);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 12px;
}

.lp-sin-candidatos {
    color: var(--lp-gris-txt);
    font-style: italic;
    padding: 28px 0;
    text-align: center;
}

/* ── Pantalla de resumen ────────────────────────────────────────────────── */

.lp-pantalla-resumen { max-width: 1140px; margin: 0 auto; }

/* Tarjeta de resumen */
.lp-voto-card,
#lp-share-card {
    background: linear-gradient(160deg, #0d1b3e 0%, #172f5e 55%, #0d1b3e 100%);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.lp-voto-card::before,
#lp-share-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(204,255,0,.07) 0%, transparent 65%);
    pointer-events: none;
}

.lp-ac { color: #e1ff01; }

/* cabecera de la tarjeta de resumen */
.lp-voto-card-cabecera {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.lp-voto-card-logo {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(204,255,0,.25));
}

.lp-voto-card-premios {
    font-size: clamp(22px, 5.5vw, 34px);
    font-weight: 900;
    color: #fff;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.lp-voto-card-titulo {
    font-size: clamp(15px, 3vw, 20px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.lp-voto-card-sub {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin: 0;
    line-height: 1.7;
}

/* Fila de división */
.lp-voto-div-fila {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    border: 2px solid #e1ff01;
    border-radius: 14px;
    padding: 12px 12px 12px 10px;
    background: rgba(204,255,0,.03);
    box-shadow: 0 0 16px rgba(204,255,0,.08);
}

.lp-voto-div-fila:last-child { margin-bottom: 0; }

/* Badge de división */
.lp-voto-div-etiqueta {
    flex-shrink: 0;
    width: 76px;
    min-height: 76px;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.lp-voto-div-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.lp-voto-div-inicial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(204,255,0,.15);
    border: 1.5px solid rgba(204,255,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #e1ff01;
    line-height: 1;
    flex-shrink: 0;
}

/* Scroll horizontal de candidatos */
.lp-voto-cands-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* Tarjeta individual de candidato */
.lp-voto-cand-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 100%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 16px 12px 14px;
    width: 150px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.lp-voto-cand-pos {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #e1ff01;
    line-height: 1.3;
    background: rgba(204,255,0,.1);
    border-radius: 4px;
    padding: 4px 7px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    max-width: 100%;
}

.lp-voto-cand-foto-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgba(204,255,0,.4);
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(204,255,0,.18);
}

.lp-voto-cand-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-voto-cand-foto--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.3);
    width: 100%;
    height: 100%;
}

.lp-voto-cand-foto--placeholder svg { width: 28px; height: 28px; }

.lp-voto-cand-nombre {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

.lp-voto-cand-club {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 14px;
}

.lp-voto-cand-escudo {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-voto-cand-club-nombre {
    font-size: 9.5px;
    color: rgba(255,255,255,.65);
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    line-height: 1.2;
    max-width: 100px;
}

/* ── Compartir ──────────────────────────────────────────────────────────── */

.lp-compartir-card {
    background: linear-gradient(120deg, #0b1220 0%, #0e1a30 60%, #121f3a 100%);
    border: 1px solid rgba(204,255,0,.18);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
}

/* luz verde de fondo */
.lp-compartir-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(20,90,30,.18) 0%, transparent 70%);
    pointer-events: none;
}

/* campo decorativo centrado */
.lp-compartir-campo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 158px;
    opacity: .08;
    pointer-events: none;
    z-index: 0;
}

.lp-compartir-campo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* sombra lateral derecha */
.lp-compartir-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 140px;
    background: linear-gradient(90deg, transparent, rgba(0,80,20,.15));
    pointer-events: none;
}

.lp-compartir-izq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lp-compartir-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-compartir-icono {
    flex-shrink: 0;
}

.lp-compartir-titulo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    margin-bottom: 4px;
}

.lp-compartir-titulo-l1 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lp-compartir-titulo-l2 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lp-compartir-subtexto {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0;
    line-height: 1.45;
}

.lp-compartir-divisor {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,.14);
    margin: 0 26px;
    flex-shrink: 0;
}

.lp-compartir-der {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.lp-compartir-divisor {
    position: relative;
    z-index: 1;
}

.lp-compartir-etiqueta-grupo {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-compartir-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}

.lp-compartir-handle {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}

.lp-compartir-iconos-redes {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.lp-red-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.lp-red-icono:hover {
    background: rgba(204,255,0,.15);
    border-color: rgba(204,255,0,.45);
    color: #e1ff01;
}

.lp-compartir-descargar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(204,255,0,.1);
    border: 1.5px solid rgba(204,255,0,.45);
    border-radius: 10px;
    color: #e1ff01;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background .15s, border-color .15s;
}

.lp-compartir-descargar:hover {
    background: rgba(204,255,0,.2);
    border-color: rgba(204,255,0,.7);
}

/* ── Tarjeta compartible (captura html2canvas, fuera de pantalla) ────────── */

#lp-share-card {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1040px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    margin-bottom: 0;
}

#lp-share-card .lp-voto-cands-scroll {
    overflow: visible;
    flex-wrap: nowrap;
}

#lp-share-card .lp-voto-cand-card {
    width: 140px;
    padding: 18px 10px 16px;
}

#lp-share-card .lp-voto-cand-foto-wrap {
    width: 92px;
    height: 92px;
}

#lp-share-card .lp-voto-cand-nombre { font-size: 13px; }

#lp-share-card .lp-voto-cand-pos { font-size: 10.5px; }

#lp-share-card .lp-voto-cand-club-nombre { font-size: 10px; max-width: 105px; }

#lp-share-card .lp-voto-div-etiqueta { min-height: 92px; }

.lp-share-footer {
    font-size: 16px;
    font-weight: 800;
    color: #e1ff01;
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    letter-spacing: .08em;
}

/* ── Overlay de carga ───────────────────────────────────────────────────── */

.lp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.lp-overlay-texto {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-azul-osc);
    margin: 0;
}

/* ── Modal de confirmación (sustituye al confirm() nativo) ──────────────── */

.lp-modal-confirmar {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-modal-confirmar-fondo {
    position: absolute;
    inset: 0;
    background: rgba(5,10,25,.65);
    backdrop-filter: blur(2px);
}

.lp-modal-confirmar-panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(160deg, #0d1b3e 0%, #172f5e 100%);
    border: 1px solid rgba(225,255,1,.25);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    animation: lp-modal-confirmar-entrar .25s cubic-bezier(.22,.68,0,1.1) both;
}

@keyframes lp-modal-confirmar-entrar {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lp-modal-confirmar-icono {
    display: block;
    font-size: 32px;
    margin: 0 auto 10px;
}

.lp-modal-confirmar-icono--logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.lp-modal-confirmar-titulo {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 10px;
}

.lp-modal-confirmar-texto {
    color: rgba(255,255,255,.70);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.lp-modal-confirmar-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-modal-confirmar-acciones .lp-completado-cta {
    width: 100%;
}

@media (min-width: 420px) {
    .lp-modal-confirmar-acciones {
        flex-direction: row-reverse;
    }
    .lp-modal-confirmar-acciones .lp-completado-cta {
        width: auto;
        flex: 1;
    }
}

.lp-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--lp-gris-brd);
    border-top-color: var(--lp-azul);
    border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Evitar scroll del fondo cuando el modal está abierto */
body.lp-modal-abierto { overflow: hidden; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .lp-divisiones-grid { grid-template-columns: 1fr 1fr; }
    .lp-candidatos-grid { grid-template-columns: 1fr 1fr; }
    .lp-votacion-cabecera { flex-wrap: wrap; }

    .lp-voto-div-etiqueta { width: 72px; }
    .lp-voto-cand-card    { width: 128px; padding: 12px 8px; }
    .lp-voto-cand-foto-wrap { width: 64px; height: 64px; }
    .lp-compartir-campo { opacity: .04; }
}

@media (max-width: 400px) {
    .lp-divisiones-grid,
    .lp-candidatos-grid { grid-template-columns: 1fr; }

    .lp-pos-label { display: none; }

    .lp-compartir-card { flex-direction: column; padding: 20px 18px 20px; gap: 16px; }
    .lp-compartir-divisor { width: 100%; height: 1px; margin: 0; }
    .lp-compartir-der { flex-direction: row; gap: 20px; flex-wrap: wrap; }
    .lp-compartir-campo { opacity: .02; }
}

/* ── Layout de votación: dos columnas ────────────────────────────────────── */

.lp-circuito .lp-votacion-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Columna izquierda: lista de posiciones ─────────────────────────────── */

.lp-circuito .lp-posiciones-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 215px;
    flex-shrink: 0;
}

.lp-circuito .lp-pos-card {
    /* reset botón */
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    /* layout */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    /* tema */
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 14px;
    color: rgba(255,255,255,.70);
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.lp-circuito .lp-pos-card:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(204,255,0,.55);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.lp-circuito .lp-pos-card.lp-pos-card--activa {
    background: rgba(204,255,0,.10);
    border-color: #e1ff01;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(204,255,0,.20), 0 4px 20px rgba(0,0,0,.30);
}

.lp-circuito .lp-pos-card-icono {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204,255,0,.08);
    border-radius: 10px;
    border: 1px solid rgba(204,255,0,.18);
}

.lp-circuito .lp-pos-card-icono svg {
    width: 22px;
    height: 22px;
    display: block;
    overflow: visible;
    color: #e1ff01;
}

.lp-circuito .lp-pos-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-circuito .lp-pos-card-nombre {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: inherit;
}

.lp-circuito .lp-pos-card-estado {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.38);
    display: block;
    line-height: 1;
}

.lp-circuito .lp-pos-card.lp-pos-card--votada .lp-pos-card-estado {
    color: #22c55e;
}

.lp-circuito .lp-pos-card-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.lp-circuito .lp-pos-card.lp-pos-card--votada .lp-pos-card-check {
    display: flex;
}

/* ── Card bloqueada ──────────────────────────────────────────────────────── */
.lp-circuito .lp-pos-card--bloqueada {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}
.lp-circuito .lp-pos-card--bloqueada .lp-pos-card-estado {
    color: rgba(255,255,255,.28);
}

/* Icono candado: oculto por defecto, visible al bloquear */
.lp-circuito .lp-pos-card-lock {
    display: none;
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,.35);
    flex-shrink: 0;
}
.lp-circuito .lp-pos-card-lock svg {
    width: 100%;
    height: 100%;
    display: block;
}
.lp-circuito .lp-pos-card--bloqueada .lp-pos-card-lock {
    display: block;
}

/* ── Columna derecha: panel de candidatos ───────────────────────────────── */

.lp-circuito .lp-candidatos-panel {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 480px;
}

.lp-circuito .lp-panel-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: rgba(255,255,255,.35);
    padding: 40px 24px;
    text-align: center;
}

/* Balón animado */
.lp-circuito .lp-placeholder-ball {
    width: 80px;
    height: 80px;
    color: rgba(204,255,0,.45);
    animation: lp-ball-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(204,255,0,.20));
}
.lp-circuito .lp-placeholder-ball svg {
    width: 100%;
    height: 100%;
}
@keyframes lp-ball-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-8px); }
}

/* Textos */
.lp-circuito .lp-placeholder-titulo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: .01em;
}
.lp-circuito .lp-placeholder-sub {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    margin: 0;
    line-height: 1.6;
}

/* Pasos */
.lp-circuito .lp-placeholder-pasos {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 220px;
}
.lp-circuito .lp-placeholder-pasos li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}
.lp-circuito .lp-placeholder-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(204,255,0,.15);
    border: 1px solid rgba(204,255,0,.35);
    color: #e1ff01;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-circuito .lp-panel-activo {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.lp-circuito .lp-panel-cabecera {
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.lp-circuito .lp-panel-titulo {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .01em;
}

.lp-circuito .lp-panel-buscar-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lp-circuito .lp-panel-buscar-wrap svg {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    pointer-events: none;
    color: rgba(255,255,255,.38);
}

.lp-circuito .lp-panel-buscar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.lp-circuito .lp-panel-buscar::placeholder { color: rgba(255,255,255,.30); }

.lp-circuito .lp-panel-buscar:focus {
    border-color: rgba(204,255,0,.50);
    background: rgba(255,255,255,.10);
    box-shadow: 0 0 0 3px rgba(204,255,0,.10);
}

.lp-circuito .lp-panel-candidatos {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 22px 22px;
    transition: opacity .15s ease;
}

.lp-circuito .lp-panel-candidatos.lp-panel-candidatos--transicion {
    opacity: 0;
}

.lp-circuito .lp-panel-candidatos .lp-candidatos-set { display: block; }

.lp-circuito .lp-panel-candidatos .lp-candidatos-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* ── Trading card: candidato ─────────────────────────────────────────────── */

.lp-circuito .lp-candidato {
    background: linear-gradient(170deg, #1e407a 0%, #112255 45%, #0a1633 100%);
    border: 1.5px solid rgba(255,255,255,.13);
    border-radius: 14px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    position: relative;
    z-index: 1;
}

.lp-circuito .lp-candidato:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.50);
    border-color: rgba(255,255,255,.28);
    z-index: 10;
}

.lp-circuito .lp-candidato--votado {
    border-color: #e1ff01;
    box-shadow: 0 0 0 1px rgba(204,255,0,.35), 0 6px 20px rgba(0,0,0,.4);
    background: linear-gradient(170deg, #2a5020 0%, #183312 45%, #0a1a06 100%);
}

/* ── Foto ────────────────────────────────────────────────────────────────── */

.lp-circuito .lp-candidato-foto {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.lp-circuito .lp-candidato-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-candidato-img-lazy {
    background: rgba(255,255,255,.05);
    opacity: 0;
    transition: opacity .25s ease;
}

.lp-candidato-img-lazy.lp-cargada {
    opacity: 1;
}

/* Badge número (01, 02…) */
.lp-circuito .lp-candidato-num {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.55);
    color: rgba(255,255,255,.85);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: .4px;
    z-index: 2;
    line-height: 1.4;
}

/* Badge votado */
.lp-circuito .lp-votado-sello {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    background: #e1ff01;
    color: #0d1b3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    z-index: 2;
}

/* Placeholder sin foto */
.lp-circuito .lp-foto-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: rgba(255,255,255,.20);
    background: linear-gradient(170deg, rgba(255,255,255,.05) 0%, transparent 100%);
}

/* ── Info (nombre + stats) ──────────────────────────────────────────────── */

.lp-circuito .lp-candidato-info {
    padding: 12px 13px 10px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.08);
    flex: 0;
}

/* Fila nombre + botón info */
.lp-circuito .lp-candidato-nombre-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.lp-circuito .lp-candidato-nombre {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Club / equipo */
.lp-circuito .lp-candidato-club {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,.50);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-circuito .lp-candidato-club svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: rgba(204,255,0,.7);
}

.lp-circuito .lp-club-escudo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Botón de info ℹ ────────────────────────────────────────────────────── */

.lp-circuito .lp-info-wrap {
    position: relative;
    flex-shrink: 0;
}

.lp-circuito .lp-info-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid rgba(204,255,0,.45);
    background: rgba(204,255,0,.12);
    color: #e1ff01;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, border-color .15s, box-shadow .15s;
    flex-shrink: 0;
}

.lp-circuito .lp-info-btn svg {
    width: 15px;
    height: 15px;
    display: block;
}

.lp-circuito .lp-info-btn:hover,
.lp-circuito .lp-info-btn:focus {
    outline: none;
    background: rgba(204,255,0,.28);
    border-color: #e1ff01;
    box-shadow: 0 0 0 3px rgba(204,255,0,.20);
}

/* ── Tooltip estadísticas ───────────────────────────────────────────────── */

.lp-circuito .lp-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8,16,38,.97);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 175px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 20;
    box-shadow: 0 10px 32px rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-circuito .lp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(8,16,38,.97);
}

.lp-circuito .lp-info-wrap:hover .lp-tooltip,
.lp-circuito .lp-info-wrap:focus-within .lp-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.lp-circuito .lp-tooltip-titulo {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.lp-circuito .lp-tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.lp-circuito .lp-tooltip-stat:last-child { border-bottom: none; }

.lp-circuito .lp-tooltip-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,.65);
}

.lp-circuito .lp-tooltip-stat-val {
    font-size: 13px;
    font-weight: 800;
    color: #e1ff01;
    min-width: 28px;
    text-align: right;
}

/* ── Botón votar ────────────────────────────────────────────────────────── */

.lp-circuito .lp-btn-votar {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% - 26px);
    margin: 0 13px 13px;
    padding: 9px 10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 10px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
    flex-shrink: 0;
}

.lp-circuito .lp-btn-votar:hover {
    background: #e1ff01;
    border-color: #e1ff01;
    color: #0d1b3e;
    box-shadow: 0 4px 14px rgba(204,255,0,.35);
}

.lp-circuito .lp-btn-votar.lp-btn-votar--activo {
    background: rgba(204,255,0,.15);
    border-color: rgba(204,255,0,.60);
    color: #e1ff01;
}

.lp-circuito .lp-btn-votar.lp-btn-votar--activo:hover {
    background: #e1ff01;
    color: #0d1b3e;
}

.lp-circuito .lp-btn-votar--cargando {
    position: relative;
    color: transparent !important;
    cursor: wait;
}

.lp-circuito .lp-btn-votar--cargando::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: #e1ff01;
    border-radius: 50%;
    animation: lp-spin .6s linear infinite;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .lp-circuito .lp-votacion-layout {
        flex-direction: column;
    }

    .lp-circuito .lp-posiciones-lista {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .lp-circuito .lp-pos-card {
        flex: 1 1 calc(33.33% - 6px);
        min-width: 90px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 8px 10px;
        gap: 6px;
        position: relative;
    }

    .lp-circuito .lp-pos-card-icono { background: none; border: none; }
    .lp-circuito .lp-pos-card-nombre { font-size: 11px; white-space: normal; }

    .lp-circuito .lp-pos-card-check {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .lp-circuito .lp-candidatos-panel { min-height: 300px; }
}

/* ── Recordatorio: equipo favorito en el perfil ───────────────────────────── */

.lp-aviso-equipo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(225,255,1,.06);
    border: 1px solid rgba(225,255,1,.30);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.lp-aviso-equipo-icono {
    font-size: 20px;
    flex-shrink: 0;
}

.lp-aviso-equipo p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}

.lp-aviso-equipo-cta {
    flex-shrink: 0;
    background: #e1ff01;
    color: #0d1b3e;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.lp-aviso-equipo-cta:hover {
    background: #d9ff26;
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .lp-aviso-equipo { flex-wrap: wrap; }
    .lp-aviso-equipo-cta { width: 100%; text-align: center; }
}

/* Toast flotante tras iniciar sesión */

.lp-toast-equipo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    width: 340px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    background: linear-gradient(160deg, #0d1b3e 0%, #172f5e 100%);
    border: 1px solid rgba(225,255,1,.30);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    animation: lp-toast-entrar .35s cubic-bezier(.22,.68,0,1.1) both;
}

.lp-toast-equipo--salir {
    animation: lp-toast-salir .4s ease both;
}

@keyframes lp-toast-entrar {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes lp-toast-salir {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(16px); opacity: 0; }
}

.lp-toast-equipo-cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 26px 8px 0;
}

.lp-toast-equipo-icono {
    font-size: 20px;
    flex-shrink: 0;
}

.lp-toast-equipo-cabecera strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.lp-toast-equipo-texto {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.45;
}

.lp-toast-equipo-cta {
    display: inline-block;
    background: #e1ff01;
    color: #0d1b3e;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
}

.lp-toast-equipo-cta:hover { background: #d9ff26; }

.lp-toast-equipo-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.lp-toast-equipo-cerrar:hover { color: #ffffff; }

@media (max-width: 480px) {
    .lp-toast-equipo { left: 16px; right: 16px; bottom: 16px; width: auto; }
}