* {
    box-sizing: border-box; /* Incluye padding y borde en el ancho total */
    font-family: "Montserrat", sans-serif;
}

body {
    margin: 0;
    color: #eee;
    background: #fff;
}

/*HEADER*/
.container-web {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    background-color: #368cdf;
    color: #fff;
    width: 100%;
    height: 60px;
}

.item {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    gap: 10px; /* Espacio entre los elementos dentro de .item */
}

.header-logo {
    gap: 10px; /* Espacio entre los elementos dentro de .header-logo */
    text-decoration: none;
}

h1{
    color: white;
    font-size: 23px;
    font-weight: 800;
    padding-top: 5px;
}

.user-info {
    display: flex;
    font-size: 10px;
    font-weight: 500;
}

/* Icono de Usuario */
.user-info .fi {
    font-size: 18px; /* Ajusta el tamaño */
    color: #fff; /* Cambia el color */
}

img.logo-icon {
    width: 35px;
    height: 35px;
    margin-left: 15px;
    border: 2px solid white;
    border-radius: 100%;
}

/*NAV-BAR*/
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 8px 20px;
    background-color: #2f7bc3;
}

.nav-bar .item {
    color: white;
    padding: 8px 15px !important;
    text-decoration: none;
    max-height: 45px;
    border-radius: 30px;
    margin: 5px 5px;
}

.nav-bar .item:hover{
    background-color: #3f91dd;
}

.navbar-toggler {
    color: white; /* Cambia el color a lo que necesites */
    border: 1px solid white;
    height: 32px;
}

#carrito-cantidad {
    font-size: 12px;
    background-color: #ee2f2f;
    padding: 0 8px;
    border-radius: 5px;
    font-weight: bold;
}

/*CAROUSEL*/
.carousel-item {
    width: 100%;
    height: 180px;
}

.envios-gratis {
    position: relative;
    width: 100%;
    background-color: #4cbe67; /* Color de fondo */
    padding: 15px;
    color: white; /* Color del texto */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: flex; /* Usamos Flexbox */
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center; /* Centra el contenido verticalmente */
    overflow: hidden; /* Oculta cualquier contenido fuera del contenedor */
}

.envios-gratis span {
    position: absolute;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    animation: moverTexto 8s linear infinite; /* Aplica la animación */
}

.envios-gratis span .envio {
    color: rgb(245, 241, 23);
}

@keyframes moverTexto {
    0% {
        right: -180%; /* Empieza fuera de la pantalla por la derecha */
    }
    100% {
        right: 100%; /* Termina fuera de la pantalla por la izquierda */
    }
}


/*SECCIÓN PRODUCTOS (con GRID)*/
.productos {
    padding-top: 5px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 175px);
    grid-template-rows: auto;
    justify-content: center;
    gap: 30px 10px;
}

#productos-container {
    display: grid;
    grid-template-columns: repeat(1, 280px);
    grid-template-rows: auto;
    justify-content: center;
    gap: 30px 10px;
    padding-bottom: 30px;
}

.card {
    color: #000;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 15px #0003;
}

.card-img-top {
    width: 100%;
    height: 250px;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column; /*Alinear el contenido verticalmente*/
}

.card-brand , .card-title{
    margin: 0;
}

.card-title {
    font-size: 20px;
}

.card-brand {
    font-size: 16px;
    color: #1e4972;
    font-weight: 500;
}

.card-description {
    font-size: 14px;
    max-height: 60px; /* Altura inicial limitada */
    overflow: hidden; /* Oculta el contenido que sobrepase la altura */
    transition: max-height 0.5s ease; /* Transición suave para max-height */
}

.card-description.expanded {
    max-height: 300px; /* Altura máxima para la descripción expandida */
}

.card-price {
    font-size: 25px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.card-body .btn {
    align-self: flex-end; /* Alinear el botón al final del card-body */
    background-color: #007bff;
    font-size: 13px;
    border: none;
}

#prev-btn, #next-btn {
    background-color: #2571c2;
    border: none;
}


#page-info {
    color: #3f91dd;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4cbe67;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 14px;
    opacity: 1; /* Inicialmente visible */
    transition: opacity 1s ease-in-out; /* Transición suave de opacidad */
}

.toast-message.fade-out {
    opacity: 0; /* Hace que el mensaje sea invisible */
}

