:root{
  --primary: #09207d;
  --secondary: #ed7f31;
  --white: #fff;
  --light: #f5f5f5;
  --black: #000;
}

body{
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Geneva, Verdana, sans-serif;
}

*{
  box-sizing: border-box;
}

header{
  display: flex;
  position: fixed;
  background-color: var(--primary);
  flex-direction: row;
  max-height: 120px;
  border-bottom: 1px solid var(--white);
  z-index: 1000;
}

#navbar{
  display: none;
}

header > img{
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
}

header i{
  font-size: 1.5rem;
}

h1, h2, h3, h4, h5, h6{
  color: var(--primary);
  margin: 0;
}

i{
  color: var(--white);
}

ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

iframe{
  width: 100%;
  height: 100%;
}

.menu{
  display: flex;
  height: 100%;
  align-items: center;
}

.menu li{
  flex: 1;
  height: 100%;
}

.menu-item{
  display: block;
  line-height: 38px;
  color: var(--white);
  text-align: center;
  transition: all .5s;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--white);
}

.menu-item:hover,
.active{
  background-color: var(--secondary);
}

.submenu{
  display: none;
  width: calc((100vw - 130px) / 5);
  position: absolute;
  border: 1px solid var(--white);
}

.submenu li{
  width: 100%;
  height: 40px;
  background-color: var(--primary);
  transition: all .5s;
  cursor: pointer;
}

.submenu li a{
  display: flex;
  justify-content: center;
  line-height: 40px;
  color: var(--white);
  text-decoration: none;
}

.dropdown:hover .submenu{
  display: block;
  z-index: 1;
}

.submenu li:hover{
  background-color: var(--secondary);
}

#navbar-bottom-margin{
  height: 120px;
}

.container{
  width: 100%;
}

/* Backgrounds */

.bg-primary{
  background-color: var(--primary);
}

.bg-secondary{
  background-color: var(--secondary);
}

.bg-light{
  background-color: var(--light);
}

.bg-football-gray{
  background-image: url('../img/bgFootballGray.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Texts styles */

.color-primary{
  color: var(--primary);
}

.color-white{
  color: var(--white);
}

.text-justify{
  text-align: justify;
}

.text-center{
  text-align: center;
}

.text-left{
  text-align: left;
}

.text-right{
  text-align: right;
}

.text-ellipsis{
  -webkit-line-clamp: 1;
  display:-webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-1{
  font-size: 2.3rem;
  font-weight: normal;
}

.title-2{
  font-size: 2rem;
  font-weight: normal;
}

.subtitle-1{
  font-size: 1.8rem;
}

/* Flex styles */

.flex{
  display: flex;
}

.row{
  display: flex;
  flex-direction: row;
}

.row-1{
  flex: 1;
  gap: 1rem;
}

.row-3{
  flex: 3;
  gap: 1rem;
}

.flex-wrap{
  flex-wrap: wrap;
  gap: 2em;
}

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

.space-around{
  justify-content: space-around;
}

.space-between{
  justify-content: space-between;
}

.space-evenly{
  justify-content: space-evenly;
}

.justify-center{
  justify-content: center;
}

.justify-flex-end{
  justify-content: flex-end;
}

.align-center{
  align-items: center;
}

/* Margenes */

.m-2{
  margin: 2em;
}

.mx-1{
  margin-left: 1em;
  margin-right: 1em;
}

.mx-2{
  margin-left: 2em;
  margin-right: 2em;
}

.mx-3{
  margin-left: 3em;
  margin-right: 3em;
}

.my-1{
  margin-top: 1em;
  margin-bottom: 1em;
}

.my-3{
  margin-top: 3em;
  margin-bottom: 3em;
}

.mt-1{
  margin-top: 1em;
}

.mt-3{
  margin-top: 3em;
}

.mt-7{
  margin-top: 7em;
}

.mt-10{
  margin-top: 10em;
}

.mb-1{
  margin-bottom: 1em;
}

.mr-1{
  margin-right: 1em;
}

.ml-1{
  margin-left: 1em;
}

/* Paddings */

.p-2{
  padding: 2em;
}

.px-1{
  padding-left: 1em;
  padding-right: 1em;
}

.px-2{
  padding-left: 2em;
  padding-right: 2em;
}

.px-3{
  padding-left: 3em;
  padding-right: 3em;
}

.py-1{
  padding-top: 1em;
  padding-bottom: 1em;
}

.py-3{
  padding-top: 3em;
  padding-bottom: 3em;
}

.pt-1{
  padding-top: 1em;
}

.pt-2{
  padding-top: 2em;
}

.pt-3{
  padding-top: 3em;
}

.pb-3{
  padding-bottom: 3em;
}

.pb-10{
  padding-bottom: 10em;
}

/* Slider */

.slider{
  overflow: hidden;
}

.slider > ul{
  display: flex;
  width: 400%;
}

.slider li{
  width: 25%;
  height: 100%;
  animation: slide 30s infinite alternate;
  animation-timing-function: ease-in;
}

@keyframes slide{
  0% { transform: translateX(0); }
	20% { transform: translateX(0); }

	25% { transform: translateX(-100%); }
	45% { transform: translateX(-100%); }

	50% { transform: translateX(-200%); }
	70% { transform: translateX(-200%); }

  75% { transform: translateX(-300%); }
  100% { transform: translateX(-300%); }
}

.slider img{
  width: 100%;
  height: 100%;
}

/* Fin slider styles */

.separador{
  width: 100%;
  height: 10px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  background: linear-gradient(
    to right,
    var(--secondary) 0% 20%,
    var(--primary) 20% 40%,
    var(--secondary) 40% 60%,
    var(--primary) 60% 80%,
    var(--secondary) 80% 100%
  );
}

.border-bottom-secondary{
  border-bottom: 2px solid var(--secondary);
}

.scroll-x{
  overflow-x: hidden;
}

#convenios{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
  row-gap: 2em;
}

#galeria{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
}

#galeria img{
  justify-self: center;
  width: 20%;
  min-width: 270px;
  max-width: 400px;
  height: 270px;
}

