.spinner {
  left: 50%;
  top: 50%;
  height: 60px;
  width: 60px;
  margin: 0px auto;
  -webkit-animation: rotation 0.6s infinite linear;
  -moz-animation: rotation 0.6s infinite linear;
  -o-animation: rotation 0.6s infinite linear;
  animation: rotation 0.6s infinite linear;
  border-left: 6px solid rgba(0, 174, 239, 0.15);
  border-right: 6px solid rgba(0, 174, 239, 0.15);
  border-bottom: 6px solid rgba(0, 174, 239, 0.15);
  border-top: 6px solid rgba(0, 174, 239, 0.8);
  border-radius: 100%;
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}
@-moz-keyframes rotation {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(359deg);
  }
}
@-o-keyframes rotation {
  from {
    -o-transform: rotate(0deg);
  }
  to {
    -o-transform: rotate(359deg);
  }
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* This is the style of our error messages */
.error {
  width: 100%;
  padding: 0;

  font-size: 80%;
  color: white;
  background-color: #900;
  border-radius: 0 0 5px 5px;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.error.active {
  padding: 0.3em;
}

.btn-google {
  color: #545454;
  box-shadow: 0 1px 2px 1px #ddd;
  font-family: "Roboto";
}

.ballot {
  display: none;
}
.ballot + label {
  width: 100%;
}

.ballot + label .marca {
  cursor: pointer;
  background: url("https://evoting.s3.amazonaws.com/Chileactores+2024/papeleta_mark.png") center no-repeat;
  height: 80px;
  width: 68px;
  display: inline-block;
  padding: 0 0 0 0px;
  max-width: 100%;
}

.ballot:checked + label .marca {
  background: url("https://evoting.s3.amazonaws.com/Chileactores+2024/papeleta_marked.png") center no-repeat;
  height: 80px;
  width: 68px;
  display: inline-block;
  padding: 0 0 0 0px;
  max-width: 100%;
}

.ballot + label .marca-square {
  border: 4px solid black;
  border-radius: 15px;
  height: 60px;
  width: 68px;
  display: inline-block;
  padding: 0 0 0 0px;
}

.ballot:checked + label .marca-square {
  background: url("/assets/images/papeleta_marked_cr.png") center no-repeat;
  height: 60px;
  width: 68px;
  display: inline-block;
  padding: 0 0 0 0px;
}

.image-option {
  display: table-cell;
  vertical-align: middle;
  height: 80px;
}

.lista {
  /* border-color: black; */
  border: 1px solid black;
  border-radius: 4px;
  margin: 10px;
}

.container {
  font-family: "Raleway";
}

.container-fluid {
  font-family: "Raleway";
}

.EvColor {
  background-color: #d5aa3f;
  color: #000000;
}

.EvColorGris {
  background-color: #c6ccd4;
}

.EvColorLightBlue {
  background-color: #212f3d;
}

.EvColorBlue {
  background-color: #d5aa3f;
}

.EvColorGrisLight {
  background-color: #e5ecf0;
}

.btn {
  cursor: pointer;
}

.logoEV {
  max-height: 50px;
}

.logo {
  max-height: 150px;
}

.blured {
  filter: blur(100px) !important;
}
.crossOut {
  background: url("/assets/images/sistema_seguro.jpg") repeat;
}

.mati-hide {
  display: none;
}

.hidden {
  display: none;
}

.cl-claveunica {
  display: inline-block;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  background-color: #d5aa3f;
  color: #ffffff;
}

.img-autentiz {
  height: 1.5rem;
  width: auto;
}

.goldenColor {
  background-color: #d5aa3f;
}

.colorWhite {
  background-color: white;
}

.pr-0 {
  padding-right: 0px !important;
}

.mr-0 {
  margin-right: 0px !important;
}

.bt-0 {
  border-top: 0px !important;
}

.card-header {
  position: sticky;
  top: 0;
  z-index: 10; /* Ensure it's above other content */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nominado-body {
  flex: 1 1 auto;
  padding: 1rem 1rem;
}

.nominado-header {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  padding-left: 10px;
  padding-right: 10px;
}

.premio-border {
  border: 2px solid #d5aa3f;
  border-radius: 10px;
}

.card-header {
  border-radius: 10px !important;
}

.sticky-bg {
  background: white !important; /* Use !important to override any other background properties */
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}

.card-header {
  transition: transform 0.3s ease, top 0.3s ease;
  background: white; /* Background color for all headers */
  z-index: 1; /* Ensure headers stack correctly */
}

.card-header.current {
  transform: scale(1); /* Full size for the current header */
  z-index: 2; /* Ensure the current header is above the smaller headers */
}

.card-header.past {
  z-index: 100 !important; /* Keep small headers below the current header */
  font-size: calc(0.85rem + 0.3vw);
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 5px;
  padding-right: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-header.clickable {
  cursor: pointer; /* Esto cambia el cursor a un puntero de mano */
}

/* Contenedor del ÃƒÂ­ndice */
#index {
  background-color: #f7f7f7; /* Color de fondo claro */
  padding: 10px;
  height: 100vh; /* Altura completa de la vista */
  overflow-y: auto; /* Permite desplazamiento si el contenido es largo */
  border-right: 1px solid #ddd; /* Borde derecho para separar del contenido */
  position: sticky;
  top: 0;
}

/* Estilos para los encabezados de categorÃƒÂ­as */
#index h4 {
  font-size: 0.95rem; /* TamaÃƒÂ±o de fuente mÃƒÂ¡s pequeÃƒÂ±o */
  font-weight: bold; /* Fuente en negrita para mejor lectura */
  color: black; /* Color oscuro para el texto */
  margin-top: 20px; /* Espacio en la parte superior */
  margin-bottom: 10px; /* Espacio en la parte inferior */
}

/* Estilos para los elementos de la lista */
#index ul {
  list-style-type: none; /* Remover viÃƒÂ±etas */
  margin: 0;
  padding: 0;
}

#index li {
  margin-bottom: 5px; /* Espacio entre elementos */
}

