*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   font-family: 'Montserrat', sans-serif;
 }


:root {
  --more-color: #ffffff4d;  
  --shadow-color:#f8f8f8ad;
  --main-bg-color: #181419;
  --main-h1h2-color: #FFF;
  --h3-color:#FFF;
   --nav-color:#9f3647;
   --btn-hover:#bd0927;
  --dark-mode-color: #181419;
  --a-font-color: #FFF;
 }


@keyframes tilt-n-move-shaking {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, 5px) rotate(5deg); }
    50% { transform: translate(0, 0) rotate(0eg); }
    75% { transform: translate(-5px, 5px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}


body{
  background-color:var(--main-bg-color);
  color:var(--h3-color);   
    
}

.title {
  color: var(--main-h1h2-color);
  font-weight: 200;
  text-align: center;
}

h1{
    font-size: 2.8rem;
    margin: 0 0 1% 13%;
    font-weight: 700;
    }

h2 {
    font-size: 2rem;
    font-weight: 200;
}  

h3 {
 font-size: 1.4rem;
 font-weight: light;
}

h4 {
 font-size: 1rem;
 font-weight: light;
}	

p {
  line-height: 2;
  color:var(--h3-color);
  font-size: medium;
  font-weight: lighter;
}

a {
  color: var(--h3-color);
  font-weight: lighter;
  margin: 10px 20px;
  text-decoration: none;
}

a:hover {
  color: var(--a-font-color);
  font-weight: bold;
}

.header{
    background-color:var(--nav-color);
    height: 10vh;
    position:sticky;
    top: 0;
    z-index:4;
    }

.box {
      background-color: transparent;
      padding-top: 1%;
      animation-duration: 3s;
      animation-delay: 2s;
    }


.header-nav{
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-left:40px;
 margin-right: 40px;
  }

.Logo{
 text-decoration: none;
 font-weight: 700;
 font-size: 1.2rem;
 }

.Logo:hover{
  animation: tilt-n-move-shaking 0.25s infinite;
  }
 
.nav-list{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  }

.listItem{
   margin-right:20px;
  }

.nav-link{
    text-decoration: none;
    color: #ffffff;
    font-weight: 300;
    font-size: 1.1rem;
    padding: 0;
    margin-bottom: 3%;
    /* Agregar efecto de botón presionado */
    transition: transform 0.3s, box-shadow 0.3s;  
 }

.nav-link:hover {
   transform: scale(0.95);
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
   border-radius: 5px;
}

.iniciarSesion{
   background-color: #181419;
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 5px;
   /* Agregar efecto de botón presionado */
   transition: transform 0.3s, box-shadow 0.3s;
}
 .iniciarSesion:hover {
   background-color: #fff;
   color:#000;
   transform: scale(1.05);
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }


#top-container {
background-image: url(../images/bannerIA.jpeg);
background-repeat: no-repeat;
background-size: 100vw 100vh;
background-position: center;
height: 100vh;
display: flex;
flex-direction: column;
justify-content:flex-start;
vertical-align: text-top;
text-align: center;
animation-duration: 3s;
z-index: -1;
}


/*========================================================*/

/*ESTILOS PARA HEADER MOBILE Y TABLET*/

@media (max-width: 768px) {
.header{
   height: initial;
    }
    
.header-nav{
  margin-left:10px;
  margin-right: 10px;
  flex-direction: column;
  row-gap: 20px;
}

 .Logo{
    font-size: 1.2rem;
    font-weight:700;
  }
   
.nav-list{
   padding:initial;
  }    

.nav-link{
    font-weight: 400;
    margin-right: initial;
    font-size: 1rem;
    padding: 0.2rem;
   }   
}
/*===================================*/
/* BOTONES */

.btn-div{
    position: relative;
    margin: 1.5rem 0 4rem 75% ;
    display: block;    
    height: 4rem ;
}

.btn{
  background-color:var(--nav-color);
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  height: 2.5rem;
  width: 35%; 
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: var(--btn-hover);
  transition: transform 0.3s, scale(0.95);
  box-shadow: 0 0 30px var(--shadow-color);
   }

.btnPagina { 
  padding: 1rem 2rem;
   }


