/*
    Fuente para la Web ////////////////////////////////////////////////////////////////////////////////////
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@600&display=swap');

/*
    Variables ////////////////////////////////////////////////////////////////////////////////////
*/

:root {
    --blanco: #f7f7f7;
    --amarillo: #FABD00;
    --rojo: #AD1519;
    --negro: #282828;
    --rojo_transp: rgb(173, 21, 25, .7);
    --amarillo_transp: rgb(250, 189, 0, .7);
    --sombra: rgba(0, 0, 0, .6);
}

/*
    Reseteo ////////////////////////////////////////////////////////////////////////////////////
*/

*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
    Estilos Generales ////////////////////////////////////////////////////////////////////////////////////
*/

html, body {
    font-family: 'Rubik', sans-serif;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    min-height: 80vh;
    background: var(--blanco);
}

/*
    Intro del Index //////////////////////////////////////////////////////////////////////////////////// 
*/

div#intro img {
    width: 100%;
    height: 80vh;
}

div#slogan {
    width: 100%;
    height: 100%;
    background: var(--rojo_transp);
    clip-path: polygon(60% 0, 100% 0%, 100% 100%, 40% 100%);
}

div#slogan div {
    position: absolute;
    top: 40%;
    right: 10%;
}

div#slogan div h1 {
    font-size: 5rem;
    font-weight: bold;
    color: var(--amarillo);
}

div#slogan div h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blanco);
    text-align: center;
}

/*
    Animación Portada Index H1 H2 ////////////////////////////////////////////////////////////////////////////////////
*/

div#slogan div h1, div#nuestros_productos h1 {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1.2s ease-out;
}

div#slogan div h2 {
    opacity: 0;
    transform: translateY(100%);
    transition: all 1.4s ease-out;
}

div#slogan div h1.visible, div#nuestros_productos h1.visible {
    opacity: 1;
    transform: translateX(0);
}

div#slogan div h2.visible {
    opacity: 1;
    transform: translatey(0);
}

/*
    Página principal ////////////////////////////////////////////////////////////////////////////////////
*/  

div#pagina_inicial h2, div#ubicacion h2 {
    font-size: 3rem;
    max-width: max-content;
    font-weight: 600;
}

div#pagina_inicial h2::after, div#ubicacion h2::after {
    content: "";
    margin: .05rem 0;
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right,
        var(--rojo) 0%,      /* Roja */
        var(--rojo) 25%,     /* Franja roja */
        var(--amarillo) 25%,     /* Amarilla */
        var(--amarillo) 75%,     /* Franja amarilla (doble ancho) */
        var(--rojo) 75%      /* Franja roja */
    );
}

/*
    Animación Página Principal H2 ////////////////////////////////////////////////////////////////////////////////////
*/

div#pagina_inicial h2, div#ubicacion h2 {
    opacity: 0;
    transform: translateY(-100%);
    transition: all 1.4s ease-out;
}

div#pagina_inicial h2.visible, div#ubicacion h2.visible {
    opacity: 1;
    transform: translatey(0);
}

/*
    Pagina Principal - Carrusel Productos ////////////////////////////////////////////////////////////////////////////////////
*/

.swiper { 
    margin: 40px auto;
    width: 80%;
    height: 50vh;
}

.swiper-pagination-bullet-active {
    background: var(--rojo) !important;
}

/*
    Página principal - Ubicación ////////////////////////////////////////////////////////////////////////////////////
*/

div#ubicacion div {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

div#ubicacion div iframe {
    width: 800px;
    height: 450px;
    border: 0;
    box-shadow: 0px 0px 8px var(--sombra);
    border-radius: 5px;
}


div#ubicacion div div#botones_reseñas {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

div#ubicacion div div#botones_reseñas #ver_reseñas {
    background-color: var(--rojo);
    padding: 15px;
    color: var(--blanco);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0px 0px 8px var(--sombra);
}

div#ubicacion div div#botones_reseñas #escribir_reseña {
    background-color: var(--negro);
    padding: 15px;
    color: var(--blanco);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0px 0px 8px var(--sombra);
}

/*
    Productos ////////////////////////////////////////////////////////////////////////////////////
*/

div#nuestros_productos h1 {
    font-size: 5rem;
    font-weight: bold;
    color: var(--negro);
    padding: 25px 0;
}

div#nuestros_productos h1::after {
    content: "";
    margin: .05rem 0;
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right,
        var(--rojo) 0%,      /* Roja */
        var(--rojo) 25%,     /* Franja roja */
        var(--amarillo) 25%,     /* Amarilla */
        var(--amarillo) 75%,     /* Franja amarilla (doble ancho) */
        var(--rojo) 75%      /* Franja roja */
    );
}

