*{
    scroll-behavior: smooth;
    box-sizing: border-box;
    text-decoration: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    font-family: "Montserrat", sans-serif;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background-color: #f5f5f5;
}

header nav a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.8rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    transition: 0.2s;
}

header nav a img{
    width: 1.8rem;
}

header nav a:hover{
    background-color: #c7c7c788;
}

.logo{
    width: 16rem;
}

#banner{
    position: relative;
    height: 80vh;
}

#imgSlider {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#txtSlider{
    position: absolute;
    top: 82%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 1px 1px 4px #00000099;
}

#txtSlider h2{
    color: #f5f5f5;
    font-size: 3rem;
}

#txtSlider p{
    color: #f5f5f5;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

#boton{
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
}

#boton:hover{
    background-color: #c7c7c7;
}

#imagenes{
    width: 100%;
    height: 78vh;
    background-image: url('../img/zapas.jpg');
    background-size: cover;    
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#imagenes h2{
    color: #f5f5f5;
    font-size: 3rem;
    text-shadow: 1px 1px 4px #00000099;
}

#imagenes p{
    color: #f5f5f5;
    font-size: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px #00000099;
}

#ingresos{
    padding: 3rem 0;
    justify-items: center;
}

#ingresos h1{
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 400;
}

#ingresos article{
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

.cartaProducto2{
    padding: 1rem;
    max-width: 18%;
    border-radius: 8px;
    background-color: whitesmoke;
    box-shadow: 0 2px 5px #0000003a;
    transition: transform 0.2s;
    width: 20rem;
}

.cartaProducto2:hover {
    transform: scale(1.03);
}

.cartaProducto2 a img{
    width: 100%;
    height: 28vh;
    object-fit: contain;
    border-radius: 8px;
}

.cartaProducto2 h2{
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
    height: 6rem;
    overflow: hidden;
}

.cartaProducto2 p{
    font-size: 1.5rem;
    font-weight: 500;
    color: #0e0e8d;
}

.verMas{
    margin-top: 3rem;
    padding: 1rem;
    width: 18rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background-color: #111111;
    color: white;
    transition: transform 0.2s;
    cursor: pointer;
}

.verMas:hover{
    transform: scale(1.03);
    background-color: #0e0e8d;
}

footer{
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #c7c7c788;
}

footer a{
    color: black;
    font-weight: 600;
    transition: 0.1s;
}

footer a:hover{
    color: #0e0e8d;
}

footer p{
    font-weight: 500;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/* CATALOGO */
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/

#nav{
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #c7c7c7;
    height: 4.5rem;
    color: #111111;
}

.buscarProducto{
    border: none;
    border-radius: 6px;
    width: 20rem;
    padding: 0.5rem;
}

#catalogo{
    display: flex;
}

#filtros{ 
    width: 22%;
    position: sticky;
    top: 4.5rem;
    height: 100vh;
    padding: 0 2rem;
    background-color: #111111;
}

#filtros div{
    margin-bottom: 3rem;
}

#filtros h2{
    color: whitesmoke;
    font-size: 2rem;
    font-weight: 600;
    padding: 2rem 0;
}

#filtros h3{
    color: white;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

#filtros select{
    padding: 0.5rem;
    width: 85%;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    appearance: none;
}

#filtros select:focus-visible{
    outline: none;
}

#productos{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 78%;
    padding: 2rem;
    margin: 0 auto;
}

#productos div {
    width: 100%;
}

.infoProducto h2{
    height: 4rem;
    font-size: 1rem;
    font-weight: 600;
}

.infoProducto h3{
    font-size: 1rem;
    font-weight: 400;
}

.infoProducto p{
    color: #0e0e8d;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.cartaProducto {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    background-color: whitesmoke;
    box-shadow: 0 2px 5px #0000003a;
    padding: 1rem;
    transition: transform 0.2s;
    max-height: 25rem;
}

.cartaProducto:hover {
    transform: scale(1.03);
}

.cartaProducto .imagen {
    width: 100%;
    height: 25vh;              
    object-fit: contain;           
    border-radius: 8px;
    margin-bottom: 1rem;
}

