﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}
.divc {
    display: flex;
    justify-content: center;
}
.hide {
    display: none !important;
}
.card {
    height: 100%;
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-img-top {
    height: 200px;
    object-fit: cover;
}
.pin-container {
    display: flex;
    gap: 10px;
}

.pin-digit {
    border: solid;
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 20px;
}

.square_big img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(128, 128, 128);
}


.square_little {
    height: 40px;
    width: 40px;
}

.square_big {
    height: 400px;
    width: 400px;
}
img {
    overflow-clip-margin: unset;
    width: 100%;
    height: 300px;
    object-fit: cover;

}
.img-container {
    width: 100%; /* Set a fixed width for the container */
    height: 300px; /* Set a fixed height */
    overflow: hidden; /* Ensures the zoomed part stays within the container boundaries */


}

    .img-container img {
        /* Ensure image fits initially */
        width: 100%;
        height: auto;
        /* Smooth transition for the transform effect */
        transition: transform 0.5s ease;
        /* Optional: change cursor to pointer */
        cursor: pointer;
    }

        .img-container img:hover {
            /* Zooms the image to 1.5 times its original size */
            transform: scale(1.5);
            /* Optional: change origin of transform (default is center) */
            transform-origin: center center;
        }

.iamgenjgp {
    width: 95%;
    height: auto;
    align-self: auto;
    border-radius: 25px;
    object-fit: cover;
    padding: 6px;
    border-color: dimgrey;
    /* border:solid;*/
    margin: 0;
}
/* Efecto publicaciones*/
.containero {
    max-width: 1000px;
    margin: 100px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.cardo {
    position: relative;
    margin: auto; /*20px 0;*/
    width: 100%; /*300px;*/
    height: 200px;
    background: #fff;
    transform-style: preserve-3d;
    transform: perspective(2000px);
    transition: 1s;
    /*border-radius: 25px;*/
    box-shadow: inset 100px 0 50px rgba(0,0,0,0.5);
}

    .cardo:hover {
        z-index: 1111;
        transform: perspective(2000px); /*rotate(10deg);*/
        box-shadow: inset 20px 0 50px rgba(0,0,0,0.5);
    }

    .cardo .img-containero {
        position: relative;
        width: 100%;
        height: 100%;
        border: 5px solid #ff6a00;
        box-sizing: border-box;
        transform-origin: left;
        z-index: 1;
        transition: transform 1.2s ;
        object-fit: contain;
       /* max-width: 100%;
        max-height: 140px;
        object-fit: contain;
        transition: transform 0.2s;*/
        /*border-radius: 25px;*/
    }

        .cardo .img-containero img {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            object-fit: cover;
            /*border-radius: 25px;*/
        }

    .cardo:hover .img-containero {
        transform: rotateY(-135deg);
       /* border-radius: 25px;*/
    }

    .cardo .card-detailso {
        position: absolute;
        left: 0;
        top: 0;
        box-sizing: border-box;
        padding: 20px;
        color: #000;
    }

        .cardo .card-detailso h2 {
            margin: 0;
            padding: 0.5em 0;
            text-transform: uppercase;
            font-size: 2em;
            color: #ed363a;
        }

        .cardo .card-detailso p {
            margin: 0;
            padding: 0;
            line-height: 25px;
            font-size: 1.1em;
        }




/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* Nueva galeria*/

.product-card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #00a650; /*#f0f0f0;*/
}

    .product-card:hover {
        box-shadow: 0 6px 16px #00a650;
        border-color: transparent;
    }