.producto {
    background: var(--negro);
    overflow: hidden;
    box-shadow: 0px 0px 5px var(--sombra);
    border-radius: 5px;
    transition: all .3s linear;
    /* height: 40%; */
    width: 100%;
}

.producto:hover {
    transform: scale(1.02);
}

.producto .img-producto {
    width: 100%;
    height: auto !important;
    object-fit: none !important;
}

.producto .info-producto {
    height: 15vh;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    z-index: 2;
}

.producto .info-producto .producto_nombre {
    font-size: 17px;
    color: var(--blanco);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.producto .info-producto .precio {
    font-size: 24px;
    color: var(--blanco);
    font-weight: 500;
    letter-spacing: 1px;
}

div.productos_relacionados {
    display: flex;
    align-items: stretch !important; /* Los hijos tendrán la misma altura */
}

div.productos_relacionados .producto {
    height: 100% !important;
}

div.productos_relacionados div.info-producto {
    justify-content: start !important;
}

/*
    Animación Página Productos ////////////////////////////////////////////////////////////////////////////////////
*/

div#productos a div {
    opacity: 0;
    /* transform: translateY(-100%); */
    animation: lineUP .9s ease-in-out forwards;
}

@keyframes lineUP {
    to {
        opacity: 1;
        /* transform: translateY(0); */
    }
    
}

/*
    Filtros Productos ////////////////////////////////////////////////////////////////////////////////////
*/

div#filtros ul {
    padding: 0;
}

h3#hamburguer_filtros .fa-bars {
    display: none;
}

div#filtros ul li {
    cursor: pointer;
    max-width: 75%;
    margin: 1rem 0;
    padding: 10px 15px;
    border: 1px solid var(--negro);
    color: var(--negro);
    border-radius: 5px;
    font-weight: bold;
    transition: all .3s linear;
    text-transform: capitalize;
}

div#filtros ul li.activo {
    /* background: var(--rojo_transp); */
    background: linear-gradient(to top,
        var(--rojo_transp) 0%,      /* Roja */
        var(--rojo_transp) 25%,     /* Franja roja */
        var(--amarillo_transp) 25%,     /* Amarilla */
        var(--amarillo_transp) 75%,     /* Franja amarilla (doble ancho) */
        var(--rojo_transp) 75%      /* Franja roja */
    );
    border-color: var(--rojo);
    box-shadow: 0px 0px 8px var(--sombra);
}

div#filtros ul li:hover {
    border-color: var(--rojo);
    box-shadow: 0px 0px 8px var(--sombra);
}

div#filtros #busqueda_producto {
    border-color: var(--negro);
}

div#filtros #busqueda_producto:focus {
    box-shadow: 0px 0px 8px var(--amarillo);
}

/*
    Boton Subir Página ////////////////////////////////////////////////////////////////////////////////////
*/

/* Estilos del botón flotante */
#btnSubir {
    position: fixed;
    bottom: 80px;
    right: 80px;
    display: none; /* Oculto al inicio */
    z-index: 999;
    transition: all 0.3s ease;
}

#btnSubir .fa-circle-up {
    background: linear-gradient(to top,
        var(--rojo_transp) 0%,      /* Roja */
        var(--rojo_transp) 25%,     /* Franja roja */
        var(--amarillo_transp) 25%,     /* Amarilla */
        var(--amarillo_transp) 75%,     /* Franja amarilla (doble ancho) */
        var(--rojo_transp) 75%      /* Franja roja */
    );
    color: var(--negro);
    font-size: 60px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0px 0px 8px var(--negro);
}

#btnSubir:hover {
    transform: scale(1.1);
}

/*
    Producto Individual ////////////////////////////////////////////////////////////////////////////////////
*/

.img-zoom-lens {
    position: absolute;
    width: 100px;
    height: 100px;
}

.img-zoom-lens:hover {
    border: 1px solid var(--negro);
    background: var(--rojo_transp);
}

.img-zoom-result {
    visibility: hidden;
    border: 1px solid #d4d4d4;
    width: 400px;
    height: 400px;
    position: absolute;
    left: 105%;
    top: 0;
    z-index: 99999 !important;
}

div#img_prod:hover .img-zoom-result {
    visibility: visible;
}

div#img-container {
    width: 500px;
}

div#img_prod {
    width: 500px;
    height: 500px;
    position: relative;
}

div#mini-img-prod img {
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-width: 0px;
    transition: all 1.3s linear;
}

