@font-face {
  font-family: "Rawson";
  src: url("../fonts/Rawson-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Rawson";
  src: url("../fonts/RawsonPro-BoldIt.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Rawson";
  src: url("../fonts/RawsonPro-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

:root {
  --color-red-hover: #b41e1a;
  --color-red: #216dab;
  --color-azul: #E31837;
  --color-line-separation: #4a8dc8;
  --color-border: #e7e6ea;
  --color-text: #051226;
  --color-text-white: white;
}

[id] {
  scroll-margin-top: 80px;
}

body,
html {
  font-family: "Rawson", sans-serif;
  color: var(--color-text);
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

a,
a:hover {
  font-family: "Rawson", sans-serif;
  text-align: center !important;
  text-transform: uppercase;
  text-decoration: none;
}

.lowercase {
  text-transform: lowercase;
}

ul {
  list-style: none;
}

h3 {
  font-family: "Rawson", sans-serif;
  color: var(--color-text-white);
  font-weight: 700;
}

/* Boton asistencia - Optimizado para móvil */
.img-btn-asistencia {
  height: 40px;
  max-width: 100%;
}

.btn-asistencia {
  height: 60px;
  width: 60px;
  background-color: white;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 999;
  bottom: 20px;
  right: 20px;
  border: 3px solid var(--color-azul);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-close {
  filter: invert(100%);
}

.card-text {
  list-style: circle;
}

.modal-header {
  background-color: var(--color-azul);
  color: var(--color-text-white);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-item {
  display: flex;
  padding: 10px;
  align-items: center;
}

.modal-item > p {
  align-content: center;
  margin-bottom: 0;
}

.modal-item > img {
  height: 30px;
  margin-right: 10px;
}

.btn-modal-close {
  background-color: var(--color-azul);
  border-color: var(--color-line-separation);
  color: var(--color-text-white);
}

/* NAVBAR - Optimizado para todos los dispositivos */
.navbar-container {
  position: fixed;
  background-color: var(--color-azul);
  top: 0;
  z-index: 99;
  width: 100%;
}

.navbar {
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* LOGO-CUT - Responsivo */
.logo-1 {
  margin: 5px 10px;
  max-height: 50px;
  width: auto;
}

.navbar-collapse {
  display: flex;
  justify-content: flex-end;
}

.navbar-nav {
  align-items: center;
  margin-left: auto;
  gap: 1rem;
}

.nav-link {
  color: var(--color-text-white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  font-family: "Rawson", sans-serif;
}

.nav-link:hover {
  opacity: 0.8;
}

.navbar-votar {
  font-weight: 700;
}

.navbar-toggler {
  margin-right: 15px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ESTADOS VOTACION - Mejorado para móvil */
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#countdown {
  font-size: 18px;
  color: var(--color-azul);
  background-color: var(--color-border);
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  width: 140px;
}

.container-votacion-en-curso {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Banner - Completamente responsivo */
.banner-container {
  width: 100%;
  margin-top: 70px;
  background: url('/assets/img/banner-background.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.banner-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.text-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

.title-junta {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--color-azul);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-family: "Rawson", sans-serif;
}

h2.description-junta {
  font-size: 2rem;
  color: var(--color-azul);
  text-transform: uppercase;
  font-family: "Rawson", sans-serif;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.tiempo-restante {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 700;
  font-style: italic;
  text-align: center;
  font-family: "Rawson", sans-serif;
}

/* Timer responsivo */
.timer-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.timer-box {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  flex: 1;
  min-width: 75px;
  max-width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-azul);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  height: auto;
}

.time-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-azul);
  font-family: "Rawson", sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.time-label {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: normal;
  margin-top: 0.5rem;
  font-family: "Rawson", sans-serif;
  white-space: nowrap;
  padding: 0 5px;
}

/* Botones responsivos */
.button-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
}

/* No definimos estilos base para .btn-votar porque usa estilos inline */
/* El botón ahora tiene estilos inline para mantener la apariencia original exacta */

/* Como votar - Sección completamente responsiva */
.como-votar-title,
.documentation-title,
.mesa-ayuda-title,
.preguntas-title {
  background-color: var(--color-azul);
  padding: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.como-votar-title > h3,
.documentation-title > h3,
.mesa-ayuda-title > h3,
.preguntas-title > h3 {
  margin: 0;
  font-weight: 100;
  font-family: "Rawson", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.como-votar-container {
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.container-video {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Card títulos y texto */
.card-title {
  color: var(--color-azul);
  font-weight: 800;
  font-family: "Rawson", sans-serif;
}

.card-text {
  font-family: "Rawson", sans-serif;
}

/* Sección de documentación responsiva */
.documentation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0 auto;
}

.documentation-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: center;
}

.documentation-item > div > h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: "Rawson", sans-serif;
}

.btn-revisar {
  background-color: var(--color-azul);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 5px;
}

.btn-revisar > a {
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Rawson", sans-serif;
}

.btn-revisar:hover {
  background-color: var(--color-red-hover);
}

.icon-documentation {
  height: 20px;
}

/* Mesa de ayuda - Optimizada para todos los dispositivos */
.box-container {
  margin: 0 auto;
  width: 100%;
}

.box-custom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.red-box {
  background-color: white;
  border-radius: 10px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text);
  width: 220px;
  min-height: 150px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.red-box:hover {
  transform: translateY(-5px);
}

.red-box .card-body {
  font-family: "Rawson", sans-serif;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
  padding: 1rem 0 0 0;
  margin: 0;
  font-size: 1.1rem;
}

.icon-container {
  color: var(--color-azul);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.icon-mesa-ayuda {
  width: 35px;
  height: 35px;
  filter: invert(13%) sepia(90%) saturate(5268%) hue-rotate(345deg) brightness(99%) contrast(91%);
}

/* Accordeon responsivo */
.accordion {
  margin-bottom: 2rem;
  border: none;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
}

.accordion-button {
  color: var(--color-text);
  font-family: "Rawson", sans-serif;
  background-color: white;
}

.accordion-button:not(.collapsed) {
  color: var(--color-azul);
  background-color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E31837'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0.5rem;
  font-family: "Rawson", sans-serif;
}

/* Footer responsivo */
.footer-container {
  background-color: var(--color-azul);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.logo-footer {
  max-width: 200px;
  height: auto;
}

.footer-2 > p {
  font-size: 0.7rem;
  color: white;
  margin-top: 1rem;
  font-family: "Rawson", sans-serif;
}

/* Progress bar - color original */
.progress-bar {
  background-color: var(--color-azul);
}

/* Media queries optimizadas */
/* Móviles pequeños */
@media (max-width: 375px) {
  .timer-box {
    min-width: 50px;
    padding: 0.5rem;
    margin: 2px;
  }
  
  .time-value {
    font-size: 1.5rem;
  }
  
  .time-label {
    font-size: 0.7rem;
  }
  
  .navbar-nav {
    align-items: flex-start;
    padding-left: 20px;
  }
  
  .banner-container {
    margin-top: 0px;
  }
  
  .title-junta {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .description-junta {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Móviles */
@media (max-width: 576px) {
  .navbar-nav {
    align-items: flex-start;
    padding: 1rem 0 1rem 1.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 0 !important;
  }
  
  .box-custom {
    flex-direction: column;
    align-items: center;
  }
  
  .red-box {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem 0;
  }
  
  .como-votar-container {
    padding: 0;
  }
  
  .navbar-collapse {
    background-color: var(--color-azul);
  }
  
  .banner-container {
    margin-top: 60px;
  }
  
  .title-junta {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h2.description-junta {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .tiempo-restante {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .timer-wrapper {
    flex-wrap: nowrap;
    gap: 0.3rem;
  }
  
  .timer-box {
    min-width: 65px;
    padding: 0.8rem 0.3rem;
    flex: 1;
  }
  
  .time-value {
    font-size: 2.2rem;
    overflow: visible;
  }
  
  .time-label {
    font-size: 0.9rem;
    overflow: visible;
    padding: 0 2px;
    margin-top: 0.3rem;
  }
  
  .btn-votar, .btn-conocer {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content > div {
    margin-bottom: 1rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
  .title-junta {
    font-size: 2rem;
  }
  
  h2.description-junta {
    font-size: 1.2rem;
  }
  
  .tiempo-restante {
    font-size: 1rem;
  }
  
  .timer-box {
    min-width: 55px;
    padding: 0.5rem 0.2rem;
    flex: 1;
  }
  
  .time-value {
    font-size: 1.8rem;
  }
  
  .time-label {
    font-size: 0.75rem;
    padding: 0 1px;
  }
}

/* Tablets */
@media (min-width: 577px) and (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--color-azul);
    padding: 1rem;
  }
  
  .navbar-nav {
    align-items: flex-start;
    padding-left: 1rem;
  }
  
  .box-custom {
    justify-content: center;
  }
  
  .red-box {
    flex: 0 0 auto;
    width: 45%;
    margin: 0.5rem;
  }
  
  .banner-container {
    margin-top: 65px;
  }
  
  .title-junta {
    font-size: 3.5rem;
  }
  
  .description-junta {
    font-size: 1.5rem;
  }
}

/* Correcciones específicas para pantallas medianas */
@media (min-width: 768px) and (max-width: 991px) {
  .container-video {
    width: 90%;
    margin: 0 auto 2rem;
  }
  
  .documentation-item {
    width: 48%;
  }
  
  .red-box {
    width: 180px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .banner-container {
    padding: 2rem;
    margin-top: 70px;
  }
  
  .btn-votar, .btn-conocer {
    min-width: 250px;
  }
  
  .text-banner {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .documentation-list {
    justify-content: space-between;
    max-width: 1200px;
  }
  
  .documentation-item {
    width: 30%;
  }
  
  .box-custom {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .title-junta {
    font-size: 4.5rem;
    line-height: 1.2;
  }
  
  .description-junta {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

/* Fix para Firefox */
@-moz-document url-prefix() {
  .banner-container {
    height: auto;
    min-height: 100vh;
  }
}

/* Fix para Safari */
@supports (-webkit-touch-callout: none) {
  .banner-container {
    height: auto;
    min-height: 100vh;
  }
  
  .timer-wrapper {
    display: flex;
    flex-wrap: wrap;
  }
}
