/* Estilos Universales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}
main{
    width: 100%;
    max-width: 1300px;
    margin: auto;
}
@font-face {
    font-family: 'Bliss Pro';
    src: url('../blisspro_heavy.woff');
}
/* Header */

header {
    width: 100%;
    height: 300px;
    background: #9a080f;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #9a080f, #811b047a), url(../img/portada.webp);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #9a080f, #811b044e), url(../img/portada.webp);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    top: 0;
    overflow-x: hidden;
}
header .logo-head {
    width: 250px;
    padding-left: 30px;
}
header .header-flex{
    padding: 12px 8px ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav{
    text-align: right;
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav > a{
    color:#fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px;
}
nav > a:hover{
    text-decoration: underline;
}
header .back-button{
    display: block;
    text-decoration: none;
    position: relative;
    color: #fff;
    position: absolute;
    left: 30px;
}
header .cart-button{
    display: block;
    text-decoration: none;
    height: 48px;
    width: 48px;
    padding: 6px;
    border-radius: 999999px;
    position: relative;
    color: #fff;
    position: fixed;
    top: 16px;
    left: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* animaciones del scroll */
    animation: cart-button-scroll linear both;
    animation-timeline: scroll();
    animation-range: 0 200px;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}
.cart-button svg{
    width: 90%;
}
.cart-counter{
    position: absolute;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    aspect-ratio: 1;
    width: 16px;
    height: 16px;
    padding: 1px;
    text-align: center;
    background-color: #9a080f;
    border-radius: 9999999px;
    right: 0;
    top: 0;
    /* animaciones del scroll */
    animation: cart-counter-scroll linear both;
    animation-timeline: scroll();
    animation-range: 0 200px;
}
header .textos-header{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 48px;
    color:#fff;
    margin-top: 20px;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}
.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}


/* Footer */

footer{
    margin: auto;
    margin-top: 40px;
    background-color: #181816;
    padding: 60px 0 30px 0;
    overflow: hidden;
}

.contenedor-footer{
    padding-top: 60px;
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #9a080f;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}
.titulo-final > a{
    text-decoration: none;
    color: inherit;
}
.titulo-final > a:hover{
    color: #5E17EB;
}
/* Boton de WhatsApp */

.whatsapp-button{
    position: fixed;
    bottom: 40px;
    right: 40px;
    opacity: 0;
    transition: opacity .5s;
 
    a{
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       aspect-ratio: 1;
       height: 128px;
       padding: 8px;
       text-decoration: none;
       color: #fff;
 
       svg{
          margin: auto;
          width: 100%;
       }
    }
 }
 .whatsapp-button:hover{
    transform: scale(1.05);
    filter: saturate(1.5);
 }
.login-button{
    margin-left: 100px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

@media screen and (max-width:900px){
    header{
        background-position: center;
        height: 340px;
    }
}
@media screen and (max-width: 750px){
    /* Nav Responsive */
    .whatsapp-button{
        bottom: 14px;
        right: 14px;
    }
    .textos-header h1{
        font-size: 35px;
        margin-top: 60px;
    }
    header .logo-head{
        width: 200px;
    }
    nav {
        position: absolute;
        top: 70px;
        width: 100%;
        justify-content: center;
    }
    nav > a{
        font-size: 20px;
    }
    .cart-button{
        left: 4px !important;
        top: 12px !important;
    }
    .login-button{
        margin-left: 50px;
     }
}
@media screen and (max-width:500px){
    

    .textos-header h2{
        font-size: 20px;
    }
    .wave {
        position: absolute;
        bottom: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        height: auto; 
        aspect-ratio: 50/15; /* Relación del viewBox (500x150) */
    }
    
    .wave svg {
        width: 100%;
        height: 100%;
        position: absolute;
        bottom: -10px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }
    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }
    .content-foo h4{
        border: none;
    }
    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }
    .titulo-final{
        font-size: 20px;
    }
}
@keyframes cart-button-scroll{
    0%{
        background-color: transparent;
    }
    100%{
        background-color: #d1161c;
    }
}
@keyframes cart-counter-scroll{
    0%{
        background-color: #9a080f;
    }
    100%{
        background-color: #d1161c;
    }
}