/* RESET CORRECTO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: #e9e9e9; /* mismo fondo que body */
}

/* Imagen como fondo */
.fondo-completo {
  position: fixed;      /* fija la imagen en el fondo */
  top: 0;
  left: 0;
  width: 100vw;         /* ocupa todo el ancho de la ventana */
  height: 100vh;        /* ocupa toda la altura */
  object-fit: cover;    /* cubre todo el contenedor sin deformar */
  z-index: -1;          /* queda detrás de todo el contenido */
}

body {
  min-height: 100dvh; /*  clave para móviles */
  background: #e9e9e9;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* evita desbordamiento lateral */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  /*width: 100%;
  height: 100%;*/
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #e9e9e9;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 0;

    /* Imagen de fondo */
  background-image: url('img/logos/background5.png'); /* ruta de tu imagen */
  background-size: cover;      /* cubre todo el contenedor */
  background-position: center; /* centra la imagen */
  background-repeat: no-repeat; /* no se repite */
  min-height: 100vh;    
}

.imagen-regresar {
  width: auto;
  height: auto;
  transition: all 0.3s ease; /* transición suave para el hover */
  cursor: pointer;           /* muestra la mano al pasar el mouse */
  border-radius: 8px;        /* opcional, bordes redondeados */
  box-shadow: 0 3px 6px rgba(0,0,0,0.2); /* sombra inicial */
}



.boleta-item {
  flex: 1 1 45%;   /* ocupa ~45% del ancho disponible */
  max-width: 700px;
  margin: 10px auto;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  .boleta-item {
    flex: 1 1 95%;  /* ocupa casi todo el ancho en móviles */
    max-width: 95%;
    padding: 8px;
  }
}



/*Carrusel de imagenes de carteles*/
/* Contenedor del slider */
.miSliderBoleta {
  width: 100%;
  max-width: 700px;   /* ancho máximo */
  height: 100vh;       /* ocupa 80% de la altura de la pantalla */
  margin: auto;
} */

/* Cada slide centrado */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

/* Imagen ajustada a contenedor sin cortar ni agrandar demasiado */
.miSliderBoleta img {
  max-width: 100%;      /* nunca más ancho que el contenedor */
  max-height: 100%;     /* nunca más alto que el contenedor */
  width: auto;          /* respeta proporción */
  height: auto;         /* respeta proporción */
  object-fit: contain;  /* asegura que toda la imagen se vea */
  /* border-radius: 6px; */
  border: 3px solid #D8B083;
}


@media (max-width: 600px) {
  .miSliderBoleta {
    max-width: 100%;
    height: 60vh;
  }

  .miSliderBoleta img {
    border-width: 2px;
  }
}

/**********************************************/



.imagen-regresar:hover {
  transform: translateY(-3px);         /* sube un poquito */
  box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* sombra más grande */
}


.leyenda {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #6a4ca5;   /* mismo morado institucional */
  font-family: Montserrat, sans-serif;
}

.leyenda-cpp26 {
  color: #00a4b1;
}

.leyenda-cpp27 {
  color: #D8B083;
}



.logo-inferior {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0.7; 
}


.logo-inferior img {
  width: clamp(120px,25vw,200px);
  max-width: 140px;
  height: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  border-radius: 8px;
}

.logo-inferior img:hover{
  transform: translateY(-3px);         /* sube un poquito */
  box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* sombra más grande */

}




.planilla {
  display: none;
  margin-top: 20px;
  text-align: center;
}

.planilla-activa {
  display: block;
}

/* botones superiores */
.nav-planillas {
  margin-bottom: 20px;
}

/* =============================
        ESTILOS PARA MÓVIL
   ============================= */
/* @media (max-width: 600px){

  .miSliderBoleta{
    max-width: 95%;
  }

  .swiper-slide img{
    border-width: 2px;
  }

} */


