/* Añadir al final del archivo styles.css */

/* Modal Detalle Receta */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-receta-header {
    margin-bottom: 1.5rem;
}

.modal-receta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-receta-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.modal-receta-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.modal-receta-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-receta-section {
    margin-bottom: 1.5rem;
}

.modal-receta-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-receta-ingredientes {
    display: grid;
    gap: 0.5rem;
}

.modal-receta-ingrediente {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.modal-receta-instrucciones {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-receta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-receta-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}