.infoProducto {
    width: 100%;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/* AMPLIACIÓN */
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/

#ampImagen{
    max-width: 60%;
}

.main{
    width: 100%;
}

.main img{
    width: 100%;
}

.miniaturas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
}

.miniaturas img{
    max-width: 15%;
    border-radius: 6px;
    opacity: 0.8;
}

.miniatura:hover{
    cursor: pointer;
    opacity: 1;
}

#ampProducto{
    display: flex;
    justify-content: start;
    gap: 3rem;
    max-width: 98%;
}

#ampProducto article:last-of-type{
    margin-top: 2rem;
}

#ampDatos h1{
    font-size: 1.5rem;
    font-weight: 600;
}

#ampDatos h2{
    font-size: 1.2rem;
    font-weight: 500;
}

#ampDatos h3{
    font-size: 1rem;
    font-weight: 400;
    margin: 1rem 0;
}

#ampDatos p{
    color: #0e0e8d;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.talles{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 80%;
}

.btTalles{
    width: 3rem;
    height: 3rem;
    border: 1px solid black;
    border-radius: 10px;
    background-color: whitesmoke;
    font-size: 0.8rem;
    font-weight: 500;
}

.btTalles:hover{
    background-color: #c7c7c788;
}

.btCompra{
    margin-top: 3rem;
    padding: 1rem 6rem;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background-color: #111111;
    color: white;
    transition: transform 0.2s;
    cursor: pointer;
}

.btCompra:hover{
    transform: scale(1.03);
    background-color: #0e0e8d;
}

.btBack{
    color: #111111;
    font-weight: 600;
    background-color: whitesmoke;
    border: 1px solid #111111;
    border-radius: 20%;
    padding: 1rem;
    margin-right: 1rem;
    cursor: pointer;
}

.btBack:hover{
    color: crimson;
    border-color: crimson;
}

#ampExtra h3{
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 400;
}

#ampExtra{
    padding: 3rem 0;
}

#ampExtra article{
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

#ampExtra article div{
    max-width: 20%;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/* COMPRA */
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/

#compraSneaker{
    background-color: #111111;
    color: whitesmoke;
    padding: 4rem 0;
    font-size: 1.2rem;
    text-align: center;
}

#formulario{
    padding: 3rem 0;
}

#formulario h2{
    margin: 3rem 0;
    text-align: center;
}

#form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    width: 70rem;
    margin: 0 auto;
}

#form div{
    margin: 0 auto;
}

#form div:last-of-type{
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

#form h3{
    font-size: 0.8rem;
    color: crimson;
    height: 3rem;
    margin-top: 0.5rem;
    transition: all 0.3s;
    width: 33rem;
}

#form h4{
    font-size: 0.8rem;
    font-weight: 400;
    color: #111111ea;
    margin-bottom: 3rem;
}

#inpForm{
    padding: 1rem;
    width: 33rem;
    border-radius: 8px;
    border: 1px solid #c7c7c7;
    background-color: whitesmoke;
}

.selectForm{
    appearance: none;
}

#boton2{
    padding: 1rem;
    background-color: #111111;
    color: whitesmoke;
    border-radius: 40px;
    width: 20rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s;
}

#boton2:not(:disabled):hover{
    transform: scale(1.03);
    background-color: #0e0e8d;
    color: white;
}

#boton2:disabled{
    cursor: not-allowed;
    opacity: 0.5;
}

#comprado{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#comprado.active{
    opacity: 1;
    visibility: visible;
}

.modal{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#comprado.active .modal{
    transform: scale(1);
}

.modal-text{
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h2{
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.modal-text p{
    color: #111111;
}

.discount-code{
    font-size: 32px;
    font-weight: bold;
    color: crimson;
    margin: 20px 0;
    padding: 10px;
    background-color: #f1faee;
    border: 2px dashed crimson;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.discount-code:hover{
    background-color: #c7c7c744;
}

.modal-image{
    flex: 1;
    background-image: url('');
    background-size: cover;
    background-position: center;
}

.close-btn{
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: crimson;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}