.btnBuscar{
 background-color:var(--nav-color);
 display: inline-block;
 color:#ffffff;
 height: 50px;
 width: 15%;
 margin: 20px 10px;
 padding:0 20px;
 border-radius: 25px;
 font-size: 1.2rem;
 font-weight: 700;
 border: 2px solid white;
 text-align: center;
 /* Agregar efecto de botón presionado */
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-Login { 
    display:inline-block;
    position: relative;
    padding: 0.4% 1% 0.2% 1%;
    margin: 5% 7%;        
}


/*===================================*/

/* MAIN ESCRITORIO*/

hr {
  margin-bottom: 5rem;
}

.main-title {
  margin-top: 8%;
}

.subtitle  {
    margin: 7% auto 3%;
}

/*======= BUSCADOR ========*/

.buscar{
   background-color: #181419;
   color:var(--h3-color);
   height: 50vh;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
    }    
  
.buscaPeli{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-left: 10%;
   width: 85%;
  }


.input {
 border: 2px solid white;
 border-radius: 25px;
 color: #000000;
 font-size: 1.5rem;
 height: 50px;
 margin: 20px 10px;
 outline: none;
 padding: 0px 20px;
 width: 60%;
 position: relative;
 display:inline-block;
}

/*======= TENDENCIAS =======*/

.section-title{
  font-size: 2.5rem;
  font-weight: 100;
  margin: 1rem auto;

   }
#pelis{
  margin: 0 auto;
  width:86%;
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 95%;
  margin-top: 5%;
  margin-left: 5%;
  background-color: var(--dark-mode-color);
  position: relative;
}

.peli-card {
  height: 25rem;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  border-style: solid;
  border-width: 2px;
  border-color: lightgray;
  border-radius: 10px;
  margin: 2%;
  padding: 1%;   
}

.peli-card:hover {
  transform: scale(1.04);
  border-width: 3px; 
  box-shadow: 5px 10px #888888;
  transition: 0.6s;
}

#btnPaginas{
  width:33%;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  margin-top: 1.5rem ;
  margin-left: 36.5%;
}    

#paginar{
  padding-left: 27%;
}

/*======= ACLAMADAS =======*/

.section-title{
position: relative; 
display: block;
margin: 3% auto;
}

#aclamadas-main {
  width: 85%;
  flex-direction: row;
  display:flex;
  margin: 3% auto;
  overflow-x: auto;
  min-height: 30rem;
}

.card-img {
  height: 80%;
  margin: 3% auto ;
}
.peli-img {
  width: 90%;
  border-radius: 10px;
}

.card-title {
  height: 4rem;
  margin-top:1rem ;
  font-weight: 300;
  font-size: medium;
  z-index: 4 !important;
  }

.card-title :hover {
  font-weight: 500;
}

/*======= DETALLE =======*/

#peli-detalle {
  width: 99%;
  margin:0;
  padding: 0;
}

#detalle-img {
  display: flex;
  width:25%;
  margin: 2rem;
  border-radius: 10px;
}

.peli-info {
  display: flex;
  flex-direction: column;
  width:65%;
  margin: 0.5%;
  background-color: var(--dark-mode-color);
   
}

#detalle-titulo{
  display: flex;
  margin-top: 2rem;
  
}

.peli-descripcion {
  margin-top: 2rem;
  color: var(--h3-color);
}


/* ======= REGISTER / LOGIN ======= */

*{
margin: 0;
padding: 0;
font-family: 'Montserrat' sans-serif;
}


#register-body{
  background-image: url(../images/bg-register.jpg) ;
  background-size:auto;
  background-repeat: repeat;
  background-position: center;
}

.another-box {
    background-color: transparent;
}

#registro , #login{
  width: 40%;
  margin: 9% auto;
  background-color: #000000;
  padding-top: 1%;
}

.container-registro, .botones-registro {
    width: 90%;
    margin: 3% auto;
}

#login_btn {
margin: 5% 32.5%;
}


/* ================= ALERT ==================== */
.alerta {
    display: none;
    width: 33%;
    padding: 0.5% ;
    background-color: #fffff0;
    border: var(--nav-color) solid 3px;
    border-radius: 5px;
    color: var(--main-bg-color);
    opacity: 1;
    z-index: 10;
    transition: opacity 0.6s;
    position: fixed;
    top:17%; 
    left: 33.5%;
    text-align: center;
  }

  .alert-font{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500 !important;
    color: var(--main-bg-color);
  }

#loginOK, #registroOK{ 
    padding: 1% ;
    padding-top: 0.7;
    border:  #97c83e solid 2px;
   
}
  .alerta h3, h2{ 
    font-weight: 300;
  }

 .mensaje {
    margin: 1.5% auto;
 }

.closebtn {
    background-color: #FFA1A1;
    border-radius: 50px;
    color: #FFF;
    cursor: pointer;
    float: right;
    font-size: 25px;
    font-weight: bolder;
    height: 25px;
    margin-left: 15px;
    padding-bottom: 8.5%;
    width: 28px;   
  }
  
  .closebtn:hover {
    transform: scale(1.4);
    transition: 0.3s;
  }




