/* ── Tabla de cuotas ──────────────────────────────────────────────────────
   Mismos colores de marca que el ticker: marino #173358 y rojo #da202c.    */

.lop-wrapper{
    --navy: #173358;
    --navy-700: #122a49;
    --red: #da202c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-800: #1e293b;
    --odds: #173358;   /* azul Betcris para las cuotas */

    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    font-family: Inter, system-ui, sans-serif;
    color: var(--slate-800);
}

/* Deportes */

.lop-sb-sports{
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
}

.lop-sb-sports-list{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.lop-sb-sports-list::-webkit-scrollbar{ display: none; }

.lop-sb-sports-list,
.lop-sb-markets,
.lop-tk-tabs,
.lop-tk-viewport{
    cursor: grab;
    touch-action: pan-y;
}

/* El arrastre nativo de enlaces e imágenes compite con el gesto. */
.lop-sb-sports-list a,
.lop-tk-viewport a,
.lop-tk-viewport img{
    -webkit-user-drag: none;
    user-select: none;
}

.lop-sb-sports-list.is-dragging,
.lop-sb-markets.is-dragging,
.lop-tk-tabs.is-dragging,
.lop-tk-viewport.is-dragging{
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.lop-wrapper .lop-sb-sport{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
    color: var(--slate-800);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}

.lop-wrapper .lop-sb-sport:hover{
    border-color: var(--slate-300);
    background: var(--slate-50);
    color: var(--slate-800);
}

.lop-wrapper .lop-sb-sport.is-active{
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.lop-sb-sport-icon{ font-size: 17px; line-height: 1; }

/* Los importantes van primero y pesan más; el resto queda discreto. */
.lop-wrapper .lop-sb-sport--top{
    border-color: var(--slate-300);
    color: var(--navy);
    font-weight: 700;
}

.lop-wrapper .lop-sb-sport--rest{
    background: var(--slate-50);
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 500;
}

.lop-wrapper .lop-sb-sport--rest:hover{ color: var(--navy); }

.lop-wrapper .lop-sb-sport--rest.is-active,
.lop-wrapper .lop-sb-sport--top.is-active{
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.lop-sb-sports-sep{
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--slate-300);
}

.lop-wrapper .lop-sb-scroll{
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.lop-wrapper .lop-sb-scroll:hover{ background: var(--slate-50); }

/* Encabezado */

.lop-sb-header{ padding: 14px 0 6px; }

.lop-wrapper .lop-sb-title{
    margin: 0;
    color: var(--navy);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.lop-sb-subtitle{
    margin: 4px 0 0;
    color: var(--slate-500);
    font-size: 15px;
}

/* Buscador y liga */

.lop-sb-toolbar{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--slate-100);
}

.lop-sb-search{
    position: relative;
    flex: 1 1 320px;
}

.lop-sb-search-icon{
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--slate-400);
    transform: translateY(-50%);
}

.lop-wrapper .lop-sb-search-input{
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: #fff;
    color: var(--slate-800);
    font-family: inherit;
    font-size: 15px;
}

.lop-wrapper .lop-sb-search-input:focus{
    border-color: var(--navy);
    outline: none;
}

.lop-sb-league{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    padding-left: 16px;
    border-left: 1px solid var(--slate-200);
}

.lop-sb-league label{
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 600;
}

.lop-wrapper #leagueSelect{
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: #fff;
    color: var(--slate-800);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

/* Mercados */

.lop-sb-markets{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}

.lop-sb-markets::-webkit-scrollbar{ display: none; }

.lop-wrapper .lop-sb-market{
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-500);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.lop-wrapper .lop-sb-market:hover{ background: var(--slate-200); }

.lop-wrapper .lop-sb-market.is-active{
    background: var(--red);
    color: #fff;
}

/* Partidos */

.lop-sb-day{
    margin: 22px 0 10px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

/* En español sólo va mayúscula la primera letra: «domingo 30 de mayo», no
   «Domingo 30 De Mayo». */
.lop-sb-day::first-letter{ text-transform: uppercase; }


/* Un partido por fila: equipos a la izquierda, mercados a la derecha. */

.lop-sb-body{
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px 10px;
}

.lop-sb-teams{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.lop-badge{
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.lop-sb-team{
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lop-sb-team > span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* El empate no tiene escudo: se alinea con los equipos que sí lo tienen. */
.lop-sb-team--draw{
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 600;
}

/* La palabra «vs» va sobre una línea que separa a los dos equipos. */
.lop-sb-vs{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.lop-sb-vs::after{
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--slate-200);
}

.lop-sb-odds-grid{
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--lop-cols, 3), minmax(96px, 124px));
    gap: 6px;
    align-items: stretch;
}

.lop-sb-col-head{
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.lop-sb-game-foot{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--slate-100);
}

.lop-wrapper .lop-sb-more{
    margin-left: auto;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lop-wrapper .lop-sb-more:hover{ text-decoration: underline; }

.lop-sb-game{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.lop-sb-game[hidden]{ display: none; }



.lop-sb-game-time{
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.lop-sb-game[data-live] .lop-sb-game-time{ color: var(--red); }

.lop-sb-game-league{
    margin-left: auto;
    overflow: hidden;
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.lop-sb-row{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
}

.lop-sb-row + .lop-sb-row{ border-top: 1px solid var(--slate-100); }

.lop-sb-pick{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    padding: 6px 4px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--slate-50);
    text-align: center;
    transition: border-color .15s, background .15s;
}

/* En la matriz la etiqueta ya está en la fila; dentro de la celda sobra. */
/* La columna ya está rotulada arriba; dentro de la celda la etiqueta sólo
   duplicaría el texto. Se deja en el HTML para los lectores de pantalla. */
.lop-sb-pick-label{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lop-sb-line{
    color: var(--slate-800);
    font-size: 13px;
    font-weight: 600;
}

.lop-sb-odds{
    color: var(--odds);
    font-size: 14px;
    font-weight: 700;
}

.lop-sb-game:hover .lop-sb-pick{
    border-color: var(--slate-300);
    background: #fff;
}

.lop-sb-pick--void,
.lop-sb-game:hover .lop-sb-pick--void{
    border-color: transparent;
    background: none;
}



.lop-sb-empty{
    padding: 22px 18px;
    color: var(--slate-500);
    text-align: center;
}

/* Cargando */

.lop-loading{
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background: rgba(255,255,255,.7);
}

.lop-loading.active{ display: flex; }

.lop-spinner{
    width: 34px;
    height: 34px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: lop-spin .8s linear infinite;
}

@keyframes lop-spin{ to{ transform: rotate(360deg); } }

@media (max-width: 767px){

    .lop-wrapper .lop-sb-title{ font-size: 26px; }

    .lop-sb-league{
        flex: 1 1 100%;
        padding-left: 0;
        border-left: 0;
    }

    .lop-wrapper #leagueSelect{ flex: 1 1 auto; max-width: none; }

    .lop-sb-body{
        flex-direction: column;
        gap: 10px;
    }

    .lop-sb-odds-grid{
        grid-template-columns: repeat(var(--lop-cols, 3), 1fr);
    }

    .lop-sb-team{ flex: 1 1 100%; }

    .lop-sb-games{ grid-template-columns: 1fr; }

    .lop-sb-team{ flex: 1 1 100%; }

    .lop-sb-pick{
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
        padding: 6px 8px;
    }


    .lop-sb-row, .lop-sb-game-head{ padding-left: 12px; padding-right: 12px; }

    .lop-wrapper .lop-sb-scroll{ display: none; }
}
/* ── Ticker «Apuestas Deportivas» ────────────────────────────────────────
   Mismos colores y medidas que el rediseño de la home (index_mx.html):
   marino #173358, rojo #da202c y la escala slate de Tailwind.            */

.lop-tk{
    --navy: #173358;
    --red: #da202c;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-800: #1e293b;
    --sky-100: #e0f2fe;
    --sky-700: #0369a1;

    max-width: 1240px;
    margin: 0 auto 24px;
    font-family: Inter, system-ui, sans-serif;
}

.lop-tk-bar{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
}


.lop-tk-globe{ font-size: 18px; }

.lop-tk-title{
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.lop-tk-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: lop-tk-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes lop-tk-pulse{
    50%{ opacity: .5; }
}

.lop-tk-tabs{
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.lop-tk-tabs::-webkit-scrollbar{ display: none; }

.lop-tk .lop-tk-tab{
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--slate-500);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.lop-tk .lop-tk-tab:hover,
.lop-tk .lop-tk-tab:focus{
    border: 0;
    background: #f1f5f9;
    color: var(--navy);
    outline: none;
}

.lop-tk .lop-tk-tab.is-active{
    background: var(--sky-100);
    color: var(--sky-700);
    font-weight: 600;
}

.lop-tk .lop-tk-all{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    box-shadow: 0 6px 20px -8px rgba(23,51,88,.18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.lop-tk .lop-tk-all:hover,
.lop-tk .lop-tk-all:focus{
    background: #c31d28;
    color: #fff;
    text-decoration: none;
}

/* Slider */

.lop-tk-slider{ position: relative; }

.lop-tk-viewport{
    overflow: hidden;
    margin: 0 44px;
    padding: 4px;
}

.lop-tk-track{
    display: flex;
    margin: 0 -6px;
    transition: transform .5s cubic-bezier(0,0,.2,1);
}

.lop-tk-slide{
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 0 6px;
}

.lop-tk-slide[hidden]{ display: none; }

.lop-tk .lop-tk-card{
    display: block;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.lop-tk .lop-tk-card:hover,
.lop-tk .lop-tk-card:focus{
    border-color: var(--slate-300);
    box-shadow: 0 10px 30px -12px rgba(23,51,88,.22);
    color: inherit;
    text-decoration: none;
}

.lop-tk .lop-tk-card:focus-visible{
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.lop-tk-card-head{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.lop-tk-emoji{ font-size: 16px; }

.lop-tk-league{
    overflow: hidden;
    color: var(--slate-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.lop-tk-badge{
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.lop-tk-time{
    flex-shrink: 0;
    margin-left: auto;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.lop-tk-date{
    margin-right: 3px;
    color: var(--slate-400);
    font-size: 10px;
    font-weight: 600;
    text-transform: capitalize;
}

.lop-tk-card[data-live="1"] .lop-tk-time{ color: var(--red); }

.lop-tk-card[data-live="1"] .lop-tk-date{ color: var(--slate-400); }

.lop-tk-teams .lop-badge{
    width: 18px;
    height: 18px;
}

.lop-tk-teams > span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lop-tk-teams{
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--slate-800);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lop-tk-odds{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.lop-tk-odds:has(.lop-tk-odd:nth-child(2):last-child){
    grid-template-columns: repeat(2, 1fr);
}

.lop-tk-odd{
    padding: 5px 3px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--slate-50);
    text-align: center;
    transition: border-color .15s, background .15s;
}

.lop-tk-odd:hover{
    border-color: var(--navy);
    background: #fff;
}

.lop-tk-odd-label{
    display: block;
    color: var(--slate-400);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.lop-tk-odd-value{
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.lop-tk-odd-value.is-pos{ color: var(--navy); }
.lop-tk-odd-value.is-neg{ color: #e11d48; }

/* Flechas y puntos */

.lop-tk .lop-tk-arrow{
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    top: 50%;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px -8px rgba(23,51,88,.18);
    color: var(--navy);
    font-size: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}

.lop-tk .lop-tk-arrow:hover{ background: var(--slate-50); }
.lop-tk .lop-tk-arrow[hidden]{ display: none; }

.lop-tk-prev{ left: 0; }
.lop-tk-next{ right: 0; }

.lop-tk-foot{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 20px;
}

/* La tercera columna vacía mantiene los puntos centrados en el bloque,
   aunque el aviso de la izquierda sea más ancho o más angosto. */
.lop-tk-foot::after{
    content: "";
}

.lop-tk-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lop-tk .lop-tk-dot-btn{
    padding: 0;
    border: 0;
    box-shadow: none;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(23,51,88,.4);
    cursor: pointer;
    transition: all .3s;
}

.lop-tk .lop-tk-dot-btn.is-active{
    width: 24px;
    background: var(--navy);
}

.lop-tk-disclaimer{
    /* 44px del margen que dejan las flechas + 4px del respiro del viewport:
       así el aviso arranca donde arranca la primera tarjeta. */
    margin: 0;
    padding-left: 48px;
    color: var(--slate-400);
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    text-align: left;
}

.lop-tk-empty{
    padding: 16px;
    color: var(--slate-500);
}

@media (max-width: 1023px){

    .lop-tk-slide{ flex-basis: 50%; }
}

@media (max-width: 767px){

    /* En móvil no entran las tres columnas: el aviso baja debajo. */
    .lop-tk-foot{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lop-tk-foot::after{ display: none; }

    .lop-tk-disclaimer{
        padding-left: 0;
        text-align: center;
    }

    .lop-tk-viewport{ margin: 0; }

    .lop-tk-slide{ flex-basis: 100%; }

    .lop-tk-arrow{ display: none; }

    .lop-tk-all{ display: none; }

    .lop-tk-title{ font-size: 15px; }
}