div#mini-img-prod img:hover {
    border: 1px solid var(--negro);
}

div#info h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--negro);
}

/* Diseño moderno para el select de tallas */
#talla_select {
    padding: 7px 10px;
    border: 2px solid var(--negro);
    border-radius: 8px;
    background: linear-gradient(90deg, var(--rojo) 60%, var(--amarillo) 100%);
    color: var(--blanco);
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px var(--sombra);
    outline: none;
    cursor: pointer;
}

#talla_select:focus {
    border-color: var(--rojo_transp);
}

#talla_select option {
    background: var(--amarillo);
    color: var(--negro);
    font-weight: bold;
}

#talla_select option[disabled] {
    color: #aaa;
    background: #f8f8f8;
}

form.card {
    border-radius: 16px;
    border: 1px solid var(--negro);
    box-shadow: 0px 0px 8px var(--sombra);
}

form.card .form-label {
    color: var(--negro);
}

form.card .btn-warning {
    background: linear-gradient(90deg, var(--amarillo) 60%, var(--rojo) 100%);
    color: var(--negro);
    border: none;
    font-size: 1.1rem;
    transition: background 0.2s;
    border: 2px solid var(--negro);
}

form.card .btn-warning:hover {
    background: linear-gradient(90deg, var(--rojo) 60%, var(--amarillo) 100%);
    color: #fff;
}

form.card .btn-warning .fa-shopping-cart {
    position: relative;
    top: 0px; /* Ajusta este valor para bajar el icono */
    margin-right: 6px;
    font-size: 1.2em;
    vertical-align: middle;
}

/*
    ////////////////////////////////////////////////////////////////////////////////////////////////////
*/

span#stock::before {
    content: "";
    margin: 0 .5rem 0 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    background: green;
}

span#sin_stock::before {
    content: "";
    margin: 0 .5rem 0 0;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    background: red;
}

span#precio {
    font-size: 2.2rem;
    display: block;
}

a#solicitar_info {
    background-color: var(--negro);
    padding: 10px;
    /* border-radius: 12px; */
    color: var(--blanco);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0px 0px 8px var(--sombra);
    letter-spacing: 1px;
}

div#descripcion_prod {
    margin-top: 2rem
}

div#descripcion_prod p {
    max-width: 80%;
    padding: 1rem;
    font-size: 1.2rem;
}

span#descripcion_prod {
    font-size: 2rem;
    font-weight: bold;
    max-width: fit-content;
}

span#descripcion_prod::after {
    content: "";
    margin: .05rem 0;
    display: block;
    width: 50%;
    height: 2px;
    background: var(--rojo);
}


/*
    Footer
*/

footer {
    background: var(--rojo);
    box-shadow: 0px 0px 8px var(--sombra);
}

/*
    Responsive ancho mínimo 1200px ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 1200px) {
    ul.nav-menu li.social a#telefono {
        font-size: 0;
    }

    ul.nav-menu li.social a#telefono .fa-phone-flip {
        font-size: 1.5rem;
    }

    div#slogan div h1 {
        font-size: 3rem;
    }

    div#slogan div h2 {
        font-size: 1rem;
    }

    .swiper {
        width: 80%;
    }

    div#ubicacion div iframe {
        width: 600px;
        height: 350px;
    }

    div#ubicacion div div#botones_reseñas {
        width: 80%;
    }

    div#ubicacion div div#botones_reseñas #ver_reseñas {
        font-size: 15px;
    }

    div#ubicacion div div#botones_reseñas #escribir_reseña {
        font-size: 15px;
    }

    div#pagina_inicial h2, div#ubicacion h2 {
        font-size: 2.5rem;
    }

    div#nuestros_productos h1 {
        font-size: 3rem;
        padding: 15px 0;
    }

    #productos_responsive #productos .producto {
        height: 280px;
    }

    .producto {
        height: 350px;
    }

    .producto .info-producto {
        justify-content: start;
    }   

    .producto .info-producto span.producto_nombre {
        font-size: 15px;
    }

    .producto .info-producto .precio {
        font-size: 20px;
    }

    div#img-container {
        width: 100%;
        max-width: 400px;
    }

    div#img_prod {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }

    .img-zoom-result {
        width: 300px;
        height: 300px;
        left: 105%;
        top: 0;
        right: 0;
    }

    div#mini-img-prod img {
        width: 50px;
        height: 50px;
    }

    div#info h1 {
        font-size: 2rem;
    }

    span#precio {
        font-size: 1.8rem;
    }

    a#solicitar_info {
        font-size: 16px;
        padding: 8px;
    }

    span#descripcion_prod {
        font-size: 1.2rem;
    }

    span#descripcion_prod::after {
        width: 30%;
    }

    /* Estilos del botón flotante */
    #btnSubir {
        bottom: 50px;
        right: 20px;
    }

    #btnSubir .fa-circle-up {
        font-size: 50px;
    }
}

