@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --main-color:#bb2929;
    --black:#13131a;
    --bg:#010103;
    --border:.1rem solid rgba(255,255,255,.3);
}

*{
  font-family: "Roboto", sans-serif;
  margin: 0; padding: 0;
  box-sizing: border-box;
  outline: none; border: none;
  text-transform: capitalize;
  transition: .2s linear;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar{
    width: .8rem;
}
html::-webkit-scrollbar-track{
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background: #fff;
    border-radius: 5rem;
}
body{
    background: var(--bg);
}

section{
    padding: 2rem 7%;
}

.heading{
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    padding-bottom: 3.5rem;
    font-size: 4rem;
}
.heading span{
    color: var(--main-color);
    text-transform: uppercase;
}

.btn{
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    z-index: -1;
    border-radius: 10px;
    animation: borderAnimation 6s linear infinite;
}

.btn:hover {
    color: #ffffff;
    background-color: #6860609f;
}




.navbar a {
    padding: 10px 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color 0.4s;
    z-index: 1;
}
.navbar a::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: #fcfcfc00;
    background-size: 300%;
    z-index: -1;
    border-radius: 5px;
    transition: all 0.4s;
    animation: borderAnimation 6s linear infinite;
}

.navbar a:hover {
    color: #333;
}

.navbar a:hover::before {
    filter: blur(2px);
    animation-duration: 5s; /* Acelera la animación en hover */
}

.header{
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 7%;
    border-bottom: var(--border);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
.header .logo img{
    height: 6rem;
}
.header .navbar a{
    margin: 0 1rem;
    font-size: 1.6rem;
    color: #fff;
}
.header .navbar a:hover{
    color: var(--main-color);
    border-bottom: .1rem solid var(--main-color);
    padding-bottom: .5rem;
}
.header .icons div{
    color: #fff;
    cursor: pointer;
    font-size: 2.5rem;
    margin-left: 2rem;
}
.header .icons div:hover{
    color: var(--main-color);
}
#menu-btn{
    display:none;
}
.header .search-form{
    position: absolute;
    top: 115%; right: 7%;
    background: #fff;
    width: 50rem;
    height: 5rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
}

.header .search-form.active{
    transform: scaleY(1);
}

.header .search-form input{
    height: 100%;
    width: 100%;
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem;
    text-transform: none;
}
.header .search-form label{
    cursor: pointer;
    font-size: 2.5rem;
    margin-right: 1.5rem;
    color: var(--black);
}
.header .search-form label:hover{
    color: var(--main-color);
}
.header .cart-items-container{
    position: absolute;
    top: 100%; right: -100%;
    height: calc(100vh - 9.5rem);
    width: 35rem;
    background: #fff;
    padding:0 1.5rem;
}

.header .cart-items-container.active{
    right: 0;
}

.header .cart-items-container .cart-item{
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header .cart-items-container .cart-item .fa-times{
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
}
.header .cart-items-container .cart-item .fa-times:hover{
    color: var(--main-color);
}
.header .cart-items-container .cart-item img{
    height: 7rem;
}
.header .cart-items-container .cart-item .content h3{
    font-size: 2rem;
    color: var(--black);
    padding-bottom: .5rem;
}
.header .cart-items-container .cart-item .content .price{
    font-size: 1.5rem;
    color: var(--main-color);
}
.header .cart-items-container .btn{
    width: 100%;
    text-align: center;
}


.home{
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(header.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.home .content{
    max-width: 60rem;
}
.home .content h3{
    font-size: 6rem;
    text-transform: uppercase;
    color: #fff;
}

.home .content p{
    font-size: 2rem;
    font-weight: lighter;
    line-height: 1.8;
    padding: 1rem 0;
    color: #eee;
}


/* media queries */
@media (max-width:991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 1.5rem 2rem;
    }
    
    section{
        padding: 2rem 7%;
    }
}

@media (max-width:768px){
    #menu-btn{
        display: inline-block;
    }

    .header .navbar{
        position: absolute;
        top: 100%; right: -100%;
        background: #000000da;
        width: 30rem;
        height: calc(100vh - 9.5rem);
    }
    
    .header .navbar.active{
        right:0;
    }

    .header .navbar a{
        color: white;
        display: block;
        margin: 1.5rem;
        padding: .5rem;
        font-size: 2rem;
    }
    .header .search-form{
        width: 90%;
        right: 2rem;
    }

    .home{
        background-position: left;
        justify-content: center;
        text-align: center; 
    }
    .home .content h3{
        font-size: 4.5rem;
    }
    .home .content p{
        font-size: 1.5rem;
    }
}


@media (max-width: 768px) {
    .menu .box-container {
        grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    }
}

@media (max-width: 450px) {
    .menu .box-container {
        grid-template-columns: 1fr;
    }
}

/* Aqui se acaba el header y empieza ahora si el section nmms ya llevo un chingo de horas alv */
.about .row{
    display: flex;
    align-items: center;
    background: var(--black);
    flex-wrap: wrap;
}
.about .row .image{
    flex: 1 1 45rem;
}
.about .row .image img{
    width: 100%;
}
.about .row .content{
    flex: 1 1 45rem;
    padding: 2rem;
}
.about .row .content h3{
    font-size: 3rem;
    color: #fff;
}
.about .row .content p{
    font-size: 1.6rem;
    color: #ccc;
    padding: 1rem;
    line-height: 1.8;
}
/* Container del menu ou yeah */
.menu .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap:1.5rem;
}
.menu .box-container .box{
    padding:5rem;
    text-align: center;
    border: var(--border);
}
.menu .box-container .box img{
    height: 30rem;
}
.menu .box-container .box h3{
    color: #fff;
    font-size: 2rem;
    padding: 1rem 0;
}
.menu .box-container .box .price{
    color: #fff;
    font-size: 2.5rem;
    padding: .5rem 0;
}
.menu .box-container .box .price span{
    font-size: 1.5rem;
    text-decoration: line-through;
}                  
.menu .box-container .box:hover{
    background: #969696;
}
.menu .box-container .box:hover > *{
    color: var(--black);
}  

