.juana-recetas-filter-wrapper {
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
    position: relative;
}

.juana-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.juana-loading-spinner.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D51817;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.juana-loading-spinner p {
    color: #D51817;
    font-size: 1rem;
    margin: 0;
}

.juana-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: start;
}

.juana-search-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.juana-suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.juana-suggested-tags .juana-tag-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #D51817;
    border: 2px solid #D51817;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.juana-suggested-tags .juana-tag-btn:hover {
    background-color: #D51817;
    color: #fff;
}

.juana-search-bar input {
    flex: 1;
    max-width: 400px;
    padding: 0.5rem 1rem;
    border: 2px solid #D51817;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.juana-search-bar .juana-search-btn {
    padding: 0.5rem 1rem;
    background: #FFCB05;
    border: 1px solid #383838;
    border-left: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.juana-active-tags {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.juana-active-tags .juana-tag-active {
    padding: 0.4rem 0.8rem;
    background: #fff;
    color: #D51817;
    border: 2px solid #D51817;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.juana-active-tags .juana-tag-active span.close {
    font-size: 0.8rem;
    margin-left: 0.4rem;
    cursor: pointer;
}

.juana-recetas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.juana-receta-item {
    background: #fff;
    overflow: visible;
    text-align: center;
    padding-bottom: 1rem;
}

.juana-receta-item img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.juana-receta-item h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    color: #222;
}

.juana-receta-item .juana-boton-ver-mas {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #D51817;
    border: 2px solid #D51817;
    background-color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.juana-receta-item .juana-boton-ver-mas:hover {
    background-color: #D51817;
    color: #fff;
}

.juana-recetas-grid.empty-message {
    display: block;
    text-align: center;
    padding: 2rem;
    color: #D51817;
    font-size: 1.1rem;
}

.juana-receta-sello {
    position: relative;
    overflow: visible;
}

.juana-receta-sello img:first-child {
    width: 100%;
    display: block;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.juana-sello-chef {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
}

@media (max-width: 768px) {
    .juana-top-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .juana-search-bar {
        justify-content: center;
    }
    
    .juana-suggested-tags {
        justify-content: center;
    }
    
    .juana-recetas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .juana-recetas-grid {
        grid-template-columns: 1fr;
    }
}
