:root {
  --primary-blue: rgb(29, 116, 241);
  --primary-green: rgb(37, 168, 65);
  --white: #ffffff;
  --primary-black: rgb(8, 24, 48);
  --spacing-standard: 1rem;
  --spacing-large: 2rem;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none !important;
  font-family: "montserrat", sans-serif;
  max-width: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: normal !important;
}

/* Navigation */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  margin: auto;
  padding: 0 8dvw;
  flex-direction: column;
  align-items: normal;
  font-weight: 500;
  font-size: 1.15rem;
}


nav .logo {
  height: 6rem;
}

.nav-link {
  position: relative;
  display: inline-block;
}


.nav-link::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 2px;
  background-color: var(--primary-green);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
}

.nav-link:hover::before,
.nav-link:focus::before,
.nav-link:active::before {
  visibility: visible;
  transform: translateX(-50%) scaleX(1);
}

.nav-item:visited {
  color: var(--primary-blue);
}

.navbar-toggler,
.navbar-toggler-icon {
  border: none;
  padding: 0;
}

.navbar-toggler:hover,
.navbar-toggler-icon:hover {
  border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus,
.navbar-toggler-icon:active {
  border: none;
  box-shadow: none;
}

.nav-link.activate {
  color: var(--primary-green);
}



/* Masthead */
section.masthead {
  position: relative;
  height: 90svh;
  margin-top: 10svh;
  background: url(../img/fondo-header-franjas-horizontal.png),
    url(../img/campo-deportivo-header-horizontal.jpg);
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  object-fit: cover, cover;
}

.box-banner {
  padding: 25vh 8dvw 0 8dvw;
}

.masthead h1 {
  margin-top: 20vh;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  text-align: left;
}

.banner {
  display: inline-block;
  padding: 1rem 15rem 1rem 0;
  background-color: rgba(29, 116, 241, 0.5);
  color: white;
}

.masthead h2 {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.about {
  margin: 2rem 8dvw 0 8dvw;
  font-weight: 500;
}

.about-2 {
  margin-top: 6rem;

}

.text-about-2 {
  margin: 4rem 0 1rem 0;
  font-weight: 500;
  text-align: center;
}

.text-about {
  padding: 2.5rem 3rem;
  font-weight: 500;
  text-align: center;
}

.text-about h2 {
  padding: 1rem 0;
  font-size: 1.8rem;
  color: var(--primary-blue);
  border-top: solid 2px var(--primary-blue);
  border-bottom: solid 2px var(--primary-blue);
}

.text-about h3 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.text-about-2 h2 {
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  border-top: solid 2px var(--primary-blue);
  border-bottom: solid 2px var(--primary-blue);
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 6rem;
}

h2.title-showcase {
  margin-top: 4rem;
  padding: 0.5rem 0 0.5rem 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  background-color: var(--primary-blue);
  text-align: start;
}

article .showcase {
  grid-area: 1 / 1 / 2 / 2;
}

.box-showcase {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 3rem;
  grid-row-gap: 2rem;
  align-items: center;
}

.item-showcase {
  grid-area: 1 / 1 / 2 / 2;
  height: 100%;
}

.item-showcase-c {
  grid-area: 1 / 2 / 2 / 3;
  height: 100%;
}

.showcase h3 {
  margin-bottom: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.showcase h4 {
  margin-top: 0.5rem;
  font-size: 1.8rem;
  color: var(--primary-green);
}

.showcase p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.section-row {
  margin: 0;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.showcase-img {
  height: 100%;
  max-height: 80vh;
  width: 100%;
  background-size: cover;
  object-fit: cover;
  border-radius: 5px;
}

.showcase-link {
  margin-top: 2rem;
}

.showcase .aclaracion {
  font-size: 0.8rem;
}

.showcase-text svg {
  width: 2rem;
  height: 2rem;
}

.featurette-divider {
  margin: 5rem 0;
  color: var(--primary-green);
}

/* Buttons */
.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: white;
  background-color: var(--primary-blue);
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out;
}

.custom-btn:hover {
  background-color: var(--primary-green);
  transition: 0.01s;
  color: white;
  font-weight: 600;
}

.custom-btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-green);
  border: solid 2px var(--primary-green);
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out;
}

.custom-btn-sec svg {
  fill: var(--primary-green);
}

.custom-btn-sec:hover {
  font-weight: 600;
}

.custom-btn-sec:hover svg {
  fill: var(--primary-green);
}

.custom-btn svg,
.custom-btn-sec svg {
  height: 2rem;
  width: 2rem;
}

/* Layout */
main,
footer,
.box-call-to {
  padding-left: 8dvw;
  padding-right: 8dvw;
  margin: auto;
}

.section-video {
  margin-top: 6rem;


}


.section-video h2 {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.5rem 0 0.5rem 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: start;
  margin-bottom: 3rem;
}


.box-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
}


