@import url(https://fonts.googleapis.com/css?family=Montserrat:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

:root {
  --fondo: #202020;
  --principal: #FC295C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html {
  /* overflow-x: hidden; */
  scroll-behavior: smooth;
}

body {
  background-color: var(--fondo);
}

nav {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex; 
  justify-content: space-between;
  padding: 0px 30px;
  padding-top: 25px;
  z-index: 999;
}

nav > #logo-pc > img,
#logo-mobile > img {
  width: 150px;
}

#logo-mobile {
  display: none;
}

nav #container-nav-list-buscar {
  display: flex; 
  align-items: center;
  gap: 20px;
}

#nav-list-mobile,
#btn-abrir-menu,
#btn-cerrar-menu {
  display: none;
}

nav #nav-list {
  justify-self: center;
  display: flex; 
  flex-direction: row;
  list-style: none;
  gap: 15px;
}

nav #nav-list-mobile li,
nav #nav-list li {
  color: white;
  font-size: 16px;
  cursor: pointer;
}

nav #nav-list-mobile li a,
nav #nav-list li a {
  padding: 5px 10px;
  display: block;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
  transition: .3s all ease-out;
}

nav #nav-list-mobile li:hover a,
nav #nav-list li:hover a {
  color: var(--principal);
  opacity: .5;
}

nav #nav-list-mobile li.active a,
nav #nav-list li.active a {
  color: var(--principal);
}

/* 
------------
Busqueda
------------ 
*/


#container-buscar {
  position: relative;
}

#container-buscar > img {
  position: absolute;
  width: 18px;
  top: 3px;
  left: 4px;
}

#container-buscar #input-buscar {
  border: 0;
  outline: 0;
  border-bottom: 1px solid white;
  background-color: transparent;
  padding: 5px 10px 10px 30px;
  color: white;
  transition: .3s border ease-out;
}

#container-buscar #input-buscar:focus {
  border-bottom: 1px solid var(--principal);
}

#listaBusqueda {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  width: 100%;
  height: fit-content;
  background-color: var(--fondo);
  padding: 10px 0;
  box-shadow: 0 0 8px 0px rgba(128, 128, 128, 0.2);
  border-radius: 0 0 5px 5px;
}

#listaBusqueda > li {
  cursor: pointer;
  position: relative;
  padding: 5px 10px;
}

#listaBusqueda > li:hover {
  filter: brightness(130%);
  background-color: var(--principal);
}

#listaBusqueda > li > button {
  color: white;
  width: 100%;
  text-align: left;
  border: 0;
  outline: 0;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#blur-input-div {
  width: 100%;
}

#containerListaBusqueda {
  position: relative;
  top: 180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 80vw;
  padding: 0 20px;
  place-items: center;
  margin: auto;
  padding-bottom: 40px;
  color: white;
}

#filtros-list {
  position: absolute;
  top: -80px;
  left: 0;
  /* bottom: 0; */
  right: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
}

#filtros-list > li > button {
  font-size: 15px;
  font-weight: bold;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: .3s all ease-out;
  background-color: transparent;
  border: 2px solid var(--principal);
  color: white;
  width: 117px;
}

#filtros-list > li > button:hover {
  background-color: var(--principal);
  border: none;
  color: white;
  box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.479);
}

.pelicula-resultados > img {
  cursor: pointer;
  border-radius: 10px;
  width: 250px;
  height: 350px;
  object-fit: cover;
}

.pelicula-resultados > span {
  display: block;
  overflow-x: hidden;
  width: 220px;
  white-space: nowrap;
  text-overflow: ellipsis;
}



/* 
------------
Banners
------------ 
*/


#container-banners {
  position: relative;
  top: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: fit-content;
  padding: 40px 20px 80px 20px;
  gap: 40px;
}

#container-banners:after {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 110%;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.69) 0%, #A5596B 100%); */
  /* background: linear-gradient(180deg, #FC295C 20%, rgba(0, 0, 0, 0.69) 40.60%); */
  background: linear-gradient(180deg, rgba(252, 41, 92, 0.20) 25%, rgba(0, 0, 0, 0.69) 62.73%);
  opacity: .4;
  z-index: -1;
}

#container-banners > #container-imgs-banners > img {
  border-radius: 25px;
  width: 400px;
  height: 450px;
  object-fit: cover;
}

#container-info-banners {  
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: fit-content;
  color: white;
}

#container-info-banners > ul {  
  list-style: none;
  display: flex;
  gap: 10px;
  width: fit-content;
  color: white;
}

#container-info-banners > ul:nth-child(3) {  
  color: white;
  gap: 15px;
}

#container-info-banners > ul > li {  
  display: flex;
  gap: 8px;
  align-items: center;
}

#container-info-banners > h1 {  
  font-size: 50px;
  width: 520px;
}

#container-info-banners > p,  
#container-info-banners > ul > li {  
  /* width: fit-content; */
  font-size: 16px;
}