/*
    Responsive ancho mínimo 992px ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 992px) {
    ul.nav-menu li a{
        font-size: 1.2rem;
    }

    ul.nav-menu li.social a#telefono .fa-phone-flip {
        font-size: 1.2rem;
    }

    .swiper {
        width: 100%;
    }

    div#ubicacion div iframe {
        width: 500px;
        height: 300px;
    }

    div#pagina_inicial h2, div#ubicacion h2 {
        font-size: 2rem;
        text-align: center;
    }

    div#filtros_categoria_responsive {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: start;
        display: flex;
        margin-bottom: 30px;
    }

    div#filtros_categoria_responsive li {
        height: fit-content;
        margin: .2rem !important;
    }

    div#nuestros_productos h1 {
        font-size: 2.5rem;
        padding: 10px 0;
        /* text-align: center; */
    }

    div#productos_responsive {
        flex-direction: column;
    }

    #productos_responsive #productos .producto {
        height: 320px;
    }

    div#productos {
        justify-content: center !important;
    }

    .producto {
        height: 320px;
    }

    .producto .info-producto span.producto_nombre {
        font-size: 15px;
    }

    .producto .info-producto .precio {
        font-size: 20px;
    }

    div#img-container {
        width: 100%;
        max-width: 350px;
    }

    div#img_prod {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .img-zoom-result {
        width: 250px;
        height: 250px;
        left: 105%;
        top: 0;
        right: 0;
    }

    div#mini-img-prod img {
        width: 50px;
        height: 50px;
    }

    div#info h1 {
        font-size: 1.8rem;
    }

    span#precio {
        font-size: 1.6rem;
    }

    a#solicitar_info {
        font-size: 14px;
        padding: 6px;
    }
    span#descripcion_prod {
        font-size: 1.5rem;
    }

    div#descripcion_prod p {
        font-size: 1.2rem;
    }
    span#descripcion_prod::after {
        width: 30%;
    }
    /* Estilos del botón flotante */
    #btnSubir {
        bottom: 50px;
        right: 20px;
    }
    #btnSubir .fa-circle-up {
        font-size: 40px;
    }
}

/*
    Responsive ancho mínimo 768px ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 768px) {
    div#slogan {
        clip-path: polygon(50% 0, 100% 0%, 100% 100%, 0% 100%);

    }

    div#slogan div h1 {
        font-size: 2.5rem;
    }

    div#slogan div h2 {
        font-size: .9rem;
        padding: 0 1rem;
    }

    .swiper {
        width: 80%;
    }

    div#ubicacion div div#botones_reseñas {
        width: 100%;
        flex-direction: column;
    }

    div#ubicacion div div#botones_reseñas #ver_reseñas, #escribir_reseña {
        margin: .5rem 0;
        width: 70%;
        text-align: center;
    }

    div#pagina_inicial h2, div#ubicacion h2 {
        font-size: 1.8rem;
    }

    div#filtros_categoria_responsive {
        flex-direction: row;
        justify-content: start;
    }

    div#filtros_categoria_responsive li {
        width: fit-content;
        text-align: center;
        margin: 0.2rem !important;
        font-size: 15px;
    }

    div#nuestros_productos h1 {
        font-size: 2rem;
        padding: 10px 0;
        text-align: left;
    }

    div#productos_responsive {
        flex-direction: column;
        align-items: center;
    }

    div#productos {
        justify-content: center !important;
    }

    #productos_responsive #productos .producto {
        height: 410px;
    }

    .producto {
        height: 380px;
        margin: 1rem 0;
    }

    .producto .info-producto span.producto_nombre {
        font-size: 18px;
    }

    .producto .info-producto .precio {
        font-size: 20px;
    }

    div#img-container {
        width: fit-content;
    }

    div#img_prod {
        width: 250px;
        height: 250px;
    }

    .img-zoom-result {
        width: 130px;
        height: 130px;
        left: 105%;
        top: 0;
        right: 0;
    }

    div#mini-img-prod img {
        width: 40px;
        height: 40px;
    }

    div#info h1 {
        font-size: 1.4rem;
    }

    span#stock {
        font-size: 18px !important;
    }

    span#stock::before {
        width: 13px;
        height: 13px;
    }

    span#sin_stock {
        font-size: 18px !important;
    }

    span#sin_stock::before {
        width: 13px;
        height: 13px;
    }

    span#precio {
        font-size: 1.4rem;
    }

    a#solicitar_info {
        font-size: 12px;
        padding: 5px;
    }

    span#descripcion_prod {
        font-size: 1.4rem;
    }

    div#descripcion_prod p {
        font-size: 1.1rem;
    }

    span#descripcion_prod::after {
        width: 30%;
    }

    div#productos_relacionados div {
        justify-content: center !important;
    }

    /* Estilos del botón flotante */
    #btnSubir {
        bottom: 50px;
        right: 20px;
    }
    #btnSubir .fa-circle-up {
        font-size: 40px;
    }
}