/* Estilos para los enlaces */
#index a {
  text-decoration: none; /* Eliminar subrayado */
  color: #555; /* Color oscuro para los enlaces */
  font-size: 0.75rem; /* TamaÃƒÂ±o de fuente mÃƒÂ¡s pequeÃƒÂ±o */
  display: block; /* Hacer que el enlace ocupe todo el espacio del elemento li */
  transition: background-color 0.3s, color 0.3s; /* Transiciones suaves */
}

#index a:hover {
  background-color: #e9ecef; /* Color de fondo al pasar el ratÃƒÂ³n */
  color: #000; /* Texto mÃƒÂ¡s oscuro al pasar el ratÃƒÂ³n */
}

/* Estilos para el indicador de respuesta */
.answer-info {
  font-size: 0.7rem; /* TamaÃƒÂ±o de fuente mÃƒÂ¡s pequeÃƒÂ±o para el indicador */
}

@media screen and (max-width: 375px) {
  .mobilepx0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nominado-body {
    padding: 0.5rem 0.5rem !important;
  }
}

#index .list-item .badge {
  display: block; /* AsegÃƒÂºrate de que el badge ocupa su propio espacio */
  white-space: nowrap; /* No permitir el salto de lÃƒÂ­nea */
  overflow: hidden; /* Ocultar el contenido desbordado */
  text-overflow: ellipsis; /* AÃƒÂ±adir puntos suspensivos si el texto es demasiado largo */
  max-width: 100%; /* AsegÃƒÂºrate de que no exceda el ancho del contenedor */
}

.badge1 {
  border-radius: 0px !important;
  font-size: large;
  width: 100%;
}

.badge2 {
  font-size: large;
  border: none; /* Sin bordes */
  border-radius: 5px; /* Esquinas redondeadas */
  transition: all 0.3s ease; /* Transicion suave para efectos de hover */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra para efecto 3D */
}

.badge2:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra mÃƒÂ¡s pronunciada */
  transform: translateY(-2px); /* Mover el botÃƒÂ³n hacia arriba para efecto de "elevaciÃƒÂ³n" */
}