button, .btn, .navbar a {
    padding: 10px 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color 0.4s, transform 0.4s;
    z-index: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* productos****** */
.products .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap:1.5rem;
}
.products .box-container .box{
    text-align: center;
    border: var(--border);
    padding: 2rem;
}
.products .box-container .box .icons a{
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    font-size: 2rem;
    border: var(--border);
    color: #fff;
    margin: .3rem;
}
.products .box-container .box .icons a{
    background: var(--main-color);
}

/* SLIDER DE ABAJO  */

.wrapper{
    max-width: auto;
    padding: 20px 10px;
    margin: 0 60px 35px;
    overflow: hidden;
    
}

.wrapper .card{

    height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(201, 201, 201, 0.288); 
    transition: transform 0.3s ease;
    
}

.card-image img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease-in-out;
}


/* Imagen que se muestra normalmente */
.card-image .img-normal {
    position: absolute;
    top: 0;
    left: 2;
    opacity: 1;
}
/* Imagen que aparece al hacer hover */
.card-image .img-hover {
    top: 0;
    left: 0;
    opacity: 0;
}

/* Al pasar el mouse: desaparece la normal y aparece la hover */
.card-image:hover .img-normal {
    opacity: 0;
}


.card-image:hover .img-hover {
    opacity: 1;
}

.wrapper .card:hover {
    transform: translateY(-10px);
}
.card .card-image img{
    width: 100%;
    border-radius: 22px;
    padding: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card .card-image{
    position: relative;
    background-color: #5250508c;
    border-radius: 25px;
}
.card .card-image .card-tag{
    position: absolute;
    left: 25px;
    top: 25px;
    color: #9e0606;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.9);
}
.card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 25px 25px;
}
.card .card-content .card-title{
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}
.card .card-content .card-text{
    color: #dfdfdf;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.card .card-content .card-footer{
    display: flex;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.card .card-footer .card-profile{
    display: flex;
    align-items: center;
}
.card .card-profile img{
    width: 35px;
    height: 35px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card .card-profile .card-profile-info{
    display: flex;
    flex-direction: column;
}
.card .card-profile .card-profile-name{
    font-size: 0.875rem;
    font-weight: 600;
    color: #dfdfdf;
}
.card .card-profile .card-profile-role{
    font-size: 0.875rem;
    color: #c0c0c0;
}
.card .card-footer .card-button{
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.81rem;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #eb0808 0%, #cd1717);
    transition: all 0.3s ease;
}
.card .card-footer .card-button:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 10, 10, 0.3);
}
.wrapper .swiper-pagination-bullet{
    height: 15px;
    width: 15px;
    overflow: hidden;
    opacity: 1;
    background: #f8b1b1;
}
.wrapper .swiper-pagination-bullet-active::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #e90606;
    transform: scaleX(0);
    transform-origin: left center;
    animation: autoplay-loading 5s linear forwards;
}

/*  */


@keyframes autoplay-loading{
    100% {
        transform: scaleX(1);
    }
}

.container:hover .wrapper .swiper-pagination-bullet-active::before{
    animation-play-state: paused;
}
.wrapper :where(.swiper-button-prev, .swiper-button-next){
    color: #f16363;
    margin-top: -35px;
    transition:  all 0.3s ease;
}
.wrapper :where(.swiper-button-prev, .swiper-button-next):hover{
    color: #8b5cf6;
}

@media (max-width: 1200px){
    .wrapper{
        margin: 0 10px 25px;
    }

    .wrapper :where(.swiper-button-prev, .swiper-button-next) {
        display: none;
    }
}
.card .card-image img {
    width: 80%; /* Reduce el tamaño al 80% */
    max-width: 250px; /* Define un tamaño máximo */
    aspect-ratio: 4 / 5; /* Cambia la proporción si es necesario */
    object-fit: cover;
    display: block;
    margin: 0 auto; /* Centra horizontalmente */
}
.card .card-image {
    padding: 5px;
}
.card .card-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eye-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}
.input-box {
    position: relative;
}