/* #mascotas .h2{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(196, 117, 13)
}

#mascotas .h2 h2{
    width: 50%;
    font-size: 30px;
    text-transform: uppercase;
    padding: 20px;
    border-bottom: 1px solid white;
    text-align: center;
    color: white;
}

#mascotas div{
    position: relative;
}

#mascotas div #img{
    width: 100%;
    height: 30vw;
    display: flex;
    position: absolute;
    bottom: 0px;
    z-index: 1;
}

#mascotas div #img img{
    width: 25%;
    object-fit: cover;
}

#mascotas div #img img:hover{
    opacity: 0;
}

#mascotas div #img2{
    width: 100%;
    height: 30vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:rgb(196, 117, 13);
    color: white;
    position: relative;
    bottom: 0px;
}

#mascotas div #img2 div{
    width: 25%;
}

#mascotas div #img2 div h3{
    text-transform: uppercase;
    text-align: center;
    font-size: 20px;
}

#mascotas div #img2 div p{
    text-align: center;
    font-size: 20px;
    padding: 0px 20px;
    margin: 25px;
}

/*diseño responsivo*/
/* @media only screen and (max-width:768px){
    #mascotas div #img2 div p{
        font-size: 17px;
        margin: 0px;
    }
}

@media only screen and (max-width:600px){
    #mascotas .h2 h2{
        font-size: 20px;
        padding: 0px;
    }

    #mascotas div #img2{
    width: 100%;
    }

    #mascotas div #img2 div h3{
        font-size: 15px;
    }

    #mascotas div #img2 div p{
        font-size: 12px;
        margin: 0px;
    }
}

@media only screen and (max-width:425px){
    #mascotas .h2 h2{
        width: 75%;
    }

    #mascotas #imagenes #img{
        width: 100%;
        height: 100vw;
        flex-wrap:wrap;
        right: 0;
        left: 0;
    }

    #mascotas #imagenes #img img{
        width: 50%;
        height: 50vw;
        object-fit: cover;
    }

    #mascotas #imagenes #img2{
        width: 100%;
        height: 100vw;
        flex-wrap:wrap;
    }

    #mascotas #imagenes #img2 div{
        width: 50%;
        height: 50vw;
    }
} */

/* Estilo del título de la sección */

#mascotas .h2 {
    background-color: var(--color-principal);
    padding: 1.25rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mascotas .h2 h2 {
    font-size: var(--fs-titulo-sm);
    text-transform: uppercase;
    text-align: center;
    color: var(--color-texto-claro);
    border-bottom: 1px solid var(--color-texto-claro);
    display: inline-block; 
}

/* Contenedor de la galería */
.mascotas__galeria {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna en móvil */
    gap: 1.25rem;
    padding: 1.25rem;
}

/* Estilo de cada tarjeta de mascota */
.mascota__card {
    position: relative; 
    border-radius: 0.5rem;
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 21.875rem; 
}

.mascota__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; 
}

/* Contenedor de la información */
.mascota__info {
    padding: 1.25rem;
    text-align: center;
    color: var(--color-texto-claro);
    background: rgba(0, 0, 0, 0.6);
    
    /* En móvil, la información es visible y está en la parte inferior */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

.mascota__info h3 {
    margin: 0 0 10px 0;
    font-size: var(--fs-grande);
    color: var(--color-principal);
}

.mascota__info p {
    margin: 0;
    font-size: var(--fs-normal);
}


/* --- Media Queries para TABLET Y ESCRITORIO --- */

/* Para tablets (2 columnas) */
@media (min-width: 600px) {
    .mascotas__galeria {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Para Escritorio (4 columnas y activación del efecto hover) */
@media (min-width: 1024px) {
    .mascotas__galeria {
        grid-template-columns: repeat(4, 1fr);
    }

    .mascota__info {
        transform: translateY(100%);
        transition: transform 0.4s ease;
    }

    .mascota__card:hover .mascota__info {
        transform: translateY(0);
    }

    .mascota__card:hover img {
        transform: scale(1.1);
    }
}