#galeria img:hover{
  transform: scale(1.05);
}

/* Card */

.card{
  background-color: var(--white);
  min-width: 300px;
  width: 100%;
  min-height: 140px;
}

/* Fin card styles */

/* Card noticia */

.noticias-container{
  align-self: center;
  max-width: 80em;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2em;
}

.card-noticia{
  display: flex;
  max-height: 140px;
  margin: 1em;
}

.card-content > img{
  height: 100%;
  max-width: 120px;
}

.noticia-info{
  color: var(--primary);
  font-size: 1.1rem;
  max-width: 100%;
  text-align: justify;
}

.noticia-info > p{
  -webkit-line-clamp: 3;
  margin-top: 0;
}

/* Fin card noticia */

/* Slider games */

#container-slider-games{
  position: relative;
  overflow: hidden;
}

#btn-prev, #btn-next{
  color: var(--primary);
  background-color: var(--white);
  border-radius: 50%;
  font-size: 3rem;
  position: absolute;
  top: 50%;
  transition: all .5s;
}

#btn-prev:hover, #btn-next:hover{
  transform: scale(1.1);
}

#btn-prev{
  left: 10px;
}

#btn-next{
  right: 10px;
}

/* Fin slider games */

#banner-calendario{
  display: flex;
}

#banner-calendario > a{
  width: 60%;
  min-width: 320px;
  height: auto;
}

#banner-calendario > a > img{
  width: 100%;
  height: auto;
}

footer{
  position: relative;
}

#footer-logo{
  position: absolute;
  top: -100px;
  left: calc(50% - 100px)
}

.footer-icon{
  font-size: 2.5rem;
}

#banner{
  width: 100%;
  height: 60vh;
  background-image: url('../img/banners/BANNER_2.jpg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Plantilla */

#plantilla, #cuerpo-tecnico{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  gap: 1em;
}