/*
    Responsive ancho mínimo 700px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 700px) {
    #productos_responsive #productos .producto {
        height: 380px;
    }
}

/*
    Responsive ancho mínimo 650px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 650px) {
    div#intro img {
        height: 60vh;
    }

    .swiper {
        height: 400px;
    }

    .producto {
        height: 350px;
    }
}

/*
    Responsive ancho mínimo 600px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 600px) {
    .producto {
        height: 330px;
    }

    div#img-container img {
        height: 300px;
        width: 300px;
    }

    div#img-container {
        height: 365px;
        width: 300px;
    }

    div#img_prod {
        width: 150px;
        height: 150px;
        transition: opacity 1s ease;
    }

    div#producto-container {
        flex-direction: column;
        align-items: center;
    }

    div#mini-img-prod {
        display: block;
        margin-top: 157px !important;
    }

    div#mini-img-prod img {
        display: block;
        width: 50px;
        height: auto;
    }

    #productos_responsive #productos .producto {
        height: 330px;
    }
}

/*
    Responsive ancho mínimo 510px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 510px) {
    .producto {
        height: 310px;
    }
}

/*
    Responsive ancho mínimo 480px ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 480px) {
    div#slogan div h1 {
        font-size: 2rem;
    }

    div#slogan div h2 {
        font-size: .8rem;
        padding: 0 .5rem;
    }

    .swiper {
        width: 100%;
    }

    div#ubicacion div iframe {
        max-width: 300px;
        height: 200px;
    }

    div#ubicacion div div#botones_reseñas #ver_reseñas, #escribir_reseña {
        font-size: 14px;
        width: 90%;
    }

    div#pagina_inicial h2, div#ubicacion h2 {
        font-size: 1.5rem;
    }

    h3#hamburguer_filtros .fa-bars {
        display: inline;
    }

    h3#hamburguer_filtros {
        margin: auto;
        text-align: center;
        margin-bottom: 20px;
        /* max-width: fit-content; */
        border-radius: 5px;
        padding: 10px;
        font-weight: bold;
        /* border: 1px solid var(--negro); */
        box-shadow: 0px 0px 8px var(--sombra);
        background: linear-gradient(to top,
            var(--rojo_transp) 0%,      /* Roja */
            var(--rojo_transp) 25%,     /* Franja roja */
            var(--amarillo_transp) 25%,     /* Amarilla */
            var(--amarillo_transp) 75%,     /* Franja amarilla (doble ancho) */
            var(--rojo_transp) 75%      /* Franja roja */
        );
    }

    div#filtros_categoria_responsive {
        padding-bottom: 10px;
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(to right, var(--rojo), var(--amarillo), var(--rojo));
        border-image-slice: 1;
        justify-content: center;
        display:none;
    }

    div#filtros_categoria_responsive.filtros_active {
        display:flex;
    }

    div#filtros_categoria_responsive li {
        max-width: 150px !important;
        height: fit-content;
        font-size: 13px;
    }

    div#nuestros_productos h1 {
        font-size: 1.6rem;
        padding: 10px 0;
        text-align: left;
    }

    div#productos {
        gap: 1rem !important;
    }

    .swiper .producto {
        width: 90%;
    }

    #productos_responsive #productos .producto {
        height: 270px;
    }

    .producto {
        height: 280px;
        margin: .5rem 0;
    }

    .producto .info-producto {
        justify-content: start;
    }

    .producto .info-producto span.producto_nombre {
        font-size: 12px;
    }

    .producto .info-producto .precio {
        font-size: 18px;
    }
    
    div#img-container img {
        height: 300px;
        width: 300px;
    }

    div#img-container {
        height: 365px;
        width: 300px;
    }

    div#producto-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }

    div#img_prod {
        width: 150px;
        height: 150px;
        transition: opacity 1s ease;
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: var(--sombra);
        opacity: 0;
        pointer-events: none;
        z-index: 998;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .zoom {
        position: fixed;
        top: 40%;
        left: 15%;
        transform: translate(-50%, -50%) scale(1.4);
        z-index: 999;
        transition: transform 1s ease;
    }

    .img-zoom-result {
        display: none;
    }

    .img-zoom-lens {
        display: none;
    }

    div#mini-img-prod {
        display: block;
        margin-top: 157px !important;
    }

    div#mini-img-prod img {
        display: block;
        width: 50px;
        height: auto;
    }

    div#info h1 {
        font-size: 1.4rem;
    }

    span#stock {
        font-size: 14px !important;
    }

    span#stock::before {
        width: 10px;
        height: 10px;
    }

    span#sin_stock {
        font-size: 14px !important;
    }

    span#sin_stock::before {
        width: 10px;
        height: 10px;
    }

    span#precio {
        font-size: 1.3rem;
    }

    small {
        font-size: 11px;
    }

    a#solicitar_info {
        font-size: 18px;
        padding: 5px 10px;
    }

    div#descripcion_prod {
        text-align: center;
    }

    span#descripcion_prod {
        font-size: 1.4rem;
    }

    div#descripcion_prod p {
        font-size: 1.1rem;
        width: 100% !important;
        margin: auto;
    }

    span#descripcion_prod::after {
        width: 30%;
        margin: auto
    }

    /* Estilos del botón flotante */
    #btnSubir {
        bottom: 50px;
        right: 20px;
    }
    
    #btnSubir .fa-circle-up {
        font-size: 35px;
    }
}

