@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');


body {
    margin: 0 0 200px 0;
    background: #f5f5f7;
}

h1, h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3, h4, h5, .lexend {
    font-family: "Lexend", sans-serif;
    font-weight: 600;
}

h6, p, li, a, .inter {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    text-decoration: none;
}


.off {
    display: none;
}


.btn-1 {
    font-family: Quicksand;
    font-weight: 700;
    color: #50A4DB;

    border: solid 2.5px #50A4DB;
    border-radius: 980px;
    background: rgba(255,255,255,0);
    padding: 5px 19px 5px 19px;
    font-size: 1rem;
    transition: 0.25s ease-in-out;
}

.btn-1:hover {
    color: #fff;
    background: #50A4DB;
    transition: 0.25s ease-in-out;
}


.btn-2 {
    font-family: Quicksand;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;

    border: solid 2.5px #50A4DB;
    border-radius: 980px;
    background: #50A4DB;

    padding: 5px 19px 5px 19px;
    transition: 0.30s ease-in-out;
}

.btn-2:hover {
    border: solid 2.5px #5EBFFF;
    background: #5EBFFF;
    transition: 0.30s ease-in-out;
}






header {
    top: 0;
    margin: 0;
    height: 64px;
}

header img {
    width: 64px;
}

main {
    display: flex;
    margin: auto;
    width: 95%;
}

#ofertas {
    margin: auto;
    max-width: 40%;
}

#ofertas h2 {
    color: #000;
    text-transform: uppercase;
    font-size: 36px;
    text-align: center;
}


#carrusel {

}

.producto-o {
    padding: 20px 40px 20px 40px;
    border-radius: 16px;
    border: solid 2px rgba(0,0,0,0.2);
    background: #fff;
    max-width: 350px;
    margin: auto;
    box-shadow: 2px 4px 12px #00000014;

    display: flex;
    flex-direction: column;
}

.producto-o img {
    width: 200px;
    border-radius: 18px;
}

.producto-o p {
    text-align: center;
    font-weight: 700;
}

.precio-old {
    text-decoration: line-through;
    color: #555;
    font-weight: 400;
}

#hero {
    max-width: 40%;
    font-size: 40px !important;
}

span {
    color: #50A4DB;
}

#tiempo-oferta {
    width: 100%;
    margin: 0;

    margin-top: 30px !important;
    margin-bottom: 50px !important;

    background: #000;
}

#tiempo-oferta div {
    width: 60%;
    margin: auto;

}

#tiempo-oferta p {
    color: #f6f6f6;
    font-style: italic;
    font-weight: 800;
    font-size: 1.3rem;

    padding: 13px 0 13px 0;
}

#tiempo-oferta span { 
    color: #3DB2FF;
}

.date2 {
    color: #f6f6f6 !important;
}


@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #ofertas, #hero {
        max-width: 100%;
        width: 100%;
    }

    #hero h1 {
        font-size: 32px;
        margin-top: 20px;
    }
}




#categorias {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;

    margin: auto;

    width: 95%;
    gap: 40px;
}

.categoria {
    border: solid 2px #101010;

    max-width: 450px;
    min-width: 270px;
    height: 400px;

    border-radius: 20px;
    padding: 30px 20px 40px 20px;

    background-position: center;
    background-size: cover; 

}

.categoria button {
    margin-top: 110%;
}

.categoria h2 {
    text-align: center;
}


#audi-c {
    color: #f6f6f6 !important;
    background-image: url(img/audi-categoria.webp);
}

#carga-c {
    color: #101010 !important;
    background-image: url(img/carga-categoria.webp);
}

#relo-c {
    color: #f6f6f6 !important;
    background-image: url(img/relo-categoria.webp);
}

#fund-c {
    color: #101010 !important;
    background-image: url(img/fund-categoria.webp);
}



#audi, #carga, #relo, #fund { 
    margin: 75px 0 200px 0;
    border-top: solid 3.5px #e0e0e0;
    display: none;
}

#audi h3, #carga h3, #relo h3, #fund h3 {
    width: 85%;
    margin: 50px auto;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}