@media (max-width: 1080px) {
  .badge2 {
    font-size: small;
  }
}

@media (max-width: 885px) {
  .badge2 {
    font-size: smaller;
  }
}

.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

@media (max-width: 575px) {
  #sidebar.collapsed .badge2 {
    font-size: 0; /* O alternativamente, puedes usar 'visibility: hidden' */
    min-height: 20px; /* Altura mÃƒÂ­nima del cuadrado */
    min-width: 100%; /* Anchura mÃƒÂ­nima del cuadrado */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #sidebar.collapsed .sidebar-title {
    text-indent: -9999px; /* Mueve el texto original fuera de la vista */
    overflow: hidden; /* Evita que el texto desplazado se muestre */
    width: 100%; /* Anchura del badge */
    height: 20px; /* Altura del badge */
    position: relative;
  }

  #sidebar.collapsed .sidebar-title::after {
    content: attr(data-number); /* Usa un atributo personalizado para el nÃƒÂºmero */
    text-indent: 0; /* Restablece text-indent para el contenido generado */
    display: block; /* Asegura que ::after sea un bloque y ocupe el espacio adecuado */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%; /* Asegura que el contenido generado ocupe todo el ancho del padre */
    height: 100%; /* Asegura que el contenido generado ocupe toda la altura del padre */
    text-align: center; /* Centra el contenido horizontalmente */
    line-height: 20px; /* Centra el contenido verticalmente */
  }

  #sidebar.collapsed .sidebar-title:nth-of-type(1)::after {
    content: "TE";
  }
  #sidebar.collapsed .sidebar-title:nth-of-type(2)::after {
    content: "SE";
  }
  #sidebar.collapsed .sidebar-title:nth-of-type(3)::after {
    content: "CI";
  }
  #sidebar.collapsed .sidebar-title:nth-of-type(4)::after {
    content: "CO";
  }
}

.icon-toggle {
  max-width: 30px;
  width: 100%;
}

.icon-toggle2 {
  max-width: 30px;
  width: 100%;
}

.candidato-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.1em;
  content: "";
  border-left: 0.3em solid;
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
}

.cerrar-voto:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra mÃƒÂ¡s pronunciada */
  transform: translateY(-2px); /* Mover el botÃƒÂ³n hacia arriba para efecto de "elevaciÃƒÂ³n" */
}

.text-end {
  text-align: right !important;
}

