/* Importación de las fuentes Lora y Montserrat */
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Montserrat:wght@500&display=swap");
 
/* Contenedor del botón */
.toggle-container {
  display: flex;
  align-items: center;
  width: 100px;
  height: 40px;
  background-color: #051C30;
  border-radius: 20px;
  font-family: Arial, sans-serif;
}

/* Estilos de las banderas como imágenes */
.toggle-flag {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-flag img {
  width: 80%;
  height: auto;
  border-radius: 10px;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'Montserrat', sans-serif!important ;/* Montserrat para el texto general */
  color: #848D96;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif!important; /* Lora para los títulos */
  font-weight: bold;
}

p {
  font-family: 'Montserrat', sans-serif!important; /* Montserrat para los párrafos */
  font-weight: 500;
}

/* Resto del archivo CSS */
.home aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  z-index: 1001;
  height: 100vh;
  background-image: url(images/home.jpg);
  background-position: 40% center;
  background-size: cover;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  background-color: #051C30;
}

.home main {
  position: relative;
  display: block;
  width: 40%;
  max-height: 100vh;
  padding-left: 60%;
  background-color: #051C30;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  min-height: 100vh;
}

.home .close {
  display: none;
}

.home header {
  margin-bottom: 2rem;
  margin-top: 13rem;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  border-bottom: unset;
  width: unset;
}

.home ul.menu li {
  color: #fff;
  display: table;
  margin-right: 0;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  font-weight: bold;
}

aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  z-index: 1001;
  height: 100vh;
  background-image: url(images/home-blue.jpg);
  background-position: 40% center;
  background-size: cover;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  background-color: #0774d1;
}

main {
  position: relative;
  display: block;
  width: calc(100% - 300px);
  max-height: 100vh;
  padding-left: 300px;
  background-color: #fff;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  min-height: 100vh;
}

.container {
  padding: 3rem;
}

.button {
    background-color: white;
    border: 2px solid #555555;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

@media only screen and (max-width: 767px) {
  .home aside {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 30vh;
    background-image: url(images/home.jpg);
    background-position: 40% top;
    background-size: cover;
    transition: all 1.5s cubic-bezier(.19,1,.22,1);
    background-color: #051C30;
  }

  .home main {
    position: relative;
    display: block;
    width: 100%;
    max-height: 70vh;
    padding-left: unset;
    min-height: 70vh;
  }

  .home main header{
    margin-top: 0
  }

  aside {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 15vh;
    background-image: url(images/home-blue.jpg);
    background-position: 40% top;
    background-size: cover;
    transition: all 1.5s cubic-bezier(.19,1,.22,1);
    background-color: #0774d1;
  }

  main {
    position: relative;
    display: block;
    width: 100%;
    max-height: 85vh;
    padding-left: unset;
    min-height: 85vh;
  }

  main .content,
  main #view {
    width: 100%!important
  }

  main header{
    margin-top: 0;
    width: 100%;
  }

  .container {
    padding: 1.3rem;
  }

  .close {
    display: none;
  }
}

.home h1 {
  max-width: 50%;
}

.home h1,
.home h3,
.papers_btn h2 {
  color: #fff;
}

#papers .papers_btn {
  background-color: #051C30;
  text-align: center;
  padding:10px 5px;
}

#papers .papers_btn h4 {
  font-family: 'Lora', serif!important;
  color: #fff !important;
  font-weight: bold;
  margin-top:10px;
  margin-bottom:7px;
}

#papers .papers_btn h2 {
  font-family: 'Lora', serif !important;
  font-weight: bold;
}

h1, h3 {
  color: #051C30;
  transition: all 1.5s;
}

h1 {
  font-size: 2.2rem;
  line-height: 2.4rem;
}

h2 {
  color: #051C30;
  font-size: 1.8rem;
}

h3 {
  font-size: 1rem;
}

h5 {
  margin: 0;
  color: rgba(4, 28, 49, 0.58);
  font-size: .9rem;
}

p {
  color: rgba(4, 28, 49, 0.95);
  line-height: 1.5rem;
}

a {
  color: #1176ce;
  text-decoration: none;
}

ul {
  color: rgba(4, 28, 49, 0.87);
  line-height: 1.5rem;
}

ul li {
  margin-bottom: .7rem;
}

