.spinner {
  left: 50%;
  top: 50%;
  height: 60px;
  width: 60px;
  margin: 0 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", serif;
}

.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 0;
  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 0;
  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 0;
}

.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 0;
}

.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", serif;
}

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

.EvColor {
  background-color: #17224b;
  color: #fff;
}

.EvColorGris {
  background-color: #c6ccd4;
}

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

.EvColorBlue {
  background-color: #232323ff;
}

.EvVotar {
  background-color: #ffc008 !important;
  color: #000 !important;
}

.EvColorGrisLight {
  background-color: #e5ecf0;
}

.btn {
  cursor: pointer;
}

.logoEV {
  max-height: 50px;
}

.logo {
  max-height: 150px;
}

.logoPapeleta {
  max-height: 100px;
}

.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: #0f69c4;
  color: #ffffff;
}
.img-autentiz {
  height: 1.5rem;
  width: auto;
}

.goldenColor {
  background-color: #17224b;
}

.colorWhite {
  background-color: white;
}

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

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

.bt-0 {
  border-top: 0 !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;
}

.premio-border {
  border: 1px solid #232323ff;
  border-radius: 3px;
}

.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: 0 !important;
  font-size: large;
  width: 100%;
}

.badge2 {
  font-size: large;
  border: none; /* Sin bordes */
  border-radius: 5px; /* Esquinas redondeadas */
  transition: all 0.3s ease; /* Transición 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;
}

.category-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  z-index: 1000;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.nav-body {
  overflow-y: auto;
  max-height: calc(80vh - 60px);
  padding: 1rem 0;
}

.mobile-nav-toggle::before {
  content: "Categorías";
  font-size: 1.1rem;
}

.mobile-nav-toggle::after {
  content: "☰";
  font-size: 1.5rem;
}

.mobile-nav-toggle.active::after {
  content: "×";
  font-size: 1.8rem;
}

#mobileNavContent {
  position: absolute;
  width: 100%;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: calc(80vh - 60px);
  overflow-y: auto;
}

#mobileNavContent .nav {
  padding: 0.5rem 0;
}

#mobileNavContent .nav-link {
  padding: 0.75rem 1.25rem;
  color: #2c3e50;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#mobileNavContent .nav-link:hover,
#mobileNavContent .nav-link:focus,
#mobileNavContent .nav-link.active {
  background-color: rgba(11, 18, 36, 0.05);
  border-left-color: #ff2800;
  color: #ff2800;
}

/* Scrollbar styling for the mobile menu */
#mobileNavContent::-webkit-scrollbar {
  width: 4px;
}

#mobileNavContent::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#mobileNavContent::-webkit-scrollbar-thumb {
  background: #ff2800;
  border-radius: 4px;
}

/* Animación suave para el collapse */
#mobileNavContent.collapse {
  transition: all 0.3s ease-out;
}

.second-sticky {
  position: sticky;
  top: 0;
  z-index: 12;
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: #e5ecf0;
}

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

/* Ajustes para el contenido principal */
@media (max-width: 991.98px) {
  .logoEV {
    max-height: 40px;
  }
  .container-fluid {
    padding-top: 0;
  }

  .mobile-nav + .row {
    margin-top: 1rem;
  }

  .first-sticky {
    position: sticky;
    top: 0;
    z-index: 14;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .second-sticky {
    position: sticky;
    top: 60px;
    z-index: 12;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: #e5ecf0;
  }

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

/* Mobile Navigation - New Compact Version */
.mobile-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sticky header with shadow when scrolled */
.mobile-nav.scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Media queries for different screen sizes */
@media (max-width: 576px) {
  .mobile-nav {
    padding: 0.375rem 0;
  }

  .category-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.813rem;
  }

  .category-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.688rem;
  }
}

/* Menú de navegación - Base styles */
.navigation-menu {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Navigation */
@media (min-width: 992px) {
  .desktop-nav {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 1rem;
  }

  .desktop-nav::-webkit-scrollbar {
    width: 6px;
  }

  .desktop-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .desktop-nav::-webkit-scrollbar-thumb {
    background: #0b1224;
    border-radius: 3px;
  }

  .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-item {
    margin-bottom: 0.5rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(213, 170, 63, 0.1);
    color: #0b1224;
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .mobile-nav-content {
    /* Remove max-height and transition as Bootstrap handles this */
    display: block;
    padding: 0;
  }

  .mobile-nav-content.collapse:not(.show) {
    display: none;
  }

  .mobile-nav-content.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }

  .mobile-nav-content.show {
    max-height: 70vh;
    overflow-y: auto;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
  }

  .mobile-nav-item {
    margin-bottom: 0.5rem;
  }

  .mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    background-color: rgba(213, 170, 63, 0.1);
    color: #0b1224;
  }
}

.mobile-nav-toggle {
  width: 100%;
  padding: 0.5rem;
  background: none;
  border: 1px solid rgba(213, 170, 63, 0.5);
  border-radius: 0.25rem;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(213, 170, 63, 0.25);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  /* Asegúrate de que el fondo sea blanco o el color que prefieras */
}

.mobile-nav-title {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  /* Ajusta el tamaño de fuente si es necesario */
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28204, 204, 204, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.mobile-nav-link,
.category-pill,
.nav-link {
  display: block;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.category-pill.active,
.nav-link:hover,
.nav-link.active {
  background-color: rgba(213, 170, 63, 0.1);
  color: #0b1224;
}

.img-max-100 {
  max-width: 50px;
  width: 100%;
}
.bg-amarillo-10 {
  background-color: #ffc008; /* Mantenemos tu fondo original */
  color: black;
  border: none; /* Generalmente se ve mejor sin borde en este estilo */

  /* Sombra externa permanente */
  box-shadow: 0 0 10px #ffc008, 0 0 20px rgba(255, 192, 8, 0.5); /* Usamos rgba para suavizar la capa exterior */

  /* Opcional: Configuración básica */
  padding: 10px 20px;
  font-weight: bold;
  transition: transform 0.2s;
}
.vote-sticky-bottom {
  position: sticky;
  bottom: 0; /* Se pega al fondo de la pantalla */
  z-index: 1000;
  background-color: #e5ecf0 !important;
  padding: 10px 0;
  width: 100%;
  border-top: 1px solid #ddd;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.85); /* Blanco al 85% de opacidad */
  backdrop-filter: blur(12px); /* Desenfoca el contenido que pasa por detrás */
  -webkit-backdrop-filter: blur(12px); /* Soporte para Safari/iOS */
  border-radius: 20px;
}
.EvVotar {
  background-color: #ffc008 !important;
  color: #000 !important;
}
.cerrar-voto:hover {
  background-color: #ffc008 !important; /* Al tocarlo, se rellena */
  color: black !important; /* Contraste para leer el texto */
  box-shadow: 0 0 5px #ffc008, 0 0 20px #ffc008, 0 0 40px #ffc008, 0 0 80px #ffc008; /* Brillo intenso */
}