/*
    Responsive ancho mínimo 440px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 440px) {
    .producto {
        height: 260px;
    }

    #productos_responsive #productos .producto {
        height: 240px;
    }
}

/*
    Responsive ancho mínimo 400px para la imagen de index.php ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 400px) {
    .swiper {
        height: 350px;
    }

    #productos_responsive #productos .producto {
        height: 230px;
    }

    .producto {
        height: 250px;
    }
}

/*
    Responsive ancho mínimo 355px ////////////////////////////////////////////////////////////////////////////////////
*/

@media screen and (max-width: 355px) {
    div#intro img {
        height: 40vh;
    }

    div#slogan div h1 {
        font-size: 1.5rem;
    }

    div#slogan div h2 {
        font-size: .7rem;
        padding: 0 .3rem;
    }

    .swiper {
        width: 100%;
    }

    div#ubicacion div iframe {
        max-width: 250px;
        height: 150px;
    }

    div#ubicacion div div#botones_reseñas #ver_reseñas, #escribir_reseña {
        font-size: 12px !important;
    }

    div#pagina_inicial h2, div#ubicacion h2 {
        font-size: 1.2rem;
    }

    div#filtros_categoria_responsive li {
        font-size: 12px;
        padding: 6px 8px;
    }

    div#nuestros_productos h1 {
        font-size: 1.2rem;
        padding: 10px 0;
        text-align: left;
    }

    div#productos {
        gap: .5rem !important;
    }

    .producto {
        height: 220px;
        /* width: 120px; */
        margin: .5rem 0;
    }

    .producto .info-producto {
        justify-content: start;
    }

    .producto .info-producto span.producto_nombre {
        font-size: 13px;
    }

    .producto .info-producto .precio {
        font-size: 16px;
    }

    div#img-container {
        width: 240px;
        height: 295px;
    }

    div#img-container img {
        width: 240px;
        height: 240px;
    }

    div#img_prod {
        width: 150px;
        height: 150px;
    }

    .zoom {
        top: 30%;
        left: 28%;
        transform: translate(-50%, -50%) scale(1.2);
        z-index: 999;
    }

    .img-zoom-result {
        display: none;
    }

    .img-zoom-lens {
        display: none;
    }

    div#mini-img-prod {
        margin-top: 97px !important;
    }

    div#mini-img-prod img {
        /* display: block; */
        width: 40px;
        height: auto;
    }

    div#info h1 {
        font-size: 1.2rem;
    }

    span#stock {
        font-size: 12px !important;
    }

    span#stock::before {
        width: 8px;
        height: 8px;
    }

    span#sin_stock {
        font-size: 12px !important;
    }

    span#sin_stock::before {
        width: 8px;
        height: 8px;
    }

    span#precio {
        font-size: 1.2rem;
    }

    a#solicitar_info {
        font-size: 15px;
        padding: 5px 10px;
    }

    span#descripcion_prod {
        font-size: 1.1rem;
    }

    div#descripcion_prod p {
        font-size: .9rem;
    }

    span#descripcion_prod::after {
        width: 30%;
    }

    /* Estilos del botón flotante */
    #btnSubir {
        bottom: 50px;
        right: 20px;
    }
    #btnSubir .fa-circle-up {
        font-size: 30px;
    }
}