@media (max-width: 600px) {

  /* Header: logos + texto + toggle */
  .header-content {
    flex-direction: row;      /* logos y texto en línea */
    align-items: center;
    justify-content: space-between;
    gap: 5px;
  }

  .header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .header-center{
    text-align: center;
    width: 100%;
  }

  .titulo-wrapper{
    display: inline-block;
    max-width: 90vw; /* evita que se salga en celular */
  }

  .titulo{
    font-size: clamp(24px, 4vw, 40px);
    margin: 0;
  }

  /* Logos más pequeños */
  .logo_iecm, .logo_copaco, .logo_enchula, .logo_15 {
    max-height: 40px;
    height: auto;
    width: auto;
  }

  /* Toggle */
  #menuToggle {
    display: block;
    font-size: 1.5rem;
    padding: 5px 10px;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  /* Nav botones ocultos por defecto */
  .nav-botones {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }

  .nav-botones.activo {
    display: flex;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 5px;
  }

  /* Logos inferiores (limpiar/enviar) */
  .logo-inferior img {
    max-height: 40px;
  }

  /* Firmas */
  .firma-logo img {
    max-width: 60px;
  }

  .firma-logo {
    width: 100%;
    margin: 5px 0;
  }

  /* Imagen superior de la planilla */
  .imagen-superior img {
    max-width: 100%;
    height: auto;
  }

  /* Grid de opciones: más compacto */
  .grid {
    gap: 3px;
  }

  .option {
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  /* Planilla wrapper ajusta tamaño */
  .planilla-wrapper {
    padding: 10px;
    margin: 10px auto;
  }
}


.nav-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: bottom center; /*crece hacia arriba */
}

.planilla-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  background: white;
  margin: 20px auto;
  padding: 20px;
  max-width: 100%;
}

/* Estilo base para PC y pantallas grandes */
.titulo-boleta {
  margin: 0 auto 10px auto;
  max-width: 600px;       /* ancho máximo */
  width: 90%;             /* ancho flexible según pantalla */
  padding: 15px;
  border: 2px solid #6a4ca5;
  border-radius: 10px;
  background: #f7f5fb;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  box-sizing: border-box; /* padding incluido en el ancho */
}

/* Variantes de borde */
.titulo-boleta-cpp-2026{
  border: 2px solid #00a4b1;
}

.titulo-boleta-cpp-2027{
  border: 2px solid #D8B083;
}

/* Media query para móviles */
@media (max-width: 600px) {
  .titulo-boleta {
    padding: 10px;
    font-size: 0.9rem;   /* fuente más pequeña en móvil */
    border-width: 1.5px; /* borde más delgado */
  }
}

.contenedor-boleta {
  flex: 0 0 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #6a4ca5;
  border-radius: 10px;
  background: white;
  padding: 20px;
  width: 100%;
  max-width: border-box;
}


.contenedor-boleta-cpp26 {
  border: 3px solid #00a4b1;
}

.contenedor-boleta-cpp27 {
  border: 3px solid #D8B083;
}


.boleta-guia {
  display: flex;
  flex-direction: row;       /* lado a lado */
  justify-content: center;   /* centra ambos elementos */
  align-items: flex-start;   /* alineados arriba */
  gap: 10px;                 /* separación entre boleta y guía */
  width: 100%;               /* ocupa todo el contenedor padre */
  flex-wrap: wrap;
}


.imagen-explicativa img,
.imagen-explicativa-cpp26 img {
  width: 100%;
  max-width: 700px;   /* ← límite real */
  height: auto;
  display: block;
  /* border-radius: 6px; */
}

.imagen-explicativa img {
  border: 3px solid #6a4ca5;

}

.imagen-explicativa-cpp26 img {
   border: 3px solid #00a4b1;

}

/* .imagen-explicativa-cpp27 img {
   border: 3px solid #D8B083;
   scroll-behavior: smooth;
   margin-bottom: 15px;

} */

.imagen-superior {
  background: white;
  padding: 0;
}

.imagen-superior img {
  display: block;
  width: 100%;
  height: auto;
  display: block;
}

.titulo-cpc-2026 {
  color: #333;
  /* color: #00a4b1; */
  font-weight: bold;
  margin-bottom: 30px;
}


.titulo-cpp-2026 {
  color: #333;
  /* color: #00a4b1; */
  font-weight: bold;
  margin-bottom: 30px;
}

.titulo-cpp-2027 {
  color: #333;  
  /* color: #D8B083; */
  font-weight: bold;
  margin-bottom: 30px;
}




/* Contenedor central */
.header-center .titulo-wrapper {
  text-align: center;      /* centra el contenido */
  max-width: 600px;        /* no ocupa todo el ancho */
  margin: 0 auto;          /* centrado horizontal */
  padding: 0 10px;         /* espacio lateral */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;               /* separación entre título y subtítulo */
}

/* Título */
.header-center {
  font-size: 1.8rem;
  margin: 0;
}

  .header-center {
    font-size: 1.2rem;
  }

  
