@import url('../styles/components/buttons.css');
@import url('../styles/components/header.css');

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #ffffff;
}
@font-face {
  font-family: 'MelonCamp';
  src: url('../assets/fonts/MelonCamp.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ===== Barra superior ===== */
.barra-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 24px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-izquierda,
.menu-derecha {
  display: flex;
  gap: 12px;
}

.barra-superior a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.barra-superior a:hover {
  background-color: #e0e0e0;
}

.contenedor-boleta {
  display: flex;
  height: auto;
  flex-direction: row;
  overflow: hidden;
  min-height: 100vh;
}

.zona-boleta {
  flex: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
}

.boleta-controles-superiores {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  flex-wrap: wrap;
}
.boleta-controles-superiores > * {
  max-width: 100%;
  font-size: 1rem;
}
@media (max-width: 767.98px) {
  .boleta-controles-superiores {
    gap: 8px; /* Reducir el espacio entre los elementos */
    padding: 8px; /* Reducir el padding */
  }

  .boleta-controles-superiores > * {
    font-size: 0.8rem; /* Reducir el tamaño de texto */
  }
  
  .barra-superior {
    font-size: 10px; /* Reducir el tamaño de texto en la barra superior */
  }

  .panel-control {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1040;
    background-color: #fff;
    padding: 1rem;
    overflow-y: auto;
    border-left: none;
  }

  .panel-control.show {
    display: block;
  }
  
  /* Ajustes en el visor de la boleta para responsividad */
  .visor-boleta img {
    max-width: 100%;
    max-height: auto; /* Permite que la imagen se ajuste correctamente sin perder la proporción */
  }

  .visor-boleta canvas {
    max-width: 100%;
    height: auto;
  }
}


.visor-boleta {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  background-color: #272727;
}

.visor-boleta img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: grab;
}
.visor-boleta canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.panel-control {
  flex: 0.8;
  padding: 16px;
  font-size: 0.85rem;
  background-color: #fff;
  overflow-y: auto;
  font-size: 0.95rem;
  border-left: 2px solid #eee;
}

.grupo-botones button,
.boton-con-resaltado button,
.panel-control button {
  width: 100%;
  margin-bottom: 10px;
}


.finalizar-btn {
  margin-top: 2rem;
  font-size: 1rem;
  display: block;
}
i.bi {
    color: #6C3d94;
    transition: color 0.3s ease;
  }

.btn-light:hover,
.btn-light:hover i {
  background-color:  #6C3d94;
  color: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:hover i {
  .barra-superior a:hover {
    background-color:  #6C3d94;
    color: #fff;
   background-origin: padding-box;
  }
}

.btn-secondary,
.btn-secondary:hover i {
  background-color: #ffffff;
  color: #141414;
}
.btn-secondary:hover,
.btn-secondary:hover i {
  background-color: #6C3d94 ;
  color: #fff;
}

.input-mujer,
.input-hombre {

    font-family: 'MelonCamp', sans-serif;
  position: absolute;
  width: 6%;
  height: 4.9%;
  font-size: 1.2em;
  padding: 2px;
  border: 0.5px solid #121111;
  border-radius: 4px;
  background-color:rgba(252,209,202, 0.7);
  pointer-events: auto;
    text-align: center;
}



.input-mujer.highlighted,
.input-hombre.highlighted {
  border: 2px solid #ffcc00;
  background-color: #fffacd;
}
#formulario-acta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}
#boleta {
  transform-origin: top left;
  transition: transform 0.3s ease;
  position: relative;
  display: inline-block;
}

.hover-lift:hover {
  transform: translateY(-5px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Asegura que los modales no excedan el ancho del viewport */
.modal-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Asegura buen espaciado interno */
.modal-body,
.modal-header,
.modal-footer {
  padding: 1rem;
}

/* Centrado del botón close en esquinas */
.modal .btn-close {
  z-index: 2;
}

/* Estilo para íconos grandes */
.modal-body i {
  font-size: 2.5rem;
}
/* Estilo solo para esta sección informativa */
.info-extra {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  color: #333;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

/* Link con un poco más de énfasis */
.link-consulta {
  color: #6C3d94;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-consulta:hover {
  color: #ea0d94;
  text-decoration: underline;
}

.icono-animado {
  display: inline-block;
  transform: rotate(270deg);
  animation: girar-icono 1.5s infinite alternate ease-in-out;
  margin-left: 5px;
}

@keyframes girar-icono {
  0% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(290deg);
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    padding: 0.5rem;
  }

  .modal-body i {
    font-size: 2rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-body p {
    font-size: 1rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  .panel-control {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1040;
    background-color: #fff;
    padding: 1rem;
    overflow-y: auto;
    border-left: none;
  }

  .panel-control.show {
    display: block;
  }
}
@media (max-width: 768px) {
  #formulario-acta input[type="text"] {
    font-size: 15px;
    padding: 2px;
  }
}
@media (max-width: 480px) {
  #formulario-acta input[type="text"] {
    font-size: 7px;
  }
}
.icono-animado {
  display: inline-block;
  transform: rotate(270deg);
  animation: pulsarManita 1.2s infinite ease-in-out;
  margin-left: 5px;
  color: #dc3545;
}

@keyframes pulsarManita {
  0% {
    transform: rotate(270deg) scale(1);
  }
  30% {
    transform: rotate(270deg) scale(0.9) translateY(2px);
  }
  60% {
    transform: rotate(270deg) scale(1.05) translateY(-1px);
  }
  100% {
    transform: rotate(270deg) scale(1);
  }
}