* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     
}
html{
    scroll-behavior: smooth;     scroll-padding-top: 90px;
}
body{
    font-family: "Onest", sans-serif;
    background-color: #bfd4e4;
    line-height: 1.5;
    font-size: 1.1rem;
}
h2 { 
  font-size: 1.6rem;
  background-color: #2504a9;
  color: #fff;
  border-radius: 2rem;
 }
h3 {
   font-size: 1.3rem;
    background-color: #fddd3ecd;
  border-radius: 1rem;
  }

h2, h3 {
    font-family: 'Graduate', serif;
    margin-bottom: 0.5em;
    text-align: center;
    
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}



/*header y menu de navegacion mobile*/
header {
    background: #0e074a;
    color: #fff;
    text-align: center;
    padding: 1rem 1rem;
}
header h1 {
    font-size: 0;
    background-image: url(../imagenes/logo.png);
    background-position: center;
    background-size: contain;  
    background-repeat: no-repeat;
    height: 150px;            
    width: 100%;
    margin: 0 auto;            
}


#menu{
width: 100%;
}
    
#menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

#menu ul li a {
    font-family: 'Graduate', serif;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.636);
    width: 100%;
   color: #261277;
   background-color:rgb(131, 177, 237);
   text-decoration: none;
   font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem ;
    display: inline-block;

}

#menu ul li a:hover{
color: #e18f13; 
transition: all 0.5s ease;
background-color:rgb(253, 207, 137);
border-color:#805009;
text-shadow: 2px 2px 2px rgba(255, 234, 208, 0.764);
}






/*estilos secciones generales*/

section, footer{
    padding: 2rem 1rem;
}
section > div, article,footer {
  margin-bottom: 3rem;
}

article img {
  margin-bottom: 1rem;
}

/*img intro*/
.portada img{
  border-radius: 2rem;

  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.texto-intro {
  padding: 2rem;
  background-color: #ffda6258;
  border-radius: 2%;
  
}

.imagen-historia img{
  border-radius: 1rem;
  margin: 1rem auto;
  display: block;
  max-width: 90%;   /* no ocupa todo en mobile */
  height: auto;
}

.texto-historia {
  padding: 1rem;
  text-align: justify;
  background-color: #ffca1b3f;
  border-radius: 2%;
}

/*personajes*/
.tarjetas-personajes article{
border: #0e074ab4 solid 0.2rem;
background-color: #f9fcff6f;
padding: 1rem;
border-radius: 1rem;
}

.btn-ver{
  font-family: 'Graduate', serif;
  font-size: 1rem;
  color: #10056a;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver:hover{
 color: #e18f13;
 
   transform: scale(1.02);
  transition: all 0.3s ease;
}

#personajes img{
  border-radius: 1rem;
  border: #f9f4ce solid 0.2rem;

}



/*ep destacados*/
.episodios-destacados article{
border: #0e074ab4 solid 0.2rem;
padding: 2rem;
}
.textos-ep{
  padding: 1rem;
  text-align: center;
  background-color: #ffca1b3f;
  border-radius: 2%;
}



/*clips*/
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.texto-clips {
  text-align: center;
  padding: 1rem;
}
#clips figcaption {
  background-color: #fff1c248;
  border-radius: 1rem;
  margin: 0.5rem;
  padding: 0.5rem;
}



/*formulario*/
form {
    text-align: center;
max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: 'Graduate', serif;
  margin: 0 auto;
}

::placeholder {
  color: #ffffffa9;
  font-style: italic;}

label {
  font-weight: bold;
    color: #261277;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  color: #ffffff;
  font-family: 'Graduate', serif;
  background-color: #121477b3;
  border: 1px solid #ffffff;
  border-radius: 5px;
  transition: all 0.5s ease;
}
input[type="submit"]:hover {
transition: all 0.5s ease;
  background-color: #e18f13;
  box-shadow: 0 0 5px rgba(225, 143, 19, 0.5);
}


/*footer*/
#misDatos {
  background-color: #ffac2f;
  display: flex;
  flex-direction: column; 
  align-items: center;

 
}
#misDatos img {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 4px solid #ffffff;
}

#misDatos ul {
  font-size: 1rem;
  list-style: none;
  text-align: center;
 
}






/*TABLET*/

  @media (min-width: 600px) {
  #menu {
   width: 80%;
   margin: auto;
  }

  #menu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;  
  justify-content: center;
  gap: 0.6rem;
 
  }
#menu ul li {
      width: 45%;
     max-width: 400px;
   
    justify-content: center;
}
  

  #menu ul li a {
     width: 100%; 
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
  }
  



section, footer{
    padding: 4rem;
}
section > div, article,footer {
  margin-bottom: 4rem;
}

article img {
  margin-bottom: 1rem;
}

img {
  max-width: 85%;
  height: auto;
  display: block;
}
.btn-ver{
text-align: center;
}

.imagen-historia{
  max-width: 80%;
}

  }







/*PC*/

@media screen and (min-width: 1024px) {
  
  
  header {
 padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #96b5ff82;
  }

  #menu ul {
    display: flex;     
    flex-direction: row;      
    flex-wrap: nowrap;       
    justify-content: center; 
    gap: 1.2rem;
  }

  #menu ul li {
    width: 100%;      
  }

  #menu ul li a {
    width: auto; 
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
    border-radius: 0.6rem;
   
  }

.texto-intro {
  width: 60%;
  margin: auto;
 
}



.tarjetas-personajes {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.tarjetas-personajes article {
  width: 30%;
  min-width: 250px; 
  
}
.portada img{
  max-width: 40%;
  margin: auto;
}
.imagen-historia{
  max-width: 30%;
}




/*ep destac*/
.episodios{
  display: flex;
  justify-content: center;
}
.episodios img{
  max-width: 60%;


}
.episodios-destacados {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}

.episodios-destacados article {
  width: 45%;
 
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s;
}


/*clips*/
.texto-clips{
  width: 60%;
  margin: auto;
 
}

  .tarjetas-clips {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
   
  }

  .clip {
    width: 45%;          
    border-radius: 1rem;
    padding: 1rem;
     background-color: #fdd8836f;
  }

  .texto-clip {
    text-align: center;
    margin-top: 0.5rem;
  }

/*formulario*/
.texto-formulario {
width: 60%;
margin: auto;

}
  #formulario form {
    max-width: 600px;  
    padding: 2rem;
    background: #fff9e030;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  #formulario input,
  #formulario textarea {
    font-size: 1rem;
    border-radius: 0.5rem;
  }

  #formulario input[type="submit"] {
    background: #261277;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
  }

  #formulario input[type="submit"]:hover {
    background: #e18f13;
  }



}


