.container-2026 {
    max-width: 1147px;
    margin:35px auto;
    margin: 0 auto 25px auto;
    display: inline-block;
    width: 100%;
    background: linear-gradient(to bottom, #00011e 0%, #092452 100%);
    max-height: 340px!important
}

.box-2026 {
    width: 100%;
    min-height: 210px;
    display: inline-block;
    margin: auto;
}
.box-2026-2 {
    width: 100%;
    display: inline-block;
    margin: auto;
    text-align: center
}

.box-live {
    width: 100%;
   height: 30px;
    background-color: #1b499f;
    padding: 0;
    text-align: center;
}
p{
    color: #ffffff!important
}
.box-live p{
     text-align: center;
    font-family: "Roboto", sans-serif;
    color: #fff;
    font-size: 0.75em;
    margin: 0 auto;
    padding: 6px

}
.box-live img{
    display: inline-block
}
.box-2026 li {
    width: 160px!important;
    height: 250px;
    vertical-align: top;
    border-left: 1px solid rgba(242, 242, 242, 0.50);
    display: inline-block;
    list-style-image: none;
    text-align: center;
    padding-right: 3px;
    margin-top: 8px
}

li img {
    margin-bottom: 0
}

button {
    font-family: "Roboto", sans-serif;
    color: #231f20;
    height: 40px;
    font-size: 0.75em;
    text-transform: uppercase;
    max-width: 180px;
    width: 200px;
    margin: 12px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-weight:900;
    padding: 12px 6px;
    border: none!important
}
.splide{
    height: 260px!important;
    position: relative
}
.splide li{
    width: 19%!important;
    height: 200px!important;
    border-right: 1px solid rgba(242, 242, 242, 0.50)
}
.splide li#rn {
    border: none!important
}
.splide__list{
    margin: 0 auto!important
}
.splide__track{
    width: 92%!important;
    padding: 2px!important;
    margin: auto!important;
    overflow: hidden;
    max-height: 220px
}
.splide__pagination {
    display: none
}
.botones{
    display: inline-block
}
@media (max-width: 1300px) {
.splide__arrows--ltr{
    display: none!important}
}

@media (max-width: 800px) {
.splide__arrows--ltr{
    display: inline-block!important}
}
button{
    font-size: 0.5em!important;
    padding:5px!important;
    border-radius: 6px!important;
    height: 25px!important;
    width: 20px!important;
    margin:6px 
}


.splide__arrow:disabled{
    opacity: 0!important
}
.splide__arrow--prev {
left: -0.5em
}
.splide__arrow--next {
right: -0.5em
}


  /* ===============================
   Fotos de candidatos 2026: fix
   =============================== */

/* Desktop / tablet: barra + slider */
.container-2026 .box-2026 li img,
.container-2026 .box-2026-2 .splide__slide img {
  width: 120px;
  height: auto !important;       /* <– ya NO altura fija */
  max-width: 100%;
  object-fit: contain !important; /* <– no recorta, la ajusta completa */
  object-position: center top;
  border-radius: 0 !important;    /* <– quitamos círculo por CSS */
  display: block;
  margin: 0 auto;
}

/* Solo móviles */
@media (max-width: 1145px) {
  .container-2026 .box-2026 li img,
  .container-2026 .box-2026-2 .splide__slide img {
    width: 115px;                /* un poco más grande que antes */
    height: auto !important;
  }
}

/* Estilos adaptados para p en lugar de h2–h5 */

p.nombre {
    font-family: "Roboto", sans-serif;
    color: #fff!important;
    font-size: 0.9em!important;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0;
  }

  p.partido {
    font-family: "Roboto", sans-serif;
    color: #fff;
    font-size: 0.77em!important;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1px;
    margin-top: 0;
  }
  .splide__arrow--prev:disabled {
  display: none; /* Oculta la flecha izquierda cuando no hay slide anterior */
}
  p.porcentaje {
    font-family: "Roboto", sans-serif;
    color: #fff;
    color: #14928a;
    font-size: 2em!important;
    font-weight: 800;
    margin: 0 auto;
    bottom: 0!important;
    display: inline-block 
  }
  
  p.votos {
    font-family: "Roboto", sans-serif;
    color: #fff;
    font-size: 0.7em;
    font-weight: 400;
    margin-top: 0px;
    margin-bottom: 2px;
    text-transform: uppercase;
  }
  
  /* Móvil ajustes */
  @media (max-width: 1145px) {
    p.nombre { font-size: 0.7rem!important; }
    p.partido { font-size: 0.7rem!important; }
    p.porcentaje { font-size: 1.3rem!important; }
    p.votos { font-size: 0.75rem!important; }
    .box-live{height: 55px!important}  
  }
    @media (max-width: 1145px) {
        .splide li {width: 20%!important}
}
    @media (max-width: 575px) {
        .splide li {width: 50%!important}
}
.splide__arrow:disabled {
  display: none!important;
}