@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Playwrite+AU+NSW:wght@100..400&display=swap');

@font-face {
    font-family: 'mi-fuente-personalizada-h1';
    src: url('../fonts/longhaul/Longhaul.ttf')  format('truetype');
    font-weight: bold;
    
}

main h1{
    font-family: 'mi-fuente-personalizada-h1', sans-serif;
    font-size: 3.5rem;
    color: #565454;
    margin-bottom: 20px;
    text-shadow: 2px 8px 4px rgba(186, 9, 186, 0.3);
    
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "open Sans", sans-serif;
    background-color: #F8F9FA;
    color: #555;
    
}




header{
    /* border: 1px solid magenta; */
    background-color: #A0C4FF;
    color: #FFFFFF;
}

/* header > nav{
    background-color: aqua;
} */

header nav ul{
    /* border: 1px solid blue; */
   
    list-style: none;
    display: flex;
    justify-content: space-around;
    

}

/* header nav ul li{
    border: 1px solid red;
   
} */

header nav ul li a{
    text-decoration: none;
    color: wheat;
    /* border: 4px solid green; */
    
    height: 45px;
    display: block;
    background-color: #A0C4FF;
    color: white;
    transition: color 0.3s ease;
    margin: auto;
    text-align: center;
    line-height: 45px;
    border-radius: 18px;
}   

header nav ul li a:hover{
    background-color: #d66e96;
    color: #fff;
    width: 200%;
    box-shadow: 3px 5px 5px #a62556;
}
/* ------------------------------------- */
/* primer div */
header > div{
    background-color: #555;
    
    display: flex;
    
}

#logo{
    height: 57px;
    width: 10%;
    /* background-color: #FFAFCC; */
    background-image: linear-gradient(to right, #FFAFCC, #FFC3A0);
    color: #5376ae;
    font-weight: bold;  
    text-align: center;
    line-height: 54px;
    padding: 0 35px;
    display: flex;
   font-family: "Lobster";
   font-size: 42px;
}

#barra-busqueda{
    width: 95%;
    height: 54px;
    padding: 5px 10px;
    background-color: #84a59d;
    border-radius: 8px;
    text-align: center;
    line-height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#boton-carrito{
    background-color:  #d19f7c;
    color: white;
    width: 5%;
    height: 54px;
    text-align: center;
    line-height: 54px;
    border-radius: 75px;
    font-size: 20px;
    cursor: pointer;
}

#barra-busqueda form{
    /* border: 5px solid black; */
    text-align: center;
    width: 75%;
    
    height: 54px;
}

#barra-busqueda form label{
    
    width: 15%;
    height: 31px;
    line-height: 31px;
   margin-right: 2px;
   color: #6B705C;
   font-weight: bold;
}

#barra-busqueda form input[type="text"] {
    background-color: #FFF1E6;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 10px;
}

#barra-busqueda form input{
    background-color: #1d0868;
    width: 68%;
    height: 32px;
    margin-right: 2px;
    padding: 0 10px;
    
}

#barra-busqueda form input[type="submit"]{
     background-color:  #FFB4A2;
    width: 10%;
    height: 32px;
    color: #fff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#barra-busqueda form input[type="submit"]:hover {
  background-color: #E5989B;
}


/* main */
main{
    height: 550px;
    
}


/* footer */
footer{
    
    background-color: #84A59D;
    color: #FFF8F0;
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 22px;
}
p{
    margin: 5px 0;
    
}

.centrar{
    text-align: center;
}

.justificado{
    text-align: justify;
}

/* media query  */

@media (max-width: 875px) {
  /* Menú en columna */
  header nav ul {
    flex-direction: column;
    align-items: center;
  }

  header nav ul li {
    margin-bottom: 10px;
  }

  /* Header: logo, búsqueda, carrito uno debajo del otro */
  header > div {
    flex-direction: column;
    align-items: center;
  }

  #logo, #barra-busqueda, #boton-carrito {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Inputs de búsqueda en columna */
  #barra-busqueda form {
    flex-direction: column;
    width: 100%;
  }

  #barra-busqueda form label,
  #barra-busqueda form input,
  #barra-busqueda form input[type="submit"] {
    
    margin: 5px 0;
  }

  /* Cards: menos ancho */
  section {
    width: 90%;
  }
}

@media (max-width: 480px) {
  /* Menú con fuente más chica */
  header nav ul li a {
    width: auto;
    padding: 10px;
    font-size: 14px;
  }

  /* Cards ocupan todo el ancho */
  section {
    width: 100%;
  }
}
