* {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  font-size: 16px;
  font-family: 'acsregular';
  text-rendering: geometricPrecision;
  transition: all ease-in-out .2s;
  min-height: 100vh;
  background-color: rgb(250, 250, 250);
}

select:focus {
  outline: none;
}

header {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  background-color: #00386b;
  transition: all ease-in-out .2s;
}

header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}

header.scroll {
  box-shadow: 1px 0px 20px 0 rgba(0, 0, 0, 0.1);
}

header nav {
  position: relative;
  width: calc(100% - 100px);
  max-width: 1200px;
  height: auto;
  padding: 0px 0;
  margin: 0 auto;
  overflow: hidden;
  transition: all ease-in-out .2s;
}

header nav .logo {
  position: relative;
  float: left;
  width: 200px;
  height: auto;
  transition: all ease-in-out .2s;
}

header nav .logo img {
  width: 100%;
}

header nav .title {
  position: relative;
  float: right;
}

header nav .title h2 {
  font-size: 1.6em;
  color: #fff;
  padding-top: 15px;
  font-family: 'acsregular';
  transition: all ease-in-out .2s;
}

section .video-container {
  position: relative;
  width: 100%;
  max-width: 810px;
  height: auto;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

section .video-container .language {
  position: absolute;
  margin: 20px 10px;
  display: inline-block;
  background-color: transparent;
  overflow: hidden;
  border: solid 2px #00386b;
  cursor: pointer;
  height: 40px;
  width: auto;
  transition: all ease-in-out .2s;
}

section .video-container .language.active {
  height: 76px;
}

section .video-container .language::before {
  content: "";
  position: absolute;
  right: 10px;
  top: calc(50% - 2px);
  width: 0;
  height: 0;
  border-left: 10px solid rgb(200, 200, 200);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: rotate(90deg) translateX(-50%);
  transition: all ease-in-out .2s;
}

section .video-container .language.active::before {
  right: -20px;
}

section .video-container .language::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

section .video-container .language.active::after {
  display: none;
}

section .video-container .language p {
  position: relative;
  font-size: 1em;
  padding: 10px 50px 10px 20px;
  transition: all ease-in-out .2s;
}

section .video-container .language.en p:first-child {
  margin-top: -37px;
}

section .video-container .language.en.active p {
  margin-top: 0px;
}

section .video-container .language.active p:hover {
  background-color: rgb(200, 200, 200);
}

.video-js-wrapper .video-js {
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  box-shadow: rgb(0, 56, 107) 0px 40px 20px -30px;
}

.streaming-container {
  box-shadow: rgb(0, 56, 107) 0px 40px 20px -30px;
}

/* El contenedor de tabs ahora se adapta a la altura de su contenido */
section .tabs-container {
  position: relative;
  width: 80%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  margin-top: 0;
  background-color: transparent;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 20px 50px -30px rgba(0, 0, 0, 0.2);
  transition: all ease-in-out .2s;
  opacity: 0;
}

section .tabs-container.on {
  margin-top: 120px;
  opacity: 1;
}

section .tabs-container .tab {
  position: relative;
  width: 100%;
  height: auto;
  border-bottom: 4px solid white;
  overflow: hidden;
  display: flex;
}

section .tabs-container .tab button.tablinks {
  border: 0;
  outline: 0;
  background-color: rgb(245, 245, 245);
  font-size: 1.4em;
  font-family: 'acsregular';
  padding: 12px 40px;
  border-right: 4px solid white;
  cursor: pointer;
  margin: 0;
  display: inline-block;
  transition: all ease-in-out .2s;
  flex: 1;
  white-space: nowrap;
}

section .tabs-container .tab button.tablinks:last-child {
  border-right: none;
}

section .tabs-container .tab button.tablinks.active {
  background-color: #ffffff;
}

section .tabs-container .tabswrap {
  float: none;
  clear: both;
  width: 100%;
  height: auto;
  padding: 20px;
  background-color: white;
}

section .tabs-container .tabswrap .tabcontent {
  position: relative;
  font-size: 1em;
  display: none;
}

section .tabs-container .tabswrap .tabcontent .container {
  display: flex;
  min-height: 150px;
}

section .tabs-container .tabswrap .tabcontent .container h3 {
  font-family: 'acslight';
  font-size: 1.4em;
}

section .tabs-container .tabswrap .tabcontent .container ul {
  margin-top: 10px;
}

section .tabs-container .tabswrap .tabcontent .container ul li {
  margin-bottom: 5px;
}

section .tabs-container .tabswrap .tabcontent .container ul li:last-child {
  margin-bottom: 0;
}

section .tabs-container .tabswrap .tabcontent .container ul li span {
  font-family: 'acsbold';
  margin-right: 4px;
}

section .tabs-container .tabswrap .tabcontent .container ul li span::after {
  content: ":";
}

section .tabs-container .tabswrap .tabcontent .container button {
  position: relative;
  border: 0;
  outline: 0;
  background-color: #f0f0f0;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.8em;
  cursor: pointer;
  margin: 0 auto;
  margin-top: 10px;
  text-transform: uppercase;
  display: block;
}

section .tabs-container .tabswrap .tabcontent:first-child {
  display: block;
}

section .tabs-container .tabswrap .tabcontent#download .container > div {
  margin: 0 auto;
}

