@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap");

* {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}
body {
  background-color: rgb(248, 248, 248);
}
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  padding: 0 80px;
  border-bottom: 3px solid rgb(132, 219, 0);
}

header .logo-container {
  width: 250px;
  height: 100px;
  margin: 0;
}

header .logo-container img {
  width: 100%;
  height: 100%;
}

/* header .navbar a{
    text-decoration: none;
    margin-left: 30px;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px;
    cursor: pointer;
    background-color: transparent;

}
header .navbar a:hover{
    color: rgb(132, 219, 0);
    transition: 0.2s ease-out;
    box-shadow: 0 0 15px 10px rgb(132, 219, 0);
    border-radius: 10px;
} */

header .navbar a {
  position: relative;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

header .navbar a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(132, 219, 0);
  transition: 0.3s;
}

header .navbar a:hover::before {
  width: 100%;
}

#menu-icon {
  width: 100%;
  font-size: 36px;
  color: #fff;
  display: none;
}

main {
  max-width: 1150px;
  display: grid;
  margin-bottom: 30px;
}

/* SLIDER */

.gradient {
  width: 100%;
  height: 100%;
}

.hero-slider {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.hero-slider .carousel-cell {
  width: 100%;
  height: 100%;
  background: no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slider .carousel-cell .info-container {
  color: #fff;
  position: relative;
}

.hero-slider .carousel-cell .info-container .header {
  font-family: "Roboto Slab", sans-serif;
  font-size: 35px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero-slider .carousel-cell .info-container .text {
  font-family: "Montserrat", sans-serif;
  font-size: 46px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 32px;
}

.hero-slider .carousel-cell .info-container button {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider .carousel-cell .info-container button:hover {
  background: #fff;
  color: #000;
  font-weight: bold;
}

.hero-slider .flickity-prev-next-button {
  width: 85px;
  height: 85px;
  background: transparent;
}

.hero-slider .flickity-prev-next-button .arrow {
  fill: #fff;
}

.hero-slider .flickity-page-dots {
  bottom: 30px;
}

.hero-slider .flickity-page-dots .dot {
  width: 40px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.hero-slider .flickity-page-dots .dot:hover,
.hero-slider .flickity-page-dots .dot.is-selected {
  background: #fff;
}

/* CARDS */
#card-title {
  text-align: center;
  margin: 20px;
  text-transform: uppercase;
  font-weight: 700;
}
.box-cards {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, 200px);
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  gap: 30px;
  background-color: transparent;
}
.box-cards .card {
  width: 100%;
  height: 330px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 20px;
  box-shadow: -4px 2px 15px 4px rgba(27, 27, 27, 0.726);
}
.box-cards .card img {
  width: 100%;
  height: 100px; /*DIMENSIONES RECOMENDADAS WIDTH: 150PX HEGITH: 100PX A LA HORA DE SUBIR LA IMAGEN*/
  border-radius: 20px;
}
.box-cards .card video {
  width: 100%;
  border-radius: 20px;
  max-height: 110px;
  object-fit: fill;
}
.box-cards .card .information {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
}

.box-cards .card .titulo {
  height: 80px;
  width: 100%;
  margin: 5px 0;
  padding: 5px 0;
  overflow: hidden;
}
.box-cards .card .titulo p {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}
.box-cards .card .card-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.box-cards .card a {
  text-decoration: none;
  border: none;
  padding: 10px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
  background-color: rgb(55, 134, 207);
  cursor: pointer;
  margin: 0 auto;
}
.box-cards .card a:hover {
  background-color: rgb(40, 92, 141);
}

hr {
  width: 100%;
}

.box-cards .card .tags-categorias {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.box-cards .card .tags-categorias span {
  background-color: #808080f7;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 10px;
  color: white;
  opacity: 0.5;
  margin: 0;
}

/**PAGINACION*/
.paginacion {
  display: block;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  align-content: center;
  text-align: center;
}

.paginacion a {
  margin-right: 5px;
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ccc;
  color: #333;
}

.paginacion a.pagina-actual {
  background-color: #007bff;
  color: #fff;
}

/**FOOTER*/

footer {
  width: 100%;
  height: 100%;
  background-color: #000;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

footer .footer-contact {
  display: flex;
  flex-direction: column;
  margin: 20px;
  color: #fff;
  justify-content: top;
  align-items: left;
}
footer .footer-contact ul li {
  list-style: none;
  margin-bottom: 10px;
}

footer .copyrigth {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .social {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin: 20px;
}
footer .social a {
  text-decoration: none;
  color: #fff;
  margin-bottom: 10px;
}

footer .bx {
  margin-right: 5px;
}

@media (max-width: 900px) {
  header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 10px;
  }

  #menu-icon {
    display: block;
    padding-left: 20px;
    justify-content: right;
    align-items: end;
    text-align: right;
  }
  .navbar {
    display: none;
    width: 100%;
  }

  .navbar a {
    display: block;
    padding: 7px 0;
    text-align: left;
  }
  .navbar.active {
    display: block;
  }
}

@media (max-width: 500px) {
  header .logo-container {
    width: 150px;
    height: 70px;
  }
  main {
    display: block;
  }

  .hero-slider {
    height: 200px;
  }
  .hero-slider .flickity-prev-next-button {
    width: 30px;
  }

  .hero-slider .carousel-cell .info-container .text {
    font-size: 12px;
  }
  .hero-slider .carousel-cell .info-container button {
    padding: 7px 10px;
  }

  .hero-slider .flickity-page-dots {
    bottom: 20px;
  }

  footer {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
    padding: 20px;
  }

  footer .copyrigth {
    grid-row: 3;
  }
  footer .social {
    align-items: start;
  }
}

.dropdown {
  position: relative;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  list-style: none;
}
.dropdown ul {
  display: none;
  position: absolute;
  background: #000;
  opacity: 0.85;
  padding: 0;
  z-index: 2;
  gap: 8px;
  padding: 8px 0;
}

.dropdown a:hover {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
}
.dropdown ul.mostrarMenu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-inline: 10px;
}

@media (max-width: 500px) {
  .dropdown ul {
    gap: 0;
    margin: 0;
  }
}