/*
    Navegación ////////////////////////////////////////////////////////////////////////////////////
*/

/* ==== Header fijo ==== */
.header-fijo {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* siempre por encima */
    background: var(--rojo); /* importante para que no sea transparente */
    box-shadow: 0px 0px 8px var(--sombra);
}

/* ==== Ajustes de la navegación ==== */
.menu_navegacion {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: .5rem 1rem;
    position: relative;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
}

.nav-menu {
    display: flex;
    justify-content: start;
    width: 85%;
    gap: 1rem;
}

.nav-menu li.social {
    margin-left:auto ;
}

.nav-menu li a {
    margin: 0rem .4rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--blanco);
    transition: all .2s ease-in-out;
}

.nav-menu li:not(.social) {
    transition: all .2s ease-in-out;
    font-weight: bold;
}

.nav-menu li:not(.social):hover {
    transform: scale(1.15);
}

.logo img {
    height: 100px;
}

/* Botón hamburguesa */
.hamburger {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* oculto en escritorio */
}

.fa-shopping-cart {
    vertical-align: middle;
    line-height: 1;
    margin-right: 0;
    font-size: 1.5rem;
    display: inline-block;
    position: relative;
    top: -10px; /* Ajusta este valor: prueba con 0, 2px, -2px, etc. */
}

.nav-menu li a .fa-shopping-cart,
.nav-menu li a .fa-user {
    color: var(--blanco) !important;
    transition: color 0.2s;
}

.nav-menu li a:hover .fa-shopping-cart {
    color: var(--amarillo) !important;
}

#carrito-cantidad {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--amarillo);
    color: var(--negro);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid var(--blanco);
    box-shadow: 0 2px 6px var(--sombra);
    z-index: 2;
}

/* ===== Responsive ===== */
@media (max-width: 840px) {
    .logo img {
        height: 75px;
    }

    .nav-menu li.social {
        margin-left:0 ;
    }

    .nav-header {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .hamburger i{
        color: var(--blanco);
        font-size: 2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: -100%; /* oculto fuera de la pantalla */
        left: 0;
        width: 100%;
        height: fit-content; /* ocupa toda la altura */
        background: var(--rojo);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        margin: 0;
        gap: 1rem;
        transition: top 0.4s ease-in-out;
        z-index: 10000;
        display: flex;
        box-shadow: 0px 8px 8px var(--sombra);
    }

    .nav-menu.active {
        top: 90px
    }

    .nav-menu li {
        margin: .5rem 0;
    }

    .social {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/*
    Carrito de compra
*/

.card-header.bg-warning {
    background: var(--amarillo);
    color: var(--negro);
    border-bottom: 2px solid var(--rojo);
    font-family: 'Rubik', sans-serif;
}

.table-warning th {
    background: var(--amarillo);
    color: var(--negro);
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 2px solid var(--rojo);
}

.table td, .table th {
    vertical-align: middle;
    text-align: center;
}

.fw-bold.text-danger {
    font-family: 'Rubik', sans-serif;
    letter-spacing: 1px;
}

.btn-warning {
    background: var(--amarillo);
    color: var(--negro);
    border: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-warning:hover {
    background: var(--rojo);
    color: #fff;
}

/*
    Checkout ////////////////////////////////////////////////////////////
*/

.card-header.bg-warning {
    background: var(--amarillo);
    color: var(--negro);
    border-bottom: 2px solid var(--rojo);
    font-family: 'Rubik', sans-serif;
}

.list-group-item {
    font-family: 'Rubik', sans-serif;
    font-size: 1.05em;
}

.btn-primary {
    background: var(--rojo);
    border: none;
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--amarillo);
    color: var(--rojo);
}

/* Bloque de introducción SEO //////////////////////////////////////////////////////////////////////// */
#intro-texto {
    animation-delay: 0.5s;
    max-width: 65%;
    margin: 0 auto 24px auto;
    padding: 0;
}
.intro-seo-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px #ffc10722;
    border-left: 6px solid #c8102e;
    padding: 28px 26px;
}
.intro-seo-title {
    color: #c8102e;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.intro-seo-text {
    font-size: 1.13em;
    color: #232323;
    line-height: 1.7;
    margin-bottom: 0;
}
.intro-seo-highlight {
    color: #c8102e;
    font-weight: 600;
}

/* Animaciones de entrada para intro SEO */
.intro-seo-anim {
    display: inline-block;
    opacity: 0;
    position: relative;
}

.intro-seo-anim.izq {
    animation: slideInLeft 1.2s ease-out forwards;
}

.intro-seo-anim.der {
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        left: -60px;
    }
    to {
        opacity: 1;
        left: 0;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        right: -60px;
    }
    to {
        opacity: 1;
        right: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #intro-texto {
        max-width: 98vw;
        padding: 0 4vw;
    }
    .intro-seo-box {
        padding: 16px 10px;
    }
    .intro-seo-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .intro-seo-text {
        font-size: 1em;
    }
}