#container-info-banners > p {  
  width: 520px;
}

#container-btn {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

#container-btn > button:not(:last-child) {
  font-size: 16px;
  font-weight: bold;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  transition: .3s all ease-out;
}

#container-btn > button:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 172px;
  background-color: var(--principal);
  border: 2px solid transparent;
  color: white;
}

#container-btn > button:nth-child(2) {
  background-color: transparent;
  border: 2px solid var(--principal);
  color: white;
  width: 117px;
}

#container-btn > button:last-child {
  background-color: transparent;
  border: none;
  outline: none;
  margin-left: 10px;
  cursor: pointer;
  transition: .3s all ease-out;
}

#container-btn > button:last-child:hover {
  filter:drop-shadow(0px 15px 4px var(--principal));
  transform: translateY(-5px);
}

#container-btn > button:first-child:hover {
  background-color: transparent;
  border: 2px solid var(--principal);
  box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.479);
}

#container-btn > button:nth-child(2):hover {
  background-color: var(--principal);
  border: none;
  color: white;
  box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.479);
}



/* 
------------
Secciones home
------------ 
*/

.secciones-home {
  display: flex;
  flex-direction: column;
  margin: 0px 40px;
  margin-top: 100px;
  gap: 20px;
  overflow-x: hidden;
}

.secciones-home > div > div > h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: white;
}

.secciones-home > div > div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 40px;
  padding-bottom: 60px;
}

.secciones-home > div > div:nth-child(2) img {
  border-radius: 10px;
  width: 250px;
  height: fit-content;
  object-fit: contain;
}

.card-pelicula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: white;
  cursor: pointer;
}

.card-pelicula span {
  overflow-x: hidden;
  width: 220px;
  white-space: nowrap;
  text-overflow: ellipsis;
}



/* 
------------
Media Query
------------ 
*/

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

  nav #container-nav-list-buscar {
    justify-content: space-between;
    width: 100%;
    align-items: start;
  }

  nav #nav-list {
    display: none;
  }

  nav #nav-list-mobile {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: black;
    list-style: none;
    width: 200px;
    height: 100vh;
    padding: 150px 20px 20px 20px;
    gap: 50px;
  }

  #nav-list-mobile li a {
    font-size: 18px;
  }

  #logo-pc {
    display: none;
  }

  #logo-mobile {
    display: block;
    position: fixed;
    top: 90px;
    left: 32px;
    z-index: 999;
    /* display: none; */
  }

  #logo-mobile > img {
    width: 130px;
  }

  #btn-abrir-menu,
  #btn-cerrar-menu {
    display: block;
    background-color: transparent;
    border: 0;
    outline: 0;
  }

  #btn-cerrar-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 999;
  }

  #container-btn > button:last-child:hover {
    filter: none;
    transform: translateY(0px);
  }
}


@media only screen and (max-width: 768px) {
  #container-info-banners {  
    margin: 0 20px;
  }

  #container-info-banners > h1 {  
    font-size: 45px;
    width: fit-content;
  }

  #container-info-banners > p {  
    width: auto;
    max-width: 500px;
  }
}

@media only screen and (max-width: 619px) {
  
  #peliculas {
    margin-top: 140px;
  }

  .secciones-home > div > div > h2 {
    text-align: center;
  }

  .secciones-home > div > div:nth-child(2) {
    justify-content: center !important;
  }
}

@media only screen and (max-width: 440px) {
 
  #container-btn {
    flex-direction: column;
    gap: 20px;
  }

  #container-btn button {
    min-width: 100%;
  }

  #container-btn button:last-child {
    margin: 0;
  }

  #container-banners > #container-imgs-banners > img {
    width: 100%;
    height: auto;
  }
  
  .secciones-home > div > div > h2 {
    font-size: 30px;
  }

  .secciones-home > div > div:nth-child(2) img {
    width: 80%;
    height: auto;
  }

}

/* faqs */
.faq-container {
  margin-top: 90px;
  color: white;
  padding: 30px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 100px auto;
}

.faq {
  margin-bottom: 50px;
}

.titulo-faq {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.respuesta-faq {
  font-size: 16px;
  margin-bottom: 10px;
}

.titulo-p-faq {
  font-size: 24px;
  font-weight: 700;
  color: var(--principal);
  text-align: center;
}

.texto-p-faq {
  text-align: center;
  margin: 30px auto 80px auto;
  max-width: 70%;
}


footer {
  background-color: #202020;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.logo img {
  width: 100px;
}

.texto-footer {
  margin-top: 10px;
}


/* proximamente */

#mensaje {
  display: none;
  text-align: center;
  font-size: 24px;
  color: white;
  background-color: var(--principal);
  width: 100vw;
  height: 50px;
  line-height: 50px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-name: desaparecer;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

#verAhora:focus + #mensaje {
  display: block;
  animation-delay: 2s;
}

@keyframes desaparecer {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
  
}