/* 
   Galería de Mascotas
   Estilos para la sección de mascotas, incluyendo el grid y las tarjetas.
*/

/* Contenedor principal de la sección */
.pets {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 3rem;
}

.pets__intro {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* Cuadrícula (Grid) que organiza las tarjetas de mascotas */
.pets__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    padding: 2rem;
}

/* Tarjeta individual de mascota */
.pet-card {
    background: rgba(255, 253, 254, 0.035);
    border-radius: 20px;
    outline: 2px dotted var(--accent-700);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Animación al hacer scroll (Scroll-Driven Animations) */
    animation: appearance ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.pet-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 253, 254, 0.06);
    outline: 2px solid var(--accent-500);
}

.pet-card__fig {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #0b071a;
}

.pet-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.pet-card:hover .pet-card__img {
    transform: scale(1.08);
}

.pet-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pet-card__title {
    color: var(--accent-400);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pet-card__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .pets__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pets {
        padding: 6rem 0 0 0;
    }

    .pets__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 425px) {
    .pets {
        padding: 3rem 0 0 0;
    }

    .pets__grid {
        gap: 2rem;
    }

    .pet-card__fig {
        height: 200px;
    }
}