/*
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/

/* Añade a tu style.css para el diseño de la carta grande de productos destacados */
.productos-seo-box {    
    animation-delay: 0.5s;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px #ffc10722;
    border-right: 6px solid #c8102e;
    padding: 32px 28px;
    margin-bottom: 32px;
}
.intro-seo-title {
    color: #c8102e;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-align: left;
}
.productos-seo-text {
    font-size: 1.18em;
    color: #232323;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: left;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 12px;
}
.productos-seo-anim {
    display: inline-block;
    opacity: 0;
    position: relative;
}
.productos-seo-anim.izq {
    font-weight: 600;
    color: #AD1519;
    animation: slideInLeft 1.2s ease-out forwards;
}
.productos-seo-anim.der {
    font-style: italic;
    color: #282828;
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes slideInLeft {
    from { opacity: 0; left: -60px; }
    to { opacity: 1; left: 0; }
}
@keyframes slideInRight {
    from { opacity: 0; right: -60px; }
    to { opacity: 1; right: 0; }
}
/* Responsive */
@media (max-width: 768px) {
    .productos-seo-box {
        padding: 16px 8px;
    }
    .intro-seo-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .productos-seo-text {
        font-size: 1em;
        padding: 10px 8px;
    }
}

/*
    //////////////////////////////////////////////////////////////////////////////////////////////
*/

/* Carta grande para ubicación */
.ubicacion-seo-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px #ffc10722;
    border-left: 6px solid #c8102e;
    padding: 32px 28px;
    margin-bottom: 32px;
}
.ubicacion-seo-title {
    color: #c8102e;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-align: center;
}
div#ubicacion h2.ubicacion-seo-title::after {
    width: 100%;
}
.ubicacion-seo-text {
    font-size: 1.18em;
    color: #232323;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 12px;
}
.ubicacion-seo-anim {
    display: inline-block;
    opacity: 0;
    position: relative;
}
.ubicacion-seo-anim.izq {
    font-weight: 600;
    color: #AD1519;
    animation: slideInLeft 1.2s ease-out forwards;
}
.ubicacion-seo-anim.der {
    font-style: italic;
    color: #282828;
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes slideInLeft {
    from { opacity: 0; left: -60px; }
    to { opacity: 1; left: 0; }
}
@keyframes slideInRight {
    from { opacity: 0; right: -60px; }
    to { opacity: 1; right: 0; }
}
/* Responsive */
@media (max-width: 768px) {
    .ubicacion-seo-box {
        padding: 16px 8px;
    }
    .ubicacion-seo-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .ubicacion-seo-text {
        font-size: 1em;
        padding: 10px 8px;
    }
}

/*
    Fin carta grande ubicación
*/

/* Carta visual para descripción de producto */
/* Carta neutra para descripción de producto */
.descripcion-seo-box {
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #e0e0e0;
    padding: 18px 16px;
    margin-top: 16px;
    box-shadow: none;
}
.descripcion-seo-text {
    font-size: 1.08em;
    color: #232323;
    line-height: 1.6;
    margin-bottom: 0;
}
.descripcion-seo-anim {
    display: inline-block;
    opacity: 0;
    position: relative;
}
.descripcion-seo-anim.izq {
    font-weight: 500;
    color: #232323;
    animation: slideInLeft 1.2s ease-out forwards;
}
.descripcion-seo-anim.der {
    font-style: italic;
    color: #555;
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.5s;
}
@media (max-width: 768px) {
    .descripcion-seo-box {
        padding: 10px 4px;
    }
    .descripcion-seo-text {
        font-size: 1em;
    }
}

/*
    ////////////////////////////////////////////////////////////////////////////////////
*/

/* Botón de iniciar sesión para comprar, diseño neutro y coherente */
.login-btn-comprar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--amarillo);
    color: #232323;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.login-btn-comprar:hover,
.login-btn-comprar:focus {
    background: #c8102e;
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,16,46,0.12);
    text-decoration: none;
}
.login-btn-comprar i {
    font-size: 1.3em;
    margin-right: 8px;
}