header {
  margin-bottom: 1.5rem;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  border-bottom: 1px solid rgba(132, 141, 150, 0.36);
  width: 75%;
}

.name a {
  cursor: pointer;
  color: #051C30;
}

.home .name a {
  cursor: default;
  color: #fff;
}

ul a {
  color: unset;
  text-decoration: none;
}

ul.menu {
  padding: 0;
  list-style: none;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  margin-bottom: -3px;
  font-weight: bold;
}

ul.menu li {
  display: inline-block;
  margin-right: 1.3rem;
  margin-bottom: 0;
  padding: 5px 0;
  transition: all 1.5s cubic-bezier(.19,1,.22,1);
  font-weight: bold;
}

ul.menu li:last-child {
  margin-right: 0;
}

ul.menu li a {
  color: #848D96;
  font-weight: bold;
}

ul.menu li span {
  position: relative;
  display: inline-block;
}

ul.menu li span:after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  border-bottom: 1px solid;
  content: "";
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  transform: scaleX(0);
}

.home ul.menu li.active a,
.home ul.menu li a:hover {
  color: #fff;
}

ul.menu li.active a,
ul.menu li a:hover {
  color: #051C30;
}

.home ul.menu li.active a span:after,
.home ul.menu li a:hover span:after {
  border-color: #fff;
}

ul.menu li.active a span:after,
ul.menu li a:hover span:after {
  border-color: #051C30;
  transform: scaleX(1);
}

article {
  margin-bottom: 3rem;
}

.close {
  position: absolute;
  top: 25%;
  right: -10px;
  margin-top: -20px;
  width: 20px;
  height: 50%;
  border-radius: 50%;
  text-align: center;
  padding: 13px;
  cursor: pointer;
  transition: all .5s cubic-bezier(.19,1,.22,1) .2s;
  z-index: 1;
}

.close img {
  visibility: visible;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  height: 16px;
  transition: all .5s;
}

.close:hover img {
  visibility: visible;
  opacity: 1;
}

section.inactive {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}

section.active {
  visibility: visible;
  opacity: 1;
}

article.presentaciones,
article.discursos {
  margin-bottom: 2rem;
}

.presentaciones h4,
.discursos h4 {
  color: #041c31;
  margin: 0;
}

time {
  display: block;
  font-size: 0.8rem;
}

span.count {
  display: none;
}

.discursos p {
  margin: 0;
  color: rgba(4, 28, 49, 0.58);
}

article.libros {
  width: 29%;
  display: inline-grid;
  margin-right: 3%;
  margin-bottom: 2rem;
}

article.libros img {
  max-height: 200px;
  margin-bottom: .5rem;
}

article.libros h4 {
  font-size: 1rem;
  color: #051C30;
  font-family: 'Lora', serif!important;
  margin: .5rem 0;
}

article.libros p {
  margin: .2rem 0;
  color: #848D96;
}

@media only screen and (max-width: 980px) {
  article.libros {
    width: 42%;
    display: inline-grid;
    margin-right: 5%;
    margin-bottom: 2rem;
  }
}

@media only screen and (max-width: 480px) {
  article.libros {
    width: 100%;
    display: block;
    margin-right: 5%;
    margin-bottom: 3rem;
    clear: both;
    min-height: 200px;
  }

  article.libros .imagen {
    width: 40%;
    float: left;
    margin-right: 5%;
  }

  article.libros img {
    max-width: 120px;
    max-height: 180px;
  }

  article.libros .descripcion {
    width: 45%;
    float: left;
  }

  article.libros h4 {
    margin-top: 0;
  }
}

article.papers h4 {
  font-size: 1rem;
  color: #051C30;
  font-family: 'Lora', serif!important;
  margin: 0;
}

article.papers p {
  margin: 0;
  color: #848D96;
  line-height: 1.5rem;
}

#biografia,
#discursos,
#actividad-legislativa {
  width: 75%;
}

#presentaciones {
  width: 40%;
  float: left;
}

#discursos {
  width: 40%;
  float: left;
  margin-right: 8%
}

@media only screen and (max-width: 767px) {
  #biografia,
  #actividad-legislativa {
    width: 100%;
  }

  #presentaciones {
    width: 90%;
    float: left;
    margin-top: 3rem;
  }

  #presentaciones h2 {
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
  }

  #discursos {
    width: 90%;
    float: left;
  }
}

.m0 {
  margin: 0 !important;
}