.titulo {
  font-size: clamp(24px, 4vw, 40px);
  color: #333;
  font-weight: bold;
  margin: 0;
  margin-bottom: 30px;
  text-align: center;
}


/* Subtítulo */
.header-center .subtitulo {
  color: #6a4ca5;
  font-weight: bold;
  margin-bottom: 30px;     /* tu configuración base */
  font-size: 1rem;
  line-height: 1.3;
}

/* Media query tablets / pantallas medianas */
@media (max-width: 768px) {
  .header-center {
    font-size: 1.5rem;
  }


  .header-center .subtitulo {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
}

/* Media query móviles pequeños */
@media (max-width: 480px) {
  .header-center .titulo-wrapper {
    max-width: 95%;       /* respeta espacio lateral */
  }



  .header-center .subtitulo {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
}

.contenedor {
  position: relative;
  padding: 35px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 500px;
   margin: 0 auto;
   justify-items: center; 
}

.grid::before {
  content: "MUESTRA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg) scaleX(0.77);
  
  font-size: clamp(60px, 12vw, 120px); /* altura ajustable según pantalla */
  font-weight: 900;
  color: rgba(49, 49, 49, 0.2);
  
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}


.option {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.6);
  border: 3px double #7b61b3;
  border-radius: 12px;
  font-size: clamp(14px, 3vw, 22px);
  font-weight: bold;
  color: #7b61b3;
  cursor: pointer;
  position: relative;
  z-index: 1; /* importante */
}

.option-cpp26 {
  border: 3px double #00a4b1;
  color: #00a4b1;
}

.option-cpp27 {
  border: 3px double #D8B083;
  color: #D8B083;
}

.option.selected::after {
  content: "✖";         /* símbolo de la cruz */
  position: absolute;
  top: 50%;             /* centro vertical */
  left: 50%;            /* centro horizontal */
  transform: translate(-50%, -50%) rotate(-15deg); /* centrar exactamente */
  font-size: 60px;      /* tamaño grande para cubrir casi todo el botón */
  color: black;         /* color negro */
  font-family: 'Permanent Marker', 'Comic Sans MS', cursive; /* tipografía tipo plumón */
  text-shadow: 1px 1px 1px #333, -1px -1px 1px #333; /* simula trazo con sombra */
  pointer-events: none;
  opacity: 0.9;         /* opcional, un poco transparente */
}

.option:hover {
  background: #d2e8fc;  
}

.option.selected {
  background: white;
  color: #7b61b3;
}

.popup {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;      /* centra vertical */
  justify-content: flex-end;
  pointer-events: none;     /* no bloquea clics */
  background: transparent; /* sin fondo oscuro */
  z-index: 9999;
}


.popup-contenido {
  pointer-events: auto; /* permite clics dentro */
  margin-right: 20px;
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


.popup-contenido button {
  margin-top: 20px;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
}

.oculto {
  display: none;
}

.encabezado {
  text-align: center;
  margin-bottom: 25px;
}

.encabezado img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
}

.nav-planillas {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente si hay altura */
  gap: 0px;                /* botones juntos */
  padding: 20px 0;         /* espacio arriba y abajo */
  background: #f5f5f5;     /* opcional */
}

/* Botón base */
.nav-btn {
  padding: clamp(8px, 2vw, 16px) clamp(12px, 4vw, 36px);
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

.nav-btn:hover {
  transform: scaleY(1.2); /* se estira hacia arriba */
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Colores específicos por planilla */
.nav-btn:nth-child(1) {
  background: #7b61b3; /* sin cambio */
}

.nav-btn:nth-child(2){
  background: #00a4b1; /* planilla 3 y 4 */
}

.nav-btn:nth-child(3){
  background: #D8B083; /* planilla 5 y 6 */
}

/* Botón activo resaltado (opcional) */
.nav-btn.activo {
  opacity: 0.85; /* se nota que está activo */
  box-shadow: 0 5px 10px rgba(0,0,0,0.4);
}

/*Header*/
.main-header {
  width: 100%;
  background: white;
  padding: 10px 20px;       /* padding lateral razonable */
  box-shadow: 0 4px 6px #7b61b3;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}



/* Texto central */
.header-center h1 {
  text-align: center;
  margin: 0;
  font-size: 1.8rem;
  color: #6a4ca5;
  flex: 1;                     /* ocupa espacio restante */
}



.header-logo {
  width: 120px;               /* ancho máximo por defecto */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-content {
  display: flex;
  flex-wrap: wrap;            /* permite que los elementos bajen en móviles */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 15px;                  /* espacio entre elementos */
}
.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;             /* evita que se encojan demasiado */
}

      
/*Linea separadora header*/
.linea-header {
  width: 100%;
  height: 15px;
  background-color: #7b61b3;
  box-shadow: 0 1px 3px rgba(123, 97, 179, 0.4);
  /*margin-top: 10px;*/
}

/*Firmas */
 /* Contenedor de firmas */
.firmas-contenedor {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
  flex-wrap: wrap; /* permite que se muevan abajo en móvil */
}

/* Cada firma individual */
.firma {
  text-align: center;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Nombre y cargo */
.nombre-firma {
  font-weight: bold;
  font-size: clamp(8px, 1.5vw, 12px); /* ajusta tamaño según pantalla */
  margin-bottom: 2px;
  color: #7b61b3;
}

.cargo-firma {
  font-weight: normal;
  font-size: clamp(6px, 1vw, 10px);
  line-height: 1.2;
  color: #7b61b3;
}

/* Línea de firma */
.linea-firma {
  border-top: 2px solid #7b61b3;
  width: 100%;
  margin-bottom: 6px;
}

/* Logo centrado entre firmas */
.firma-logo {
  width: 15%;
  text-align: center;
}

.firma-logo img {
  max-width: 100px; /* reduce en móviles */
  height: auto;
  opacity: 0.9;
}


/*Mensaje emergente*/
.toast-contenedor {
  position: absolute;      /* relativo al planilla-wrapper */
  top: 20px;               /* ajusta altura del toast */
  right: 20px;             /* ajusta margen derecho */
  z-index: 9999;           /* sobre todo */
}

/* Botones Limpiar / Enviar Voto */
.imagen-boton {
  width: 30%;           /* porcentaje del contenedor */
  max-width: 140px;     /* no se hace gigante en escritorio */
  height: auto;         /* mantiene proporción */
  cursor: pointer;
  transition: all 0.3s ease;       /* opcional, bordes redondeados */
}

/* Efecto hover */
.imagen-boton:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* Ajustes para tablet */
@media (max-width: 1024px) {
  .imagen-boton {
    width: 40%;
    max-width: 120px;
  }
}

/* Ajustes para móviles */
@media (max-width: 600px) {
  .imagen-boton {
    width: 45%;
    max-width: 100px;
  }
}

/* Clase principal del toast */
.mi-toast {
  background: white;               /* fondo blanco */
  border: 2px solid #7b61b3;      /* borde morado */
  border-radius: 12px;             /* esquinas redondeadas */
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  font-family: 'Montserrat', sans-serif;
  padding: 18px 24px;
  max-width: 280px;
  color: #333;
}

/* Texto secundario dentro del toast */
.mi-toast .toast-text {
  font-size: 14px;
  color: #6a4ca5;       /* morado institucional */
  margin: 6px 0 0 0;
  line-height: 1.3;
}

/* Títulos en negrita */
.mi-toast .swal2-title {
  font-weight: bold;
  font-size: 16px;
  color: #7b61b3;
}

.texto-caja-confirmacion {
  text-align:center;
  font-size: 14px;
  line-height: 1.4;
}


.logo_copaco {
    max-width: 100px;
  }
.logo_iecm {
    max-width: 100px;
  }

.logo_enchula {
    max-width: 100px;
  }

.logo_15 {
    max-width: 100px;
  }

/*Media*/
/* Contenedor logos */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Estilo general logos */
.logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* ============================= */
/* 🖥 ESCRITORIO (default) */
/* Se ven los 4 logos */
/* ============================= */


/* ============================= */
/* TABLET */
/* Solo 2 logos */
/* ============================= */
@media (max-width: 1105px) {

  .logo_enchula,
  .logo_15 {
    display: none;
  }

  .logo_iecm {
    height: 55px;
  }
}



/* MÓVIL */
/* Solo 1 logo centrado */
/* ============================= */
@media (max-width: 860px) {

  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .header-left {
    justify-content: center;
    width: 100%;
  }

  .logo_iecm, 
  .logo_copaco,
  .logo_enchula,
  .logo_15 {
    display: none;
  }

  /*.logo_iecm {
    height: 70px; /* un poco más grande en móvil *//*s
  }*/
}

/* Contenedor principal */
.nav-planillas {
  position: relative;
}



/* Contenedor botones */
.nav-botones {
  display: flex;
  gap: 0;
}

/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #7b61b3;
}
/* ============================= */
/* 📱 TABLET */
/* ============================= */
@media (max-width: 1024px) {

  .menu-toggle {
    display: block;
  }

  .nav-botones {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-botones.activo {
    display: flex;
  }

  .nav-btn {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {

  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

}
@media (max-width: 600px) {

  .nav-btn {
    width: 100%;
    border-radius: 8px;
  }

}



@media (max-width: 768px) {

  .grid {
    grid-template-columns: repeat(5, 40px);
    gap: 12px;
  }

  .option {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

}

@media (max-width: 480px) {

  .grid {
    grid-template-columns: repeat(5, 48px);
    gap: 8px;
  }

  .option {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

}

/*FOOTER RESPONSIVE*/
.main-footer {
  padding: 10px 20px;
  text-align: center;
  font-size: clamp(10px, 2vw, 14px); /* se adapta al tamaño de pantalla */
  color: #7b61b3;
}

.main-footer p {
  margin: 0;
}

/* ============================= */
/* AJUSTE RESPONSIVE FIRMAS Y FOOTER */
/* ============================= */

/* Desktop y tablet: se ven normalmente */
.firmas-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 900px;
  margin: 30px auto 0 auto;
  gap: 20px;
}

.firma-logo {
  width: 15%;
  text-align: center;
}

.firma-logo img {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
}

.firma {
  text-align: center;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linea-firma {
  border-top: 2px solid #7b61b3;
  width: 100%;
  margin-bottom: 6px;
}

.linea-firma-cpp26 {
  border-top: 2px solid #00a4b1;
}


.linea-firma-cpp27 {
  border-top: 2px solid #D8B083;
}
.nombre-firma {
  font-weight: bold;
  font-size: 10px;
  margin-bottom: 2px;
  color: #7b61b3;
}

.nombre-firma-cpp26 {
  color: #00a4b1;
}

.nombre-firma-cpp27 {
  color: #D8B083;
}

.cargo-firma {
  font-weight: normal;
  font-size: 8px;
  line-height: 1.2;
  color: #7b61b3;
}

.cargo-firma-cpp26 {
  color: #00a4b1;
}

.cargo-firma-cpp27 {
  color: #D8B083;
}


/* FOOTER */
.main-footer {
  font-size: 14px;
  padding: 10px 0;
  background: #f5f5f5;
  color: #333;
}

/* ============================= */
/* MÓVIL PEQUEÑO: hasta 480px */
/* ============================= */
@media (max-width: 480px) {

  /* Oculta firmas y logo central */
  .firmas-contenedor {
    display: none;
  }

  /* Ajusta tamaño del footer para que sea más compacto */
  .main-footer {
    font-size: 12px;
    padding: 6px 0;
  }

  /* Ajuste de botones de votar/limpiar más compacto */
  .imagen-boton {
    max-width: 180px;
    padding: 8px;
  }
}

/* Movil: max-width 600px */
@media (max-width: 600px) {

  .header-content {
    flex-direction: row; /* título y toggle en la misma línea */
    justify-content: space-between;
    align-items: center;
  }

  .header-center h1 {
    font-size: 1rem;
    text-align: center; /* se alinea a la izquierda */
    flex: 1;          /* ocupa el espacio restante */
  }

  .header-right {
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: block;      /* aparece en móvil */
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7b61b3;
  }
}




/* =========================
   📱 MÓVILES (hasta 600px)
   ========================= */
@media (max-width: 600px) {
  .nav-planillas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-planillas.activo {
    display: none;
  }

  .nav-botones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  #menuToggle {
    display: block;
    cursor: pointer;
  }
}


/* =========================
   📲 TABLETAS (601px - 900px)
   ========================= */
@media (min-width: 601px) and (max-width: 1024px) {
  .nav-planillas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-planillas.activo {
    display: none;
  }

  .nav-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  #menuToggle {
    display: block;
    cursor: pointer;
  }
}


/* =========================
   💻 LAPTOPS Y ESCRITORIO (901px en adelante)
   ========================= */
@media (min-width: 901px) {
  .nav-planillas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .nav-botones {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  #menuToggle {
    display: none;
  }
}

/* Detecta dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  #menuToggle {
    display: block;
  }
}

/* Arregla el carrusel */
.swiper {
  width: 100%;
  max-width: 100%;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* MUY IMPORTANTE */
.boleta-item {
  min-width: 0;
}