/*SECCIÓN CATEGORIA-MASCOTA*/
.categoria-mascota {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.titulo-categoria {
    color: #3f91dd;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    padding: 0 2px;
}

.mascota-container {
    display: grid;
    grid-template-columns: repeat(5,auto);
    width: 100%;
    padding: 15px;
    justify-content: space-evenly;
}

.mascota {
    overflow: hidden;
    border-radius: 80px;
    cursor: pointer;
    border: 1px #1e4972 solid;
    background: linear-gradient(to top, #222, #368cdf);
}

.mascota:hover {
    box-shadow: 0 0 10px #0008;
}

.mascota img {
    height: 60px;
    width: 60px;
}

/*FOOTER*/

footer {
    font-family: "Montserrat";
    color: #fff;
    background: linear-gradient(to top, #222, #368cdf);
    padding-top: 20px; /* Controla el espacio superior e inferior del footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Elimina el espacio entre h4 y .info-footer */
}

h4 {
    margin: 0; /* Elimina el margen predeterminado del h4 */
    font-size: 20px;
}

.primer-footer {
    display: flex;
    font-size: 10px;
    padding: 0 15px;
}

.info-footer {
    margin: 0; /* Asegura que no haya margen superior o inferior */
    padding: 5px; /* Solo aplica padding lateral si es necesario */
    text-align: center; /* Centra el texto dentro de .info-footer */
    text-wrap: balance;
    display: flex;
    flex-direction: column;
}

.redes-sociales {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.redes-sociales a {
    text-decoration: none;
    color: white;
    margin: 2px 8px;
}

.redes-sociales i {
    margin-right: 5px;
    font-size: 10px;
}

.ultimo-footer{
    padding: 5px;
    background-color: #40463c;
    text-align: center;
    width: 100%; /* Abarca toda la pantalla */
    font-size: 10px;
}

/*Agrego media Query*/
@media (min-width: 600px) {
    /*HEADER*/
    .container-web {
        padding: 50px 70px 40px 70px;
    }
    h1 {
        font-size: 50px;
    }
    
    .item {
        gap: 15px; /* Espacio entre los elementos dentro de .item */
    }
    
    .user-info {
        font-size: 18px;
    }
    
    .user-info .fi {
        font-size: 25px;
    }
    
    img.logo-icon {
        width: 60px;
        height: 60px;
    }
    /*NAV-BAR*/
    .nav-bar {
        font-size: 17px;
    }

    #carrito-cantidad {
        font-size: 15px;
        align-self: center;
    }

    /*CAROUSEL*/
    .carousel-item {
    height: 300px;
    }

    .envios-gratis {
        position: relative;
        width: 100%;
        background-color: #4cbe67; /* Color de fondo */
        padding: 15px;
        color: white; /* Color del texto */
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        display: flex; /* Usamos Flexbox */
        justify-content: center; /* Centra el contenido horizontalmente */
        align-items: center; /* Centra el contenido verticalmente */
        overflow: hidden; /* Oculta cualquier contenido fuera del contenedor */
    }
    
    .envios-gratis span {
        position: absolute;
        white-space: nowrap; /* Evita que el texto se divida en varias líneas */
        animation: moverTexto 10s linear infinite; /* Aplica la animación */
    }
    
    .envios-gratis span .envio {
        color: rgb(245, 241, 23);
    }
    
    @keyframes moverTexto {
        0% {
            right: -40%; /* Empieza fuera de la pantalla por la derecha */
        }
        100% {
            right: 100%; /* Termina fuera de la pantalla por la izquierda */
        }
    }
    
    
    /*SECCIÓN CATEGORIA-MASCOTA*/
    .titulo-categoria {
        font-size: 30px;
    }

    .mascota-container {
        justify-content: space-evenly;
    }

    .mascota {
        border: 3px #1e4972 solid;
    }
    
    .mascota img {
        height: 200px;
        width: 200px;
    }
    
    .mascota:hover {
        box-shadow: 0 0 15px #0008;
    }
    
    /*SECCIÓN PRODUCTOS (con GRID)*/
    
    #productos-container {
        display: grid;
        grid-template-columns: repeat(4, 290px);
        gap: 40px 0;
        padding-bottom: 30px;
        justify-content: stretch;
    }
    
    .card {
        width: 255px;
    }
    
    .productos {
        padding-bottom: 50px;
    }
    
    .card-body {
        padding: 25px;
    }

    
    .card-body .btn {
        font-size: 15px;
    }
    
    .card-body .card-price {
        font-size: 22px;
        margin-bottom: 0;
    }

    #prev-btn, #next-btn {
        font-size: 20px;
        margin: 0 30px;
    }
    
    #page-info {
        margin-top: 30px;
        font-size: 20px;
    }
    
    .toast-message {
        bottom: 20px;
        right: 40px;
        font-size: 18px;
    }
    /*FOOTER*/
    .primer-footer {
        flex-direction: column;
    }    
    
    .info-footer {
        flex-direction: column;
        font-size: 12px;
    }

    .redes-sociales{
        font-size: 15px;
        flex-direction: row;
        justify-content: center;
        padding: 0 0 10px 0;
    }

    .redes-sociales a {
        display: flex;
        text-decoration: none;
        color: white;
        margin-right: 30px;
    }

    .redes-sociales i {
        margin-right: 5px;
        font-size: 15px;
    }

    .ultimo-footer{
        font-size: 12px;
    }
}