.productos {
    display: flex;
    justify-content: flex-start;

    margin: auto;
    width: 90%;

    background: transparent;
    gap: 15px;
    padding: 20px 0 30px 20px;

    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
}

@media (min-width: 400px) {
    .productos {
        gap: 30px;
    }
}

.productos::-webkit-scrollbar {
    display: none;
}


.producto {
    min-width: 250px;
    max-width: 280px;

    flex: 0 0 75vw;
    scroll-snap-align: center;

    padding: 24px;
    border-radius: 22px;

    display: flex;
    flex-direction: column;

    background: #fff;
    box-shadow: 2px 4px 12px #00000014;
}

.producto img {
    align-self: center;
    width: 200px;
    height: 200px;
}

.producto h4 {
    font-weight: 700;
    font-size: 1.3rem;
    align-self: center;
    font-family: "Poppins", sans-serif;
}

.producto p {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: center;

    font-size: 1.3rem;
    font-weight: 600;
}

.producto div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.producto span, .hoy {
    margin-left: 10px;

    font-family: Quicksand;
    font-size: 0.80rem;
    color: #00a650;

    border: solid 1px #00a650;
    border-radius: 6px;
    padding: 0 5px;
    background: rgba(0, 166, 80, .1);

    width: fit-content;
}

.producto a {
    font-size: 0.90rem !important;
}

.producto a:hover {
    transform: translateY(-5px);
}




/* PRODUCTOS INDIVIDUALES */
.preview-container h2 {
    text-align: center;
    border-bottom: solid 3.2px #50A4DB;
    padding-bottom: 30px;
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}


.modal-body {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 30px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}
.modal-body::-webkit-scrollbar {
    display: none;
}


.grid-layout {
    display: grid;
    gap: 30px;
    grid-template-areas: 
        "fotos compra"
        "desc compra";
    grid-template-columns: 1fr 320px; 
    align-items: start;
}


.center-top {
    grid-area: fotos;
    min-width: 0;
    overflow: hidden;
}

.center-top p { 
    font-weight: 600; color: #86868b; 
}



/* GALERÍA */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.galeria-fotos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.galeria-fotos::-webkit-scrollbar {
    display: none;
}

.galeria-fotos img {
    flex: 0 0 85%;
    width: 280px;
    object-fit: contain;
    border-radius: 15px;
    scroll-snap-align: center; 
}

/* PC MOSTRAMOS 2 IMÁGENES */
@media (min-width: 769px) {
    .galeria-fotos img {
        flex: 0 0 calc(50% - 10px); 
    }
}


.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7; /* Gris claro (inactivo) */
    transition: background 0.3s ease;
}

.dot.active {
    background: #86868b; /* Gris oscuro (activo) */
    transform: scale(1.2);
}


/* PRECIO Y COMPRAR */
.right-center-bottom {
    grid-area: compra;
    position: sticky;
    top: 10px;
    font-size: 0.90rem;
}

.right-center-bottom > div {
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.right-center-bottom > div > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
}

.right-center-bottom > div > div > img {
    width: 30px;
    height: 30px;
}

.right-center-bottom .precio {
    font-size: 1.4rem;
    font-weight: 650;
}

.right-center-bottom small {
    display: flex;
    align-items: center;

    font-size: 0.75rem;
    font-weight: 600;
    font-family: Quicksand;
}

.right-center-bottom i {
    font-size: 1rem;
    margin-right: 5px;
}


.center-bottom-left {
    display: block;
    grid-area: desc;
}

.center-bottom-left i {
    margin-right: 7px;
    color: #2A5673;
    font-weight: 800;
}

.center-bottom-left p {
    font-family: Poppins, sans-serif;
    font-weight: 580;
}


@media (max-width: 768px) {
    .grid-layout {
        grid-template-areas: 
            "fotos"
            "compra"
            "desc";
        grid-template-columns: 1fr;
    }
    
    .right-center-bottom {
        position: static; /* Quitamos el sticky en móvil */
        border-top: 1px solid #e5e5e5;
        padding-top: 20px;
    }
}