/* =========================================
   7. RECETAS DESTACADAS
   ========================================= */
.recipes {
    padding: 6rem 0;
    background-color: var(--white);
    /* Fondo blanco para alternar */
}

/* Sistema de Filtros (Botones) */
.recipes-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-light);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Grid de Recetas */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 recetas por fila en PC grandes */
    gap: 2rem;
}

/* Componente de Tarjeta de Receta */
.recipe-card {
    background-color: #f9fbf9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Animación cuando filtramos (suave fade in) */
.recipe-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
    /* Zoom al pasar el ratón */
}

/* Pastilla de tiempo */
.recipe-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.recipe-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.recipe-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    flex-grow: 1;
    /* Mantiene el botón pegado abajo */
}

.recipe-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.recipe-link:hover {
    color: #1b5e20;
    transform: translateX(5px);
    /* Pequeño empujón a la flecha => */
}

/* Responsive Recetas */
@media (max-width: 1200px) {
    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .recipes-grid {
        grid-template-columns: 1fr;
    }
}