video {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.video-link {
  margin-top: 2rem;
  display: flex;
  justify-content: start;
}

.box-volver-inico {
  margin-top: 1rem;
  display: flex;
  justify-content: end;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.box-volver-inico a:hover {
  font-weight: 600;
  color: var(--primary-green);
}


/* Footer */
footer.footer {
  padding-top: 20vh;
  background-image: url(../img/fondo-footer.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  height: 500px;
  color: white;
}

.social-contact {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  translate: -50%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 8dvw 0 8dvw;
  width: 100%;
}

.social-contact h5 {
  font-size: 1rem;
}

.social-contact h5:not(:last-child) {
  margin-right: 2rem;
  margin-bottom: 0;
}

footer a {
  color: white;
  font-size: 1.2rem;
}

footer a:last-of-type {
  font-size: 1rem;
}

.social-contact a {
  transition: opacity 0.3s ease;
}

.social-contact a:hover {
  opacity: 0.7;
}

.social-contact svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 1rem;
}

.social-contact svg.whats {
  width: 1.2rem;
  height: 1.2rem;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.social-link-item {
  text-decoration: none;
}

.social-link-item:not(:last-child) {
  margin-right: 2rem;
}

.social-contact-item {
  display: flex;
  flex-direction: column;
}

/* Section Footer */
.section-footer {
  position: absolute;
  bottom: 2dvh;
  left: 50%;
  translate: -50%;
  width: 100%;
  text-align: center;
  padding: 0 8dvw 0 8dvw;

}

.container-fluid {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 0;
  padding-right: 0;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*//////////////////////// Media Queries ////////////////////////////////////*/
@media (max-width: 800px) and (min-height: 400px) {
  nav.navbar {
    padding-left: 6dvw;
    padding-right: 6dvw;
  }

  nav .logo {
    height: 4rem;
  }


  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.2rem;
  }

  main,
  footer,
  .box-call-to {
    padding-left: 6dvw;
    padding-right: 6dvw;
  }

  .custom-btn-sec {
    font-size: 1rem;
  }

  .custom-btn-sec svg {
    height: 1rem;
    width: 1rem;
  }

  .custom-btn-sec:focus {
    border: solid;
    border-width: 2px;
    border-color: var(--primary-green);
    border-radius: 5px;
    font-weight: 600;
  }

  .custom-btn:focus {
    background-color: var(--primary-blue);
    transition: 0.01s;
  }

  .custom-btn svg {
    height: 1.5rem;
    width: 1.5rem;
  }

  section.masthead {
    background: url(../img/fondo-header-franjas-vertical.png),
      url(../img/campo-deportivo-header-vertical.jpg);
    background-repeat: no-repeat, no-repeat;
    object-fit: cover, cover;
    background-size: cover, cover;
    background-position: center, center;
  }

  section.masthead h1 {
    margin-top: 0;
    font-size: 2.3rem;
  }

  section.masthead h5 {
    font-size: 1rem;
  }

  .masthead h1 span {
    white-space: nowrap;
  }

  .masthead h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .box-banner {
    padding: 40vh 6dvw 0 6dvw;
  }

  .banner {
    padding-right: 0;
  }

  .about {
    margin: 2rem 6dvw 1rem 6dvw;
  }

  .about-2 {
    margin-top: 3rem;
  }

  .text-about h2 {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .text-about {
    padding: 0;
  }

  .text-about h3 {
    display: none;
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .text-about-2 h2 {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem 0;
  }

  ul.nav {
    display: none;
  }

  .featurette-divider {
    margin: 2rem 0;
  }


  .showcase {
    grid-row-gap: 1rem;
  }

  .box-showcase {
    margin-top: 1rem;
    grid-template-columns: auto;
    grid-template-rows: auto;
    gap: 0;
    align-items: end;
  }

  h2.title-showcase {
    font-size: 1.5rem;
  }

  .item-showcase,
  .item-showcase-c {
    grid-area: 1;
    height: 50vh;
  }


  .item-showcase-b,
  .item-showcase-d {
    align-self: flex-start;
  }

  article.showcase {
    margin-top: 2rem;
  }

  .showcase-img {
    max-height: 100%;
  }

  .showcase-text {
    padding: 0;
  }

  .showcase p {
    font-size: 1rem;
  }


  .showcase h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
  }

  .showcase h4 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
  }

  .salto-de-linea::before {
    content: "\A";
    white-space: pre;
  }


  h5 {
    font-size: 1.1rem;
  }



  .showcase-text ul li {
    font-size: 1rem;
    justify-content: center;
    font-weight: 400;
  }

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


  .box-list-carrusel {
    margin-top: 0;
  }

  .art-carrusel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-row-gap: 0;
    margin-bottom: 0;
  }

  h2.section-carrusel {
    font-size: 1.5rem;
    margin-top: 4rem;
  }

  .art-carrusel li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }


  .art-carrusel svg {
    height: .5rem;
    width: .5rem;
  }


  .section-video {
    margin-top: 3rem;

  }

  .section-video h2 {
    font-size: 1.5rem;

  }

  .box-video {
    width: 100%;
  }

  video {
    height: 50vh;
    object-fit: cover;
    width: 100%;
  }

  .video-link {
    justify-content: start;
  }


  .social-contact {
    margin-top: 6vh;
    flex-direction: column;
    align-items: flex-start;
    position: revert;
    translate: 0;
    padding: 0;

  }

  .social-contact h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
  }

  .social-contact h5:not(:last-child) {
    margin-right: 0;
  }

  .social-contact-item.contacto {
    margin-top: 2rem;
    font-size: 1rem;
  }

  footer a:last-of-type {
    font-size: 0.9rem;
  }

  .social-contact svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .social-contact svg.whats {
    width: 1rem;
    height: 1rem;
  }


  .social-links {
    justify-content: space-between;
    margin-top: 1rem;
  }

  .social-link-item:not(:last-child) {
    margin-right: 1rem;
  }


  .social-contact-item {
    flex-direction: column;
  }


  .section-footer {
    width: 100%;
    padding: 0 6dvw 0 6dvw;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1rem;
  }

  .section-footer hr {
    margin: 0;

  }

}

/* tablets */
@media (min-width: 801px) and (max-width: 1100px) and (orientation: landscape) {
  .showcase-img {
    max-height: 100%;
  }

  .social-contact {
    margin-top: 15vh;
  }
}

/* pantallas grandes */
@media (min-width: 1400px) {
  section.masthead {
    position: relative;
    margin-top: 13vh;
  }
}

/* Móviles chicos */
@media (max-width: 480px) {
  section.masthead h1 {
    margin-top: 10vh;
    font-size: 2rem;
  }

  .box-banner {
    padding: 30vh 6dvw 0 6dvw;
  }

  .showcase-img {
    max-height: 100%;
  }

}



@media (min-width: 801px) and (orientation: portrait) {
  section.masthead {
    height: 50vh;
    margin-top: 0;
  }

  .masthead h1 {
    margin-top: 0;
  }

  .banner {
    margin-top: 0;
  }

  .swiper-slide img {
    height: 100%;
  }

}

@media (min-width: 1800px) and (min-height: 1081px) {
  section.masthead {
    height: 50vh;
    margin-top: 0;
  }

  .masthead h1 {
    margin-top: 0;
  }

  .banner {
    margin-top: 0;
  }

  .social-contact {
    position: absolute;
    bottom: 10vh;
  }
}