/* ==========================================================================
   MUNDO CUMBIA 2026 - AJUSTES SOLO PARA CELULAR (< 768px)
   Requiere el renderVoteMundoCumbia2026.jade actualizado (barra de categorias,
   clases nom-mark / nom-photo / nom-name). En computador no cambia nada.
   - 2 candidatos por fila
   - Barra fija con boton que despliega la lista de categorias
   - Enunciado de cada categoria pegado bajo la barra mientras se recorre
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Encabezado más bajo */
    .logo { max-height: 70px; }
    .goldenColor { padding-top: .75rem !important; padding-bottom: .75rem !important; }
    .goldenColor h1 { font-size: 1.25rem; }
    .goldenColor hr { margin: .5rem 0; }
    .goldenColor .lead { font-size: .9rem; }

    /* Barra fija arriba con botón que despliega la lista de categorías */
    .cat-menu {
        position: sticky; top: 0; z-index: 1020;
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5);
        background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
    .cat-menu-toggle {
        display: flex; align-items: center; gap: .5rem; width: 100%;
        padding: .7rem 1rem; border: 0; background: #fff;
        font-size: .95rem; font-weight: 700; color: #333; text-align: left;
    }
    .cat-menu-label { flex: 1 1 auto; }
    .cat-menu-progress {
        font-size: .78rem; font-weight: 700; color: #198754;
        border: 1.5px solid #198754; border-radius: 999px; padding: .1rem .55rem;
    }
    .cat-menu-caret { transition: transform .2s ease; }
    .cat-menu.is-open .cat-menu-caret { transform: rotate(180deg); }
    .cat-menu-list {
        list-style: none; margin: 0; padding: .25rem 0 .5rem;
        max-height: 60vh; overflow-y: auto; border-top: 1px solid #eee;
    }
    .cat-item {
        display: flex; align-items: center; gap: .5rem;
        padding: .6rem 1rem; text-decoration: none; color: #333; font-size: .9rem;
    }
    .cat-item::before { content: ""; flex: 0 0 1.1rem; text-align: center; font-weight: 700; color: #198754; }
    .cat-item.is-done::before { content: "\2713"; }
    .cat-item.is-active { background: #f1f1f1; font-weight: 700; }
    .cat-item-cast { border-top: 1px solid #eee; font-weight: 700; }

    /* Al saltar a una categoría, que la barra no tape el título */
    #main-content .card[id], #cast-area { scroll-margin-top: 54px; }

    /* El enunciado de cada categoría queda pegado bajo la barra
       mientras se recorre esa categoría, y se va al pasar a la siguiente */
    #main-content .card { overflow: visible !important; }
    #main-content .card-header {
        position: sticky; top: 48px !important; z-index: 5;
        background-color: #fff !important;
        box-shadow: 0 2px 4px rgba(0,0,0,.08);
    }

    /* Tarjetas de categoría más compactas */
    #main-content .card { margin: .6rem .25rem !important; }
    #main-content .card-header h4 { font-size: 1.05rem; padding: .5rem .5rem .25rem !important; }
    #main-content .card-body { padding: .5rem; }
    #main-content .card-body > .row { --bs-gutter-x: .5rem; }
    #main-content .card-body > .row > [class*="col-"] { margin-bottom: .5rem !important; }

    /* 2 nominados por fila: marca + foto arriba, nombre abajo */
    .nominado-body { padding: .5rem .25rem !important; }
    .nominado-header { padding-left: 4px; padding-right: 4px; }
    .nominado-body .row { flex-wrap: wrap; justify-content: center; margin: 0; }
    .nominado-body .nom-mark { padding: 0 .2rem !important; }
    .nominado-body .nom-photo { padding: 0 .2rem; }
    .nominado-body .nom-photo img {
        width: 56px; height: 56px; object-fit: cover; margin-bottom: 0 !important;
    }
    .nominado-body .nom-name { flex: 0 0 100%; text-align: center; min-width: 0; margin-top: .3rem; }
    .nominado-body .nom-name h5 { font-size: .88rem; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
    .nominado-body .nom-name h6 { font-size: .74rem; margin: .1rem 0 0; }
    .nominado-body .marca, .ballot + label .marca {
        width: 40px !important; height: 47px !important; background-size: contain !important;
    }
    .nominado-header label { width: 100%; margin: 0; }
}

/* ==========================================================================
   MUNDO CUMBIA 2026 - CHECK Y CONTADOR EN EL MENU DE CATEGORIAS (TODAS LAS PANTALLAS)
   - Menu lateral de escritorio y menu de tablet: check verde en las categorias
     donde ya se marco una opcion (clase .is-done que pone el JS del render).
   - Contador de avance (ej. 3/16) junto al titulo "Categorias" del menu lateral.
   ========================================================================== */
.cat-check {
  display: flex !important;
  align-items: flex-start;
  gap: .4rem;
  border-radius: 6px;
  transition: background-color .2s ease, color .2s ease;
}

/* Espacio reservado para el check, asi el texto no salta al marcarse */
.cat-check::before {
  content: "";
  flex: 0 0 1.15rem;
  height: 1.15rem;
  margin-top: .1rem;
  border-radius: 50%;
  border: 1.5px solid #c6ccd4;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  color: #ffffff;
  transition: background-color .2s ease, border-color .2s ease;
}

.cat-check.is-done {
  color: #198754 !important;
  font-weight: 600;
}

.cat-check.is-done::before {
  content: "\2713";
  background-color: #198754;
  border-color: #198754;
}

/* Contador junto al titulo del menu lateral */
.cat-progress-desk {
  font-size: .8rem;
  font-weight: 700;
  color: #198754;
  border: 1.5px solid #198754;
  border-radius: 999px;
  padding: .1rem .6rem;
  white-space: nowrap;
}
