/* Reseteo de estilos */
@import url("../flotante.css");

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f26e22;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.productos-section {
    padding: 50px 20px;
    text-align: center;
}

.productos-section h2 {
    font-size: 2.5rem;
    color: #F26E22;
    margin-bottom: 40px;
}

.recipes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila */
    gap: 30px;
    justify-items: center;
}

.recipe-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px; /* Tarjetas más grandes */
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.recipe-img {
    width: 100%;
    height: 300px; /* Imágenes más grandes */
    object-fit: cover;
    border-bottom: 4px solid #F26E22;
}

.recipe-card h3 {
    font-size: 1.8rem; /* Nombre del producto más claro */
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background-color: #F26E22;
    color: #fff;
}

.recipe-description {
    font-size: 1rem;
    color: #555;
    padding: 20px;
    text-align: justify;
    background-color: #fafafa;
}

@media (max-width: 768px) {
    .recipes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .recipe-img {
        height: 250px;
    }

    .recipe-card h3 {
        font-size: 1.6rem;
    }

    .recipe-description {
        font-size: 1rem;
        padding: 15px;
    }
}