/* BADGE "ENVÍO GRATIS" Y "FULL" */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-free {
    background-color: #00a650; /* verde ML */
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-full {
    background-color: #488fed; /* azul full */
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-x {
    background-color: #ff7733; /* descuento/naranja */
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* CONTENEDOR DE IMAGEN */
.product-image {
    background-color: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 1.2rem 0.1rem 1.2rem 0.1rem;
    border-bottom: 1px solid #f5f5f5;
    height: 160px;

}

    .product-image img {
        max-width: 100%;
        max-height: 140px;
        object-fit: contain;
        transition: transform 0.2s ease;
       
    }

.product-card:hover .product-image img {
    /*transform: scale(1.50);
    cursor: pointer;*/
}

/*.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;*/ /* Evita que la imagen se deforme */
    /*transition: transform 0.5s ease;*/ /* Suaviza la transición */
/*}*/

/* Efecto al pasar el mouse (hover) */
/*.container:hover .zoom-img {
    transform: scale(1.2);*/ /* Amplía la imagen al 120% */
    /*cursor: pointer;*/ /* Cambia el cursor a una mano */
/*}*/



/* INFORMACIÓN DEL PRODUCTO */
.product-info {
    padding: 0.8rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.25rem;
}

.price-symbol {
    font-size: x-large;
    margin: 0.5rem 0 0.25rem;
}

.product-price span:last-child {
    font-size: 1.3rem;
    font-weight: 400;
    color: #00a650;
    margin-left: 0px;
}

.old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.2rem;
    font-weight: 400;
}

.product-title {
    font-size: 1.3rem;
    color: #333;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
}

.product-shipping {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #00a650;
    font-weight: 500;
    margin-top: 0.25rem;
}

    .product-shipping i {
        font-size: 0.8rem;
    }

.full-badge-text {
    margin: 0.5rem 0 0.25rem;
    margin-left: 0px;
    background-color: white;
    color: #3483fa;
    border-radius: 4px;
    padding: 0.0rem 0.4rem;
    font-size: 2rem;
    font-weight: 600;
    border: none; /*/0.5px solid #99c3ff;*/
    display: inline-block;
    width: fit-content;
}
.boton-ancho {
    width: 50%; /* Ocupa todo el ancho */
    box-sizing: border-box; /* Asegura que el padding no desborde */
    display: inline-block; /* Opcional: para mejorar el comportamiento */
    
}
.img-zoom-container {
    position: relative;
}
.responsive {
    width: 100%;
    height: 50%;
}

/*Instagram*/
.grid-container {
    max-width: 935px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 20px;
}

/* Items del grid */
.grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}
/*Flotante*/
.btn-flotante {
    position: fixed;
    bottom: 70px; /* Distancia desde abajo */
    right: 20px; /* Distancia desde la derecha */
    background-color: green; /* Color de fondo */
    color: white; /* Color del icono/texto */
    width: 60px; /* Ancho */
    height: 60px; /* Alto */
    border-radius: 50%; /* Forma circular */
    text-align: center;
    line-height: 60px; /* Centrar verticalmente el icono */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Sombra */
    font-size: 24px;
    z-index: 1000; /* Asegurar que esté por encima */
    text-decoration: none;
    transition: all 0.3s ease; /* Animación al pasar el mouse */
}

    .btn-flotante:hover {
        background-color: green;
        transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
    }

/* Tarjeta de imagen */
.post-card {
    background: white;
    border: 1px solid #4cff00;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

    .post-card:hover {
        transform: scale(1.02);
        cursor: pointer;
    }

/* Cabecera del post */
.post-header {
    display: flex;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #efefef;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.location {
    font-size: 12px;
    color: #8e8e8e;
}

/* Contenedor de imagen */
.post-image {
    width: 100%;
    height: 293px;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}
/* Carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

    .carousel-slide img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        width: 20px;
        border-radius: 10px;
        background: white;
    }

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 10;
}

    .carousel-btn:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .carousel-btn.hidden {
        display: none;
    }
    /*Movimiento*//**/
.contenedorc {
    display: grid;
    grid-template-rows: 200px;
    grid-template-columns: 100% 100% 100%;
    animation: carrousel 15s infinite;
    position: relative;
}

@keyframes carrousel {
    from {
        right: 0%;
    }

    50% {
        right: 50%;
    }

    to {
        right: 100%;
    }
}
/*mask carrusel*//**/
.carouselw {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 700px;
    overflow: hidden;
    display: flex;
}

    .carouselw hover .group {
        animation-play-state: paused;
    }

.cardw {
    width: 100%;
    color: white;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 20px;
    font-size: xx-large;
    justify-content: center;
    align-items: center;
    height: auto;
}

.group {
    display: flex;
    gap: 20px;
    /* Agrega padding a la derecha para crear un espacio entre la última y la primera tarjeta. */
    padding-right: 20px;
    will-change: transform; /* Deberíamos ser amables con el navegador: hazle saber qué vamos a animar. */
    animation: scrolling 10s linear infinite;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/*Ver detalle*/
.contenedor-scroll {
    display: flex; /* Alinea las imágenes una al lado de la otra */
    overflow-x: auto; /* Habilita el scroll horizontal [12] */
    gap: 10px; /* Espacio entre imágenes */
    width: 100%; /* O el ancho deseado */
    padding: 10px;
}

    .contenedor-scroll img {
        height: auto; /* Altura fija para las imágenes */
        flex-shrink: 0; /* Evita que las imágenes se encojan [8] */
        object-fit: cover; /* Ajusta la imagen sin deformarla */
    }

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.3em;
}

    .grid .item.item-large {
        grid-row: span 2;
    }

    .grid .item img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.imagen-zoom {
    width: 100%; /* Tamaño inicial */
    transition: transform 0.3s ease; /* Suaviza el efecto */
    cursor: pointer;
    display: block;
    margin: 20px auto;
}

    /* Clase añadida por JS al hacer clic */
    .imagen-zoom.aumentada {
        transform: scale(1.5); /* Aumenta 1.5 veces */
    }