:root {
  --grisclaro1: #f7f7f7;
  --grisclaro2: #ebebeb;
  --blanco: #ffffff;
  --negro: #222222;
  --grisoscuro: #454855;
  --rojo: #0077ad;
}
html,
body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  background-color: var(--grisclaro1);
  overflow-x: hidden;
  scroll-padding-top: 4px;
}
body * {
  margin: 0;
  padding: 0;
}
main {
  background-color: var(--blanco);
}
.row {
  margin: 0 !important;
}
nav {
  background-color: var(--blanco);
  padding: 0.5rem 4rem !important;
  border-bottom: 1px solid var(--grisclaro1);
  position: relative;
}
nav a.nav-link {
  text-transform: uppercase;
  color: var(--grisoscuro);
}
nav a.nav-link:hover {
  opacity: 0.75;
}
.navbar-toggler {
  border: 1px solid var(--grisoscuro);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(48, 84, 142, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.secciontitulo {
  color: var(--rojo);
}

.pasosnum {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
}

.card-pasos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.text-pasos {
  width: 90%;
  text-align: justify;
}

.pasosnum h1 {
  font-size: 5em;
  color: var(--rojo);
}
.brleft {
  display: flex;
  border-left: 7px solid var(--rojo) !important;
}
.card {
  border: none;
}

/*Pasos tabs*/
.nav-tabs {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  font-size: 2rem;
  color: white;
  margin: 30px;
  width: 4rem;
  height: 4rem;
  border-radius: 4rem;
  /* margin-bottom: -1px; */
  background: var(--rojo);
  border: 1px solid transparent;
  /* border-top-left-radius: 0.25rem; */
  /* border-top-right-radius: 0.25rem; */
}
.nav-tabs .nav-link {
  font-size: 2rem;
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 4rem;
  margin: 16px !important;
  background: #ef9516;
  border: 1px solid transparent;
}

.bg-usm {
  background-color: var(--rojo);
  --bs-bg-opacity: 1;
}
/*Acordion*/
.accordion-body,
.accordion-body > p {
  padding: 0 !important;
  font-family: "Lato", sans-serif !important;
  font-size: 18px !important;
  font-weight: 300;
}

.accordion-body {
  margin: 2% 30px !important;
}

.accordion-body > ul {
  margin: 2% 10px !important;
}

.accordion-body > p {
  margin: 0 !important;
}

.accordion-flush {
  border: 1px solid #dfdfdf;
}
.accordion-button {
  font-size: 1em;
  color: var(--rojo);
}
.accordion-button:not(.collapsed) {
  color: var(--rojo);
  background-color: #0076ad38;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.pf {
  color: var(--grisoscuro);
}
/*footer*/

.footerlinks p a {
  font-size: 1.1em;
  text-decoration: none;
  color: white;
}
.footerlinks p a:hover {
  font-size: 1.1em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.581);
}
.footerlinks i {
  font-size: 2em;
}
footer {
  background-color: var(--rojo);
  color: var(--blanco);
}
footer i {
  font-size: 3em;
}
footer p {
  font-size: 1em;
}
footer a {
  color: var(--blanco);
}
footer a:hover {
  opacity: 0.75;
  color: var(--blanco);
  text-decoration: none;
}
footer h3 {
  font-size: 1.6em;
  font-weight: 400;
}
h1 {
  font-weight: 400;
  font-size: 2.2em;
}
h2 {
  font-weight: 700;
  font-size: 1.6em;
  text-transform: uppercase;
}
p {
  font-size: 1.4em;
  line-height: 1.4em;
  font-weight: 300;
  padding-bottom: 1rem;
}
header .top {
  background: url(https://evoting.s3.amazonaws.com/USM/Banner+USM+sedes.png);
  background-repeat: no-repeat;
  background-position: center center;
  
  /* CAMBIO CLAVE: Cambiamos 'cover' por esto para que obligue al ancho a ser del 100% */
  background-size: 100% 100%; 
  
  /* Esto ayuda a que en teléfonos el alto del banner se adapte proporcionalmente */
  height: auto;
  min-height: auto; 
  padding: 6rem 3rem 6rem 3rem;
}
header .box {
  background-color: var(--grisoscuro);
  color: var(--blanco);
  padding: 2rem;
}
header .texto {
  background-color: #0076adcc;
  color: var(--blanco);
  padding: 1rem;
  margin: 0 auto;
  width: 60%;

}
.download-text {
  display: inline-block;
  text-align: center;
  word-break: break-word;
}
header .texto h2 {
  font-weight: 600;
}
section.info {
  overflow: hidden;
}
section.info .img1 {
  background: url(https://evoting.s3.amazonaws.com/USM/foto+derecha+usm.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
section.info .img2 {
  background: url(../img/foto2.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
section.info .texto .top {
  background-color: var(--rojo);
  color: var(--blanco);
}
section.info .texto .bottom {
  background-color: var(--grisoscuro);
  color: var(--blanco);
}
section.info a {
  color: var(--blanco);
}
section.info a:hover {
  text-decoration: none;
  opacity: 0.75;
}
section.procesos-eleccionarios {
  overflow: hidden;
  padding: 0 0 0 3rem;
}
section.procesos-eleccionarios h2 {
  color: var(--grisoscuro);
}
section.procesos-eleccionarios .img3 {
  background: url(../img/bandera_usm.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
section.procesos-eleccionarios ul {
  background-color: #00000000;
  border: 1px solid #d8d8d8;
  border-top: 1px solid #00000000;
  border-radius: 4px;
}
section.procesos-eleccionarios ul li {
  border-top: 1px solid #d8d8d8;
  padding: 1em 2em;
  list-style: none;
  border-bottom: 1px solid #00000000;
}
section.procesos-eleccionarios ul li a {
  color: var(--grisoscuro);
  display: block;
  font-size: 1.4em;
  line-height: 1.2em;
}
section.procesos-eleccionarios ul li a i {
  color: var(--rojo);
  margin-right: 6px;
}
section.procesos-eleccionarios ul li a:hover {
  opacity: 0.75;
  text-decoration: none;
}
section.video .video-contenedor {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}
section.video .video-contenedor iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video1 {
  background: url(../img/bg-video.jpg) no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.video1 .container {
  text-align: center;
  padding: 150px 0px;
}
.video1 .container button {
  color: #fff;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 40px;
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  font-size: 2rem;
}
.video1 .container a:hover {
  text-decoration: none;
}

.modal.show .modal-dialog {
  padding-top: 10%;
}
.modal-content {
  position: relative;
  padding-bottom: 56.25%; /* 16/9 ratio */
  padding-top: 30px; /* IE6 workaround*/
  height: 0;
  overflow: hidden;
}
.modal-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

section.faq {
  padding: 0 3rem 0 3rem;
}
section.faq .contenido label {
  text-transform: uppercase;
  font-size: 1.8em;
  font-weight: 700;
  display: block;
  cursor: pointer;
  color: var(--grisoscuro);
  background: #eee;
  padding: 0.2rem 2rem;
  border: 1px solid var(--grisclaro2);
  position: relative;
}
section.faq .contenido label i {
  color: var(--rojo);
  position: absolute;
  right: 20px;
  top: 12px;
}
section.faq .contenido {
  width: 100%;
  margin: 10px auto;
  border: 1px solid var(--grisclaro2);
}
section.faq .contenido label:hover {
  background: #ddd;
}
section.faq .contenido input {
  display: none;
}
/* contenido de tabs */
section.faq .contenido article {
  overflow: hidden;
  height: 0;
  transition: 0.3s;
  background-color: #f7f7f7;
  padding: 0rem 4rem;
}
section.faq .contenido article p,
section.faq .contenido article li {
  font-size: 1.4em;
  color: var(--grisoscuro);
  font-weight: 300;
  padding-bottom: 1rem;
}
section.faq .contenido .anteriores article li {
  font-size: 1em;
  color: var(--grisoscuro);
  font-weight: 300;
  padding-bottom: 1rem;
}
section.faq .contenido article li > li {
  font-size: 1.4em;
  color: var(--grisoscuro);
  font-weight: 300;
  padding-bottom: 1rem;
}
.lista1 {
  list-style-type: disc !important;
  font-size: 1em !important;
  color: var(--grisoscuro);
  font-weight: 300;
  padding-left: 20px;
}

section.faq .contenido article p a,
section.faq .contenido article li a {
  color: var(--rojo);
}
section.faq .contenido input:checked ~ article {
  height: auto;
  padding: 2rem 4rem;
}

section.faq .contenido article .contenido-tab label {
  text-transform: initial;
  font-size: 1.6em;
  font-weight: 400;
  display: block;
  cursor: pointer;
  color: var(--grisoscuro);
  background: var(--white);
  padding: 0.2rem 2rem;
  border: 1px solid var(--grisoscuro);
}
section.faq .contenido article .contenido-tab label i {
  color: var(--rojo);
  position: absolute;
  right: 20px;
  top: 12px;
}
section.faq .contenido article .contenido-tab label:hover {
  background: var(--grisclaro2);
}
section.faq .contenido article .contenido-tab input {
  display: none;
}
section.faq .contenido article .contenido-tab article {
  overflow: hidden;
  height: 0;
  transition: 0.3s;
  background-color: #f7f7f7;
  padding: 0rem 4rem;
}
section.faq .contenido article .contenido-tab article p,
section.faq .contenido article .contenido-tab article li {
  font-size: 1.4em;
  color: var(--grisoscuro);
  font-weight: 300;
  padding-bottom: 1rem;
}
section.faq .contenido article .contenido-tab article p a,
section.faq .contenido article .contenido-tab article li a {
  color: var(--rojo);
}
section.faq .contenido article .contenido-tab input:checked ~ article {
  height: auto;
  border: 1px solid var(--grisoscuro);
  padding: 2rem 4rem;
}

.logobrand {
  width: 250px;
}

.btn {
  width: 100%;
  margin: 20px 0 !important;
  border: none !important;
  background-color: #f09517
}

.btn:focus {
  box-shadow: none !important;
}
.btn:hover {
  background-color: #0077ad !important;
}
.btndemo:hover {
  opacity: 100%;
  transition: 0.25s ease-in-out;
  transform: scale(1.06);

}

.btndemo {
  background-color: #f09517;
  text-align: center;
  transition: 0.4s;
  font-size: 1.5rem;
  margin: 10px auto;
  width: 100%;
  display: flex; /* asegura alineación vertical del texto */
  align-items: center;
  justify-content: center;
  min-height: 100px; /* misma dimensión visual para textos largos/cortos */
  border-radius: 15px; /* bordes redondeados */
}
.btndemo a {
  /*background-color: #fea101;*/
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* Asegúrate de que el enlace ocupe todo el botón */
  text-decoration: none; /* Quita el subrayado del enlace */
  width: 100%;
  text-align: center;
}
.btndemo:hover {
  background-color: #0077ad;
}

/* Evitar saltos de línea en el botón del instructivo */
#instructivo a {
  white-space: nowrap;
}

/* Variante compacta para recuadros informativos */
.btndemo-small {
  min-height: 120px;
  padding: 1rem;
  border-radius: 15px; /* bordes redondeados */
}

/* Small devices */
@media (min-width: 0px) and (max-width: 575px) {
  .card-body > h5 {
    font-size: 18px;
  }
  .pasosnum {
    font-size: 10px !important;
    padding: 10px;
    margin-top: 10px;
  }
  .text-pasos > h5,
  .text-pasos > a {
    font-size: 18px !important;
  }
  .accordion-button {
    font-size: 18px !important;
  }
  .accordion-body,
  .accordion-body > p {
    font-size: 16px !important;
  }
  .btn {
    font-size: 20px !important;
  }
  .btn-download {
    font-size: 20px !important;
  }
  nav {
    padding: 0rem 1rem !important;
  }
  nav img {
    width: 100px;
  }
  footer {
    padding: 1rem 1rem !important;
  }
  footer h3 {
    font-size: 1.2em;
    margin: 0 0 2rem 0;
  }
  footer i {
    font-size: 2em;
  }
  footer p {
    font-size: 0.8em;
  }
  header .top {
    padding: 3rem 3rem;
  }
  header .texto {
    width: 88%;
  }
  section.info .img1,
  section.info .img2 {
    padding: 6rem 0;
  }
  section.procesos-eleccionarios,
  section.video,
  section.faq {
    padding: 0 1rem;
  }
  section.faq #activo-3 h2 .btn-link {
    text-transform: initial;
    font-weight: 400;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    line-height: 1.2em;
  }
  h1 {
    font-size: 1.6em;
  }
  header .texto h2 {
    font-size: 1.4em;
  }
  section.faq .contenido label {
    font-size: 1.4em;
  }
  section.faq .contenido label i {
    right: 10px;
    top: 8px;
  }
  section.faq .contenido input:checked ~ article {
    padding: 1rem 3rem;
  }
  section.faq .contenido article .contenido-tab input:checked ~ article {
    padding: 1rem 2rem;
  }
  section.faq .contenido article .contenido-tab article {
    padding: 0rem 2rem;
  }
  section.faq .contenido article .contenido-tab label {
    padding: 0.2rem 3rem 0.2rem 1rem;
    font-size: 1.2em;
  }
  section.faq .contenido article .contenido-tab article p,
  section.faq .contenido article .contenido-tab article li {
    font-size: 1.2em;
  }
  section.faq .contenido article {
    padding: 0rem 3rem;
  }
  .logobrand {
    width: 150px;
  }
  /* Ajuste responsivo para botones: altura automática en pantallas pequeñas */
  .btndemo {
    min-height: auto;
    padding: 1rem;
    text-align: center;
  }
  .btndemo-small {
    min-height: auto;
    padding: 0.8rem;
  }

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 575px) and (max-width: 767px) {
  footer h3 {
    margin-bottom: 2rem;
  }
  header .top {
    padding: 2rem 2rem;
  }
  header .texto {
    width: 88%;
  }
  section.info .img1,
  section.info .img2 {
    padding: 10rem 0;
  }
  section.procesos-eleccionarios,
  section.video,
  section.faq {
    padding: 0 1rem;
  }
  section.faq #activo-3 h2 .btn-link {
    text-transform: initial;
    font-weight: 400;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    line-height: 1.2em;
  }
}

/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) and (max-width: 991px) {
  header .top {
    padding: 4rem 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  header .texto {
    width: 48%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
  header .texto {
    width: 52%;
  }
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px !important;
  }
}
/* === ESTILOS PARA EL BOTÓN INFORMATIVO === */
.descarga-informativo-section {
  background-color: #ffffff; 
}

.btn-download-custom {
  background-color: #f1971f !important; /* Tu color naranja exacto */
  color: #ffffff !important;
  padding: 1.2rem 2rem; /* Lo hacemos un poquito más alto */
  border-radius: 12px; /* Esquinas sutilmente redondeadas */
  font-weight: 600; /* Letra más gruesa y legible */
  font-size: 1.25rem; /* Letra más grande (tamaño tipo banner) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; 
  text-decoration: none !important;
  width: 100%; /* Ahora ocupará todo el ancho de su columna de Bootstrap */
  max-width: 100%; /* ¡Adiós al límite de tamaño! */
  box-shadow: 0 4px 10px rgba(241, 151, 31, 0.2); /* Sombra suave con tono naranja */
  transition: all 0.2s ease;
}

.btn-download-custom:hover {
  background-color: #d68113 !important; /* Naranja un poco más oscuro al pasar el mouse */
  color: #ffffff !important;
}

@media (max-width: 768px) {
  header .top {
    background-size: contain; /* Muestra la foto completa */
    background-position: top center;
    padding: 2rem 1rem 2rem 1rem; /* Achicamos el espacio interno para que el texto y botones no floten afuera */
  }
}

@media (max-width: 768px) {
  header .top {
    background-image: none !important; /* Quitamos la foto en celulares para que no se corte feo */
    background-color: #0077ad !important; /* Ponemos el azul de la universidad como fondo */
    padding: 3rem 1.5rem 3rem 1.5rem !important; /* Reducimos espacios para que no quede tan gigante */
  }
  
  /* Hacemos que el texto del título se adapte un poco mejor en pantallas chicas */
  header .top h1, header .top h2 {
    font-size: 1.4rem !important;
  }
}