section .tabs-container .tabswrap .tabcontent#download .container > div img {
  width: 100%;
  max-width: 60px;
  margin-left: 50%;
  transform: translateX(-50%);
}

section .tabs-container .tabswrap .tabcontent#download p {
  font-family: 'acsbold';
  font-size: 0.9em;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

section .tabs-container .tabswrap .tabcontent#description .container > div:first-child {
  margin: 0;
}

section .tabs-container .tabswrap .tabcontent#description .container > div img {
  width: 100%;
  max-width: 130px;
  padding-right: 20px;
  margin-left: 50%;
  transform: translateX(-50%);
}

section .tabs-container .tabswrap .tabcontent#contact .container {
  display: block;
}

section .tabs-container .tabswrap .tabcontent#contact .container .iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 850px;
  height: 0;
  overflow: hidden;
}

section .tabs-container .tabswrap .tabcontent#contact h3 {
  text-align: center;
}

section .tabs-container .tabswrap .tabcontent#contact .container .iframe-container iframe {
  position: relative;
  width: 100%;
}

header nav {
  padding: 15px;
  width: 100%;
}

header nav .logo {
  width: 73px;
}

header nav .title h2 {
  font-size: 1em;
  padding-top: 5px;
}

section {
  padding: 130px 0 50px 0;
}

section .tabs-container .tab button.tablinks {
  font-size: 1.2em;
  padding: 10px 20px;
  border-right: 2px solid white;
}

section .tabs-container .tabswrap .tabcontent#download .container > div img {
  max-width: 60px;
}

section .tabs-container .tabswrap .tabcontent .container button {
  padding: 10px 20px;
  font-size: 0.6em;
}

.tabcontent#legal {
  height: 850px;
}

.tabcontent#description {
  height: 120px;
}

.tabcontent#download {
  height: 120px;
}

.box {
  padding-left: 20px;
}

section {
  padding-top: 90px;
}

/* Media queries para dispositivos */
@media (max-width: 860px) {
  section .tabs-container .tabswrap .tabcontent#description .container {
    display: block;
  }
  section .tabs-container .tabswrap .tabcontent#description .container > div:first-child {
    margin-bottom: 20px;
  }
  .tabcontent#description {
    height: 330px;
  }
}

@media (max-width: 760px) {
  section .tabs-container .tabswrap .tabcontent#contact .container .iframe-container {
    padding-bottom: 950px;
  }
}

@media (max-width: 700px) {
  .tabcontent#legal {
    height: 900px;
  }
}

/* Modificaciones para pantallas con max-width: 640px:
   Se cambia el posicionamiento del selector de idioma a relativo, y se ajusta el margen inferior del contenedor de vídeo.
   Además, se adaptan algunos estilos internos para que el contenedor de tabs se posicione correctamente según el contenido. */
@media (max-width: 640px) {
  section .video-container .language {
    position: relative;
    margin: 20px 10px;
  }
  
  .video-container {
    margin-bottom: 20px;
  }
  .end {
    height: 0px;
  }
  section .tabs-container .tabswrap .tabcontent#download .container {
    display: block;
  }
  section .tabs-container .tabswrap .tabcontent#download .container div {
    margin-bottom: 40px;
  }
  section .tabs-container .tabswrap .tabcontent#download .container div:last-child {
    margin-bottom: 0;
  }
  .tabcontent#download {
    height: 330px;
  }
  /* En mobile, dejamos el margin-top de .tabs-container.on en 0 para que se adapte el flujo del documento */
  section .tabs-container.on {
    margin-top: 0px;
  }
  section .tabs-container .tabswrap .tabcontent {
    font-size: 1.2em;
  }
  section .tabs-container .tabswrap .tabcontent .container h3 {
    font-size: 1.1em;
  }
  section .tabs-container .tab {
    display: block;
  }
  section .tabs-container .tab button.tablinks {
    display: block;
    float: none;
    width: 100%;
    border-right: none;
    border-bottom: 2px solid white;
  }
  section .tabs-container .tab {
    border-bottom: none;
  }
  section .button-open {
    margin-top: 100px;
    padding: 20px 0 16px 0;
    font-size: 1.2em;
  }
  section .button-open p {
    padding-left: 20px;
  }
  section .button-open p::before,
  section .button-open p::after {
    width: 12px;
    height: 2px;
    margin-top: -1px;
  }

  .tabcontent#legal {
    height: 910px;
  }
}

@media (max-width: 500px) {
  header nav .title h2,
  header.scroll nav .title h2 {
    font-size: 1em;
    padding-top: 8px;
  }

}

/* Loader de ejemplo (opcional) */
.lds-roller {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