.card-plantilla{
  position: relative;
  justify-self: center;
  width: 200px;
  height: 300px;
  color: var(--white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
  overflow: hidden;
}

.card-plantilla-content{
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  transform: translateY(68px);
  transition: transform .25s;
}

.plantilla-name{
  line-height: 18px;
}

.plantilla-subtitle{
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}

.card-plantilla:hover .card-plantilla-content{
  transform: translateY(0);
}

/* Fin Plantilla */

/* Estadisticas */

table{
  width: 100%;
  border-collapse: collapse;
  color: var(--white);
  background-color: rgba(9, 32, 125, 0.9);
  border: 1px solid var(--primary);
}

tr{
  border-bottom: 1px solid var(--primary);
}

td:nth-child(2){
  min-width: 200px;
}

th, td{
  padding: 5px;
}

tbody tr:hover{
  background-color: rgba(0, 0, 0, 0.1);
  cursor: default;
}

/* Fin Estadisticas */

/* Contacto */

label{
  color: var(--white);
  margin: 5px 0;
}

input,
textarea{
  border: none;
  border-radius: 2px;
  padding: 5px 10px;
  caret-color: var(--secondary);
  color: var(--primary)
}

input:focus,
input:active,
textarea:focus,
textarea:active,
button:focus,
button:active{
  border: 1px solid var(--secondary);
  outline: none;
}

button{
  width: 100%;
  background-color: var(--secondary);
  border: none;
  color: var(--white);
  padding: 8px;
  font-size: 14px;
}

button:hover{
  background-color: rgba(237, 127, 49, 0.8);
}

.alert{
  width: 100%;
  padding: 1px 10px;
  border-radius: 3px;
}

.success{
  background-color: #85ff85;
  border: 1px solid #008000;
  color: #008000;
}

.error{
  background-color: rgb(255, 128, 128);
  border: 1px solid #ff0000;
  color: #ff0000;
  font-weight: bold;
}

/* Fin Contacto */

@media screen and (max-width: 950px) {

  .convenios-img{
    height: 30px;
    width: min-content;
  }

  .title-1{
    font-size: 2rem;
  }
  
  .title-2{
    font-size: 1.7rem;
  }
  
  .subtitle-1{
    font-size: 1.5rem;
  }

  header{
    display: none;
  }

  #navbar{
    display: block;
    position: fixed;
    background-color: var(--primary);
    height: 100px;
    z-index: 999;
  }

  #navbar-patrocinadores{
    height: 50px;
    border-bottom: 1px solid var(--white);
  }
  
  #nav{
    height: 49px;
    display: grid;
    grid-template-columns: 1fr 6fr 1fr;
    border-bottom: 1px solid var(--white);
  }

  
  #navbar-bottom-margin{
    height: 100px;
  }
  
  #mobile-links{
    position: absolute;
    height: calc(100vh - 100px);
    width: calc(100vw - 100px);
    left: -10000px;
    border-right: 1px solid var(--white);
    background-color: var(--primary);
    z-index: 999;
    transition: all 0.5s ease-out;
  }
  
  #mobile-links li{
    display: block;
    border-bottom: 1px solid var(--white);
    text-align: left;
    font-size: 1.1rem;
    color: var(--white);
    padding: 0.5em 1em;
  }
  
  #mobile-redes-links{
    position: absolute;
    right: -10000px;
    height: calc(100vh - 100px);
    width: calc(100vw - 100px);
    background-color: var(--primary);
    border-left: 1px solid var(--white);
    z-index: 999;
    transition: all 0.5s ease-out;
  }
  
  #mobile-redes-links li{
    display: block;
    border-bottom: 1px solid var(--white);
    text-align: right;
    font-size: 1.1rem;
    color: var(--white);
    padding: 0.5em 1em;
  }

  main{
    height: auto;
  }

  .submenu{
    margin-top: 1.5em;
    position: relative;
    width: 70%;
  }

  .submenu ul li{
    padding: 0 !important;

  }

  #banner{
    height: 20vh;
  }
}

@media screen and (max-width: 750px) {
  .noticias-container{
    grid-template-columns: none;
  }

  #banner{
    height: 15vh;
  }
}

@media screen and (max-width: 700px) {
  footer .row,
  form .row{
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 600px) {
  .scroll-x{
    overflow-x: